greenPro/pages/API/set-navigation-bar-title/set-navigation-bar-title.te...

23 lines
747 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

describe('pages/API/set-navigation-bar-title/set-navigation-bar-title.vue', () => {
let page
beforeAll(async () => {
// 重新reLaunch至首页并获取首页page对象其中 program 是uni-automator自动注入的全局对象
page = await program.reLaunch('/pages/API/set-navigation-bar-title/set-navigation-bar-title')
if (process.env.UNI_PLATFORM === "mp-weixin") {
await page.waitFor(10000)
} else {
await page.waitFor(5000)
}
page = await program.currentPage()
})
it('set-navigation-bar-title 组件标题', async () => {
let view = await page.$('.common-page-head-title')
expect(await view.text()).toBe('nav-default')
})
})