提交 08be55a3 编写于 作者: DCloud_JSON's avatar DCloud_JSON

test fix safari

上级 131b0724
jest.setTimeout(50000)
describe('pages/schema2code/schema2code.nvue', () => { describe('pages/schema2code/schema2code.nvue', () => {
let page let page
beforeAll(async () => { beforeAll(async () => {
// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象) // 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)
page = await program.reLaunch('/pages/schema2code/schema2code') page = await program.switchTab('/pages/schema2code/schema2code')
await page.waitFor('view') await page.waitFor('view')
await page.setData({ isTest: true })
}) })
it('schema2code-点击', async () => { it('schema2code-点击', async () => {
const title = await page.$('.uni-title') const title = await page.$('.uni-title')
......
...@@ -21,11 +21,16 @@ ...@@ -21,11 +21,16 @@
schemaCode: schemaCode, schemaCode: schemaCode,
videoUrl: "https://web-assets.dcloud.net.cn/unidoc/zh/schema2code%E7%9A%84%E4%B8%A4%E7%A7%8D%E6%96%B9%E5%BC%8F.mp4", videoUrl: "https://web-assets.dcloud.net.cn/unidoc/zh/schema2code%E7%9A%84%E4%B8%A4%E7%A7%8D%E6%96%B9%E5%BC%8F.mp4",
// https://web-assets.dcloud.net.cn/unidoc/zh/create-schema2code-video.mp4, // https://web-assets.dcloud.net.cn/unidoc/zh/create-schema2code-video.mp4,
showVideo: false, showVideo: false,
isTest:false
} }
}, },
onReady() { onReady() {
this.showVideo = true; setTimeout(() => {
if(!this.isTest){
this.showVideo = true;
}
},1000)
}, },
methods: { methods: {
async showSchemaCode() { async showSchemaCode() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册