refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,29 @@
|
||||
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
|
||||
const isMP = platformInfo.startsWith('mp')
|
||||
|
||||
describe('test mp custom components vant', () => {
|
||||
let page,vantBtnContainer,vantBtn;
|
||||
if (!isMP) {
|
||||
it('not support', () => {
|
||||
expect(1).toBe(1)
|
||||
})
|
||||
return
|
||||
}
|
||||
beforeAll(async () => {
|
||||
page = await program.reLaunch('/pages/template/mp-custom-components-vant/mp-custom-components-vant')
|
||||
await page.waitFor(3000);
|
||||
vantBtnContainer = await page.$('vant-button');
|
||||
expect(await page.data('data.jest')).toBe(false);
|
||||
});
|
||||
afterAll(async () => {
|
||||
expect(await program.screenshot()).toSaveImageSnapshot();
|
||||
});
|
||||
it('check title onClick', async () => {
|
||||
const titleText = await vantBtnContainer.text();
|
||||
expect(titleText).toEqual('vant weapp的vant-button按钮组件');
|
||||
vantBtn = await vantBtnContainer.$('button')
|
||||
await vantBtn.tap()
|
||||
await page.waitFor(1000);
|
||||
expect(await page.data('data.jest')).toBe(true);
|
||||
});
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户