mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
test(e2e): update e2e tests for screenshot (#16056)
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
@ -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;">
|
||||
|
@ -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();
|
||||
});
|
||||
|
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user