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

refactor: 更新 app launch show options 测试

上级 1652db87
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
}, },
methods: { methods: {
checkLaunchPath() : boolean { checkLaunchPath() : boolean {
const HOME_PATH = 'pages/tab-bar/options-api' const HOME_PATH = 'pages/index/index'
if (state.appLaunchPath != HOME_PATH) { if (state.appLaunchPath != HOME_PATH) {
return false return false
} }
...@@ -70,22 +70,22 @@ ...@@ -70,22 +70,22 @@
</script> </script>
<style> <style>
@import "./styles/common.css"; @import './styles/common.css';
.list-item-text { .list-item-text {
line-height: 36px; line-height: 36px;
} }
.split-title { .split-title {
margin: 20px 0 5px; margin: 20px 0 5px;
padding: 5px 0; padding: 5px 0;
border-bottom: 1px solid #dfdfdf; border-bottom: 1px solid #dfdfdf;
} }
.btn-view { .btn-view {
margin: 10px 0; margin: 10px 0;
padding: 10px; padding: 10px;
border: 1px solid #dfdfdf; border: 1px solid #dfdfdf;
border-radius: 3px; border-radius: 3px;
} }
</style> </style>
\ No newline at end of file
describe("app lanch & show options", () => { const HOME_PATH = '/pages/index/index'
describe("app launch & show options", () => {
it("onLaunch onShow", async () => { it("onLaunch onShow", async () => {
const HOME_PATH = '/pages/tab-bar/options-api'
const page = await program.reLaunch(HOME_PATH) const page = await program.reLaunch(HOME_PATH)
await page.waitFor(1000) await page.waitFor(1000)
expect(await page.callMethod("checkLaunchPath")).toBe(true) expect(await page.callMethod("checkLaunchPath")).toBe(true)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册