提交 a739ab83 编写于 作者: 雪洛's avatar 雪洛

test: web端已对齐$forceUpdate、$parent,调整测试例#773#776

上级 d048b586
...@@ -183,13 +183,13 @@ ...@@ -183,13 +183,13 @@
"navigationBarTitleText": "$options" "navigationBarTitleText": "$options"
} }
}, },
// #ifdef APP
{ {
"path": "pages/component-instance/parent/parent", "path": "pages/component-instance/parent/parent",
"style": { "style": {
"navigationBarTitleText": "$parent" "navigationBarTitleText": "$parent"
} }
}, },
// #ifdef APP
{ {
"path": "pages/component-instance/root/root", "path": "pages/component-instance/root/root",
"style": { "style": {
......
...@@ -14,6 +14,6 @@ describe('$forceUpdate', () => { ...@@ -14,6 +14,6 @@ describe('$forceUpdate', () => {
await triggerForceUpdateBtn.tap() await triggerForceUpdateBtn.tap()
const timeText2 = (await timeEl.text()).replace('Date.now(): ', '') const timeText2 = (await timeEl.text()).replace('Date.now(): ', '')
expect(parseInt(timeText2)).toBeGreaterThanOrEqual(parseInt(timeText1)) expect(parseInt(timeText2)).toBeGreaterThan(parseInt(timeText1))
}) })
}) })
const PAGE_PATH = '/pages/component-instance/parent/parent' const PAGE_PATH = '/pages/component-instance/parent/parent'
describe('$parent', () => { describe('$parent', () => {
if (process.env.uniTestPlatformInfo.startsWith('web')) {
// TODO: web 端暂不支持
it('web', async () => {
expect(1).toBe(1)
})
return
}
let page let page
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册