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

jest h5

上级 846dbb8b
...@@ -7,7 +7,7 @@ describe('pages/list/list.vue', () => { ...@@ -7,7 +7,7 @@ describe('pages/list/list.vue', () => {
}) })
it('检测标题', async () => { it('检测标题', async () => {
expect.assertions(1); // expect.assertions(1);
const getData = await page.data('dataList') const getData = await page.data('dataList')
// console.log("getData: ",getData); // console.log("getData: ",getData);
expect(getData.title).toBe('阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务') expect(getData.title).toBe('阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务')
...@@ -15,7 +15,7 @@ describe('pages/list/list.vue', () => { ...@@ -15,7 +15,7 @@ describe('pages/list/list.vue', () => {
it('点击搜索跳转', async () => { it('点击搜索跳转', async () => {
// expect.assertions(2); // expect.assertions(2);
const searchTo = await page.callMethod('searchClick') await page.callMethod('searchClick')
await page.waitFor(1000) await page.waitFor(1000)
if (process.env.UNI_PLATFORM != "mp-weixin") { 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', () => { ...@@ -6,7 +6,6 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => {
beforeAll(async () => { beforeAll(async () => {
page = await program.navigateTo('/uni_modules/uni-id-pages/pages/userinfo/userinfo') page = await program.navigateTo('/uni_modules/uni-id-pages/pages/userinfo/userinfo')
await page.waitFor(500) await page.waitFor(500)
// page = await program.currentPage()
console.log("program.pageStack: ", await program.pageStack()); console.log("program.pageStack: ", await program.pageStack());
}); });
...@@ -22,7 +21,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => { ...@@ -22,7 +21,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => {
"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/5105c383-8d83-4f40-938e-7c32c5983f8d.png", "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/5105c383-8d83-4f40-938e-7c32c5983f8d.png",
"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/61869c72-3117-4ea4-8d6d-ebb67617c7d9.jpg", "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/61869c72-3117-4ea4-8d6d-ebb67617c7d9.jpg",
"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/558cde0a-b514-4de7-8c7d-1d6b733f9440.png"] "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/558cde0a-b514-4de7-8c7d-1d6b733f9440.png"]
const avatar_file = { const avatar_file = {
url:imgs[Math.floor(Math.random()*imgs.length)] url:imgs[Math.floor(Math.random()*imgs.length)]
} }
...@@ -30,6 +29,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => { ...@@ -30,6 +29,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => {
if (process.env.UNI_PLATFORM != "mp-weixin") { if (process.env.UNI_PLATFORM != "mp-weixin") {
const elBox = await page.$('.box') const elBox = await page.$('.box')
console.log("elBox: ",elBox);
await elBox.callMethod('setAvatarFile',avatar_file) await elBox.callMethod('setAvatarFile',avatar_file)
}else{ }else{
await page.waitFor(500) await page.waitFor(500)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册