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

test: 针对 web 平台优化测试例

上级 8f32abe5
const PAGE_PATH = '/pages/API/unicloud/unicloud/database' const PAGE_PATH = '/pages/API/unicloud/unicloud/database'
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isSafari = platformInfo.indexOf('safari') > -1
describe('unicloud-database', () => { describe('unicloud-database', () => {
if (isSafari) {
it('web safari 暂时规避', () => {
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)
......
...@@ -3,6 +3,7 @@ describe('list-view-children-in-slot', () => { ...@@ -3,6 +3,7 @@ describe('list-view-children-in-slot', () => {
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch('/pages/component/list-view/list-view-children-in-slot') page = await program.reLaunch('/pages/component/list-view/list-view-children-in-slot')
await page.waitFor('list-view') await page.waitFor('list-view')
await page.waitFor(300)
}) })
it('basic', async () => { it('basic', async () => {
...@@ -42,4 +43,4 @@ describe('list-view-children-in-slot', () => { ...@@ -42,4 +43,4 @@ describe('list-view-children-in-slot', () => {
expect(await texts[i].text()).toBe(`0`) expect(await texts[i].text()).toBe(`0`)
} }
}) })
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册