refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,44 @@
|
||||
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
|
||||
const isIOS = platformInfo.startsWith('ios')
|
||||
const isWeb = platformInfo.startsWith('web')
|
||||
const isMP = platformInfo.startsWith('mp')
|
||||
|
||||
describe('API-getImageInfo', () => {
|
||||
if (isIOS || isMP) {
|
||||
it('pass', async () => {
|
||||
expect(1).toBe(1);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
let page;
|
||||
beforeAll(async () => {
|
||||
page = await program.reLaunch('/pages/API/get-image-info/get-image-info?autoTest=true');
|
||||
await page.waitFor('view');
|
||||
await page.waitFor(6000);
|
||||
});
|
||||
|
||||
it('screenshot', async () => {
|
||||
const image = await program.screenshot({fullPage: true});
|
||||
expect(image).toSaveImageSnapshot()
|
||||
})
|
||||
|
||||
it('test getImageInfo', async () => {
|
||||
await page.waitFor(500);
|
||||
if (isWeb) {
|
||||
expect(await page.data('testState.imageInfoForTest')).toEqual({
|
||||
width: 192,
|
||||
height: 192,
|
||||
path: 'test-image/logo.png'
|
||||
});
|
||||
return;
|
||||
}
|
||||
expect(await page.data('testState.imageInfoForTest')).toEqual({
|
||||
width: 192,
|
||||
height: 192,
|
||||
path: 'test-image/logo.png',
|
||||
orientation: 'up',
|
||||
type: 'png'
|
||||
});
|
||||
});
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户