refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,38 @@
|
||||
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
|
||||
const isMP = platformInfo.startsWith('mp')
|
||||
const isWeb = platformInfo.startsWith('web')
|
||||
|
||||
describe('component-native-sticky-header', () => {
|
||||
if (isMP) {
|
||||
it('skip', () => {
|
||||
expect(1).toBe(1)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
let page
|
||||
const screenshotParams = { fullPage: true }
|
||||
|
||||
beforeAll(async () => {
|
||||
page = await program.reLaunch('/pages/component/sticky-header/sticky-header')
|
||||
await page.waitFor('sticky-header')
|
||||
await page.waitFor(isWeb ? 5000 : 2000); // 等待页面加载完成
|
||||
})
|
||||
|
||||
//检测吸顶效果
|
||||
it('check_sticky_header', async () => {
|
||||
await page.callMethod('confirm_scroll_top_input', 600)
|
||||
await page.waitFor(1000);
|
||||
const image = await program.screenshot(screenshotParams);
|
||||
expect(image).toSaveImageSnapshot();
|
||||
})
|
||||
//测试验证issues 16216 问题
|
||||
it('check_sticky_header_position', async () => {
|
||||
await page.callMethod('confirm_scroll_top_input', 300)
|
||||
await page.waitFor(1000);
|
||||
await page.callMethod('clearListData')
|
||||
await page.waitFor(1000);
|
||||
const image = await program.screenshot(screenshotParams);
|
||||
expect(image).toSaveImageSnapshot();
|
||||
})
|
||||
})
|
||||
在新工单中引用
屏蔽一个用户