提交 6c8818ea 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(input): 放开 android 端测试

上级 ab5e624d
...@@ -150,7 +150,7 @@ describe('component-native-input', () => { ...@@ -150,7 +150,7 @@ describe('component-native-input', () => {
it("maxlength", async () => { it("maxlength", async () => {
const input = await page.$('#uni-input-maxlength'); const input = await page.$('#uni-input-maxlength');
let str = ""; let str = "";
for(let i = 0;i < 200;i++){ for (let i = 0; i < 200; i++) {
str += `${i}` str += `${i}`
} }
await page.setData({ await page.setData({
...@@ -196,7 +196,7 @@ describe('component-native-input', () => { ...@@ -196,7 +196,7 @@ describe('component-native-input', () => {
//reset //reset
await page.setData({ await page.setData({
focusedForKeyboardHeightChangeTest: false, focusedForKeyboardHeightChangeTest: false,
keyboardHeight:0 keyboardHeight: 0
}) })
}) })
...@@ -206,11 +206,8 @@ describe('component-native-input', () => { ...@@ -206,11 +206,8 @@ describe('component-native-input', () => {
}) })
expect(image).toSaveImageSnapshot() expect(image).toSaveImageSnapshot()
}) })
if (!process.env.uniTestPlatformInfo.startsWith('android')) { it('both set modelValue and value', async () => {
// TODO: 暂时规避 android 端测试
it('both set modelValue and value', async()=>{
const input2 = await page.$('#both-model-value'); const input2 = await page.$('#both-model-value');
expect(await input2.value()).toEqual("123") expect(await input2.value()).toEqual("123")
}) })
}
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册