提交 a137eb57 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

update: getSystemInfo自动化测试例

上级 49ea6f79
......@@ -65,8 +65,13 @@ describe('ExtApi-GetSystemInfo', () => {
})
it('Check screenHeight at different stages', async ()=> {
await page.callMethod('jest_getScreenHeight_at_different_stages')
res = await page.data('jest_result');
expect(res).toBe(true)
console.log("deviceOrientation ", res["deviceOrientation"]);
if(res["deviceOrientation"] == "landscape"){
expect(1).toBe(1)
}else{
await page.callMethod('jest_getScreenHeight_at_different_stages')
const res = await page.data('jest_result');
expect(res).toBe(true)
}
})
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册