Skip to content

Commit a9fa56a

Browse files
committed
test(tab-bar): add shape snapshots
1 parent bc8b59f commit a9fa56a

10 files changed

+18
-0
lines changed

core/src/components/tab-bar/test/shape/tab-bar.e2e.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ title, screensh
1111
test('should not have visual regressions', async ({ page }) => {
1212
await page.setContent(
1313
`
14+
<style>
15+
:root {
16+
background: #ccc7c7;
17+
}
18+
</style>
19+
1420
<ion-tab-bar shape="soft">
1521
<ion-tab-button tab="1">
1622
<ion-icon name="triangle-outline"></ion-icon>
@@ -41,6 +47,12 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ title, screensh
4147
test('should not have visual regressions', async ({ page }) => {
4248
await page.setContent(
4349
`
50+
<style>
51+
:root {
52+
background: #ccc7c7;
53+
}
54+
</style>
55+
4456
<ion-tab-bar shape="round">
4557
<ion-tab-button tab="1">
4658
<ion-icon name="triangle-outline"></ion-icon>
@@ -71,6 +83,12 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ title, screensh
7183
test('should not have visual regressions', async ({ page }) => {
7284
await page.setContent(
7385
`
86+
<style>
87+
:root {
88+
background: #ccc7c7;
89+
}
90+
</style>
91+
7492
<ion-tab-bar shape="rectangular">
7593
<ion-tab-button tab="1">
7694
<ion-icon name="triangle-outline"></ion-icon>
Loading
Loading
Loading
2.3 KB
Loading
3.69 KB
Loading
2.42 KB
Loading
1.94 KB
Loading
3.37 KB
Loading
1.99 KB
Loading

0 commit comments

Comments
 (0)