提交 c3e943d3 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

补充 hideBottomNavigationIndicator、hideStatusBar 测试例

上级 afee51d9
...@@ -60,6 +60,18 @@ describe('getCurrentPages', () => { ...@@ -60,6 +60,18 @@ describe('getCurrentPages', () => {
expect(image3).toSaveImageSnapshot({customSnapshotIdentifier() { expect(image3).toSaveImageSnapshot({customSnapshotIdentifier() {
return 'get-current-pages-test-js-get-current-pages-page-style-after-set-page-style' return 'get-current-pages-test-js-get-current-pages-page-style-after-set-page-style'
}}); }});
// setPageStyle
await page.callMethod('setPageStyle', {
hideBottomNavigationIndicator: true,
hideStatusBar: true
})
await page.waitFor(500)
const image4 = await program.screenshot({fullPage: true});
expect(image4).toSaveImageSnapshot({customSnapshotIdentifier() {
return 'get-current-pages-test-hideStatusBar-hideBottomNavigationIndicator'
}});
}) })
it('$page', async () => { it('$page', async () => {
await page.setData({testing: true}) await page.setData({testing: true})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册