refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,33 @@
|
||||
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
|
||||
const isMP = platformInfo.startsWith('mp')
|
||||
const isAppWebView = process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true'
|
||||
const isWeb = platformInfo.startsWith('web')
|
||||
const isIos = platformInfo.startsWith('ios')
|
||||
|
||||
describe("video-format", () => {
|
||||
if (isMP || isAppWebView || isWeb) {
|
||||
it('skip', () => {
|
||||
expect(1).toBe(1)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
let page
|
||||
|
||||
// 添加辅助函数来简化数据设置
|
||||
async function setPageData(newData) {
|
||||
return await page.setData({ autoTestData: newData });
|
||||
}
|
||||
|
||||
beforeAll(async () => {
|
||||
page = await program.reLaunch('/pages/component/video/video-format');
|
||||
await page.waitFor('view');
|
||||
await page.waitFor(3000)
|
||||
})
|
||||
|
||||
it("screenshot", async () => {
|
||||
await setPageData({autoTest: true})
|
||||
const image = await program.screenshot({ fullPage: true });
|
||||
expect(image).toSaveImageSnapshot();
|
||||
})
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户