refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,37 @@
|
||||
describe("getElementById", () => {
|
||||
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
|
||||
const isMP = platformInfo.startsWith('mp')
|
||||
const PAGE_PATH = "/pages/API/get-element-by-id/get-element-by-id";
|
||||
let page;
|
||||
beforeAll(async () => {
|
||||
page = await program.reLaunch(PAGE_PATH);
|
||||
await page.waitFor('view');
|
||||
});
|
||||
it("getElementByNotExistId", async () => {
|
||||
const res = await page.callMethod("getElementByNotExistId");
|
||||
expect(res).toBe(null);
|
||||
});
|
||||
it("changeStyle", async () => {
|
||||
if (!isMP) {
|
||||
await page.callMethod("changePageHeadBackgroundColor");
|
||||
}
|
||||
await page.callMethod("changeTextColor");
|
||||
await page.callMethod("changeViewStyle");
|
||||
await page.callMethod("changeImageStyle");
|
||||
await page.callMethod("changeScrollViewStyle");
|
||||
await page.waitFor(500);
|
||||
const image = await program.screenshot({fullPage: true});
|
||||
expect(image).toSaveImageSnapshot();
|
||||
});
|
||||
|
||||
if(isMP) {
|
||||
return
|
||||
}
|
||||
/**
|
||||
* 检测元素offsetLeft属性值域
|
||||
*/
|
||||
it("checkElementOffsetLeft", async() => {
|
||||
const res = await page.callMethod("getTextOffsetLeft");
|
||||
expect(res).toBe(0);
|
||||
})
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户