提交 ee4351d8 编写于 作者: Anne_LXM's avatar Anne_LXM

test:去掉ucenter和userinfo截图

上级 d9adfc53
...@@ -2,7 +2,6 @@ jest.setTimeout(30000); ...@@ -2,7 +2,6 @@ jest.setTimeout(30000);
describe('ucenter', () => { describe('ucenter', () => {
let page, platform, hasLogin; let page, platform, hasLogin;
platform = process.env.UNI_PLATFORM platform = process.env.UNI_PLATFORM
console.log('uniTestPlatformInfo', process.env.uniTestPlatformInfo)
if (process.env.uniTestPlatformInfo == 'ios_simulator 13.7') { if (process.env.uniTestPlatformInfo == 'ios_simulator 13.7') {
it('ucenter-ios13.7', async () => { it('ucenter-ios13.7', async () => {
expect(1).toBe(1) expect(1).toBe(1)
...@@ -37,9 +36,6 @@ describe('ucenter', () => { ...@@ -37,9 +36,6 @@ describe('ucenter', () => {
await page.callMethod('signInByAd') await page.callMethod('signInByAd')
await page.waitFor(1000) await page.waitFor(1000)
await page.callMethod('share') await page.callMethod('share')
// await program.screenshot({
// path: "static/screenshot/sign-app.png"
// })
} else { } else {
await page.callMethod('signIn') await page.callMethod('signIn')
} }
...@@ -56,9 +52,4 @@ describe('ucenter', () => { ...@@ -56,9 +52,4 @@ describe('ucenter', () => {
console.log("签到失败"); console.log("签到失败");
} }
}) })
it('screenshot', async () => {
const image = await program.screenshot();
expect(image).toSaveImageSnapshot();
await page.waitFor(500);
})
}) })
\ No newline at end of file
...@@ -21,7 +21,6 @@ describe('login-withpwd', () => { ...@@ -21,7 +21,6 @@ describe('login-withpwd', () => {
"captcha":"1234" "captcha":"1234"
}) })
} }
const resLogin = await page.callMethod('pwdLogin') const resLogin = await page.callMethod('pwdLogin')
console.log("resLogin: ", resLogin); console.log("resLogin: ", resLogin);
expect.assertions(1); expect.assertions(1);
......
...@@ -29,11 +29,6 @@ describe('userinfo', () => { ...@@ -29,11 +29,6 @@ describe('userinfo', () => {
console.log("update--nickname---2", userInfo.nickname) console.log("update--nickname---2", userInfo.nickname)
expect(userInfo.nickname).toBe(nickname) expect(userInfo.nickname).toBe(nickname)
}) })
it('screenshot', async () => {
const image = await program.screenshot();
expect(image).toSaveImageSnapshot();
await page.waitFor(500);
})
// it("头像", async () => { // it("头像", async () => {
// const imgs = [ // const imgs = [
// "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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册