@@ -10,31 +10,10 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ title, screensh
1010 test ( 'should not have visual regressions' , async ( { page } ) => {
1111 await page . setContent (
1212 `
13- <style>
14- :root {
15- background: #ccc7c7;
16- }
17- </style>
18-
19- <ion-content>
20- <ion-tab-bar expand="full">
21- <ion-tab-button tab="1">
22- <ion-icon name="triangle-outline"></ion-icon>
23- <ion-label>Label</ion-label>
24- </ion-tab-button>
25-
26- <ion-tab-button tab="2">
27- <ion-icon name="triangle-outline"></ion-icon>
28- <ion-label>Label</ion-label>
29- </ion-tab-button>
30-
31- <ion-tab-button tab="3">
32- <ion-icon name="triangle-outline"></ion-icon>
33- <ion-label>Label</ion-label>
34- </ion-tab-button>
35- </ion-tab-bar>
36- </ion-content>
37- ` ,
13+ <ion-content>
14+ <ion-tab-bar expand="full"/>
15+ </ion-content>
16+ ` ,
3817 config
3918 ) ;
4019
@@ -49,35 +28,14 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ title, screensh
4928 test ( 'should not have visual regressions' , async ( { page } ) => {
5029 await page . setContent (
5130 `
52- <style>
53- :root {
54- background: #ccc7c7;
55- }
56- </style>
57-
5831 <ion-content>
59- <ion-tab-bar expand="compact">
60- <ion-tab-button tab="1">
61- <ion-icon name="triangle-outline"></ion-icon>
62- <ion-label>Label</ion-label>
63- </ion-tab-button>
64-
65- <ion-tab-button tab="2">
66- <ion-icon name="triangle-outline"></ion-icon>
67- <ion-label>Label</ion-label>
68- </ion-tab-button>
69-
70- <ion-tab-button tab="3">
71- <ion-icon name="triangle-outline"></ion-icon>
72- <ion-label>Label</ion-label>
73- </ion-tab-button>
74- </ion-tab-bar>
32+ <ion-tab-bar expand="compact"/>
7533 </ion-content>
76- ` ,
34+ ` ,
7735 config
7836 ) ;
7937
80- // Used the `ion-content` element to take the screenshot because the `ion-tab-bar`element would not be visible otherwise
38+ // Used the `ion-content` element to take the screenshot because the `ion-tab-bar` element would not be visible otherwise
8139 const content = page . locator ( 'ion-content' ) ;
8240
8341 await expect ( content ) . toHaveScreenshot ( screenshot ( `tab-bar-expand-compact` ) ) ;
0 commit comments