提交 167431ad 编写于 作者: DCloud_iOS_WZT's avatar DCloud_iOS_WZT

修复 input断言测试在部分iOS设备无法通过的问题(补充)

上级 fdae804c
...@@ -177,6 +177,10 @@ describe('component-native-input', () => { ...@@ -177,6 +177,10 @@ describe('component-native-input', () => {
expect(1).toBe(1) expect(1).toBe(1)
return return
} }
if (!process.env.uniTestPlatformInfo.startsWith('ios')) {
expect(1).toBe(1)
return
}
await program.navigateTo("/pages/API/navigator/new-page/new-page-3") await program.navigateTo("/pages/API/navigator/new-page/new-page-3")
await page.waitFor(2000); await page.waitFor(2000);
await program.navigateBack() await program.navigateBack()
...@@ -184,7 +188,7 @@ describe('component-native-input', () => { ...@@ -184,7 +188,7 @@ describe('component-native-input', () => {
await page.setData({ await page.setData({
focusedForKeyboardHeightChangeTest: true focusedForKeyboardHeightChangeTest: true
}) })
await page.waitFor(5000); await page.waitFor(2000);
const keyboardHeight = await page.data('keyboardHeight'); const keyboardHeight = await page.data('keyboardHeight');
console.log("keyboardHeight :", keyboardHeight); console.log("keyboardHeight :", keyboardHeight);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册