refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,44 @@
|
||||
const PAGE_PATH = '/pages/API/keyboard/keyboard'
|
||||
|
||||
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
|
||||
const isAndroid = platformInfo.startsWith('android')
|
||||
const isIOS = platformInfo.startsWith('ios')
|
||||
const isWeb = platformInfo.startsWith('web')
|
||||
const isMP = platformInfo.startsWith('mp')
|
||||
const isHarmony = platformInfo.startsWith('harmony')
|
||||
|
||||
describe('keyboard', () => {
|
||||
let page;
|
||||
if (isWeb || isMP || isIOS || isHarmony) {
|
||||
it('not support', async () => {
|
||||
expect(1).toBe(1)
|
||||
})
|
||||
return
|
||||
}
|
||||
beforeAll(async () => {
|
||||
page = await program.reLaunch(PAGE_PATH)
|
||||
await page.waitFor(600);
|
||||
});
|
||||
|
||||
it('Check hideKeyboard', async () => {
|
||||
// 显示键盘
|
||||
await page.setData({
|
||||
data: { isFocus: true }
|
||||
})
|
||||
await page.waitFor(1000)
|
||||
let keyboardStatus = await page.data('data.keyboardStatus')
|
||||
expect(keyboardStatus).toBe('显示中')
|
||||
let keyboardHeight = await page.data('data.keyboardHeight')
|
||||
expect(keyboardHeight).toBeGreaterThan(0)
|
||||
|
||||
await page.callMethod('hideKeyboard');
|
||||
await page.waitFor(1000)
|
||||
|
||||
// 验证键盘是否隐藏
|
||||
keyboardStatus = await page.data('data.keyboardStatus')
|
||||
expect(keyboardStatus).toBe('已隐藏')
|
||||
keyboardHeight = await page.data('data.keyboardHeight')
|
||||
expect(keyboardHeight).toBe(0)
|
||||
});
|
||||
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户