test(e2e): update e2e tests for screenshot (#16056)

This commit is contained in:
Adam Bradley
2018-10-23 23:56:40 -05:00
committed by GitHub
parent 02ef52b85c
commit d800c48734
12 changed files with 19 additions and 4 deletions

View File

@ -5,6 +5,8 @@ it('slides: basic', async () => {
url: '/src/components/slides/test/basic?ionic:_testing=true'
});
await page.waitFor(500);
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
});

View File

@ -22,7 +22,7 @@
<ion-content id="content">
<ion-slides style="background: black" id="slides" pager>
<ion-slide style="background: red; color: white;">
<ion-slide style="background: rgb(0, 200, 0); color: white;">
<h1>Slide 1</h1>
</ion-slide>
<ion-slide style="background: white; color: blue;">

View File

@ -5,6 +5,8 @@ it('slides: standalone', async () => {
url: '/src/components/slides/test/standalone?ionic:_testing=true'
});
await page.waitFor(500);
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
});

View File

@ -13,7 +13,7 @@
<body>
<ion-slides style="background: black" pager="true">
<ion-slide style="background: red; color: white;">
<ion-slide style="background: green; color: white;">
<h1>Slide 1</h1>
</ion-slide>