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

update: getSystemInfo自动化测试例

上级 8e5e508f
......@@ -65,8 +65,13 @@ describe('ExtApi-GetSystemInfo', () => {
})
it('Check screenHeight at different stages', async ()=> {
console.log("deviceOrientation ", res["deviceOrientation"]);
if(res["deviceOrientation"] == "landscape"){
expect(1).toBe(1)
}else{
await page.callMethod('jest_getScreenHeight_at_different_stages')
res = await page.data('jest_result');
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.
先完成此消息的编辑!
想要评论请 注册