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

refactor: 更新 app launch show options 测试

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