提交 676c5f20 编写于 作者: study夏羽's avatar study夏羽

jest h5

上级 846dbb8b
......@@ -7,7 +7,7 @@ describe('pages/list/list.vue', () => {
})
it('检测标题', async () => {
expect.assertions(1);
// expect.assertions(1);
const getData = await page.data('dataList')
// console.log("getData: ",getData);
expect(getData.title).toBe('阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务')
......@@ -15,7 +15,7 @@ describe('pages/list/list.vue', () => {
it('点击搜索跳转', async () => {
// expect.assertions(2);
const searchTo = await page.callMethod('searchClick')
await page.callMethod('searchClick')
await page.waitFor(1000)
if (process.env.UNI_PLATFORM != "mp-weixin") {
......
static/screenshot/about.png

62.3 KB | W: | H:

static/screenshot/about.png

62.9 KB | W: | H:

static/screenshot/about.png
static/screenshot/about.png
static/screenshot/about.png
static/screenshot/about.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -6,7 +6,6 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => {
beforeAll(async () => {
page = await program.navigateTo('/uni_modules/uni-id-pages/pages/userinfo/userinfo')
await page.waitFor(500)
// page = await program.currentPage()
console.log("program.pageStack: ", await program.pageStack());
});
......@@ -30,6 +29,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => {
if (process.env.UNI_PLATFORM != "mp-weixin") {
const elBox = await page.$('.box')
console.log("elBox: ",elBox);
await elBox.callMethod('setAvatarFile',avatar_file)
}else{
await page.waitFor(500)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册