@@ -9,18 +9,17 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
99 test ( 'should show the first content with no initial value' , async ( { page } ) => {
1010 await page . setContent (
1111 `
12- <ion-segment>
13- <ion-segment-button content-id="paid" value="paid">
14- <ion-label>Paid</ion-label>
15- </ion-segment-button>
16- <ion-segment-button content-id="free" value="free">
17- <ion-label>Free</ion-label>
18- </ion-segment-button>
19- <ion-segment-button content-id="top" value="top">
20- <ion-label>Top</ion-label>
21- </ion-segment-button>
22- </ion-segment>
23- </ion-toolbar>
12+ <ion-segment>
13+ <ion-segment-button content-id="paid" value="paid">
14+ <ion-label>Paid</ion-label>
15+ </ion-segment-button>
16+ <ion-segment-button content-id="free" value="free">
17+ <ion-label>Free</ion-label>
18+ </ion-segment-button>
19+ <ion-segment-button content-id="top" value="top">
20+ <ion-label>Top</ion-label>
21+ </ion-segment-button>
22+ </ion-segment>
2423 <ion-segment-view>
2524 <ion-segment-content id="paid">Paid</ion-segment-content>
2625 <ion-segment-content id="free">Free</ion-segment-content>
@@ -37,18 +36,17 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
3736 test ( 'should show the content matching the initial value' , async ( { page } ) => {
3837 await page . setContent (
3938 `
40- <ion-segment value="free">
41- <ion-segment-button content-id="paid" value="paid">
42- <ion-label>Paid</ion-label>
43- </ion-segment-button>
44- <ion-segment-button content-id="free" value="free">
45- <ion-label>Free</ion-label>
46- </ion-segment-button>
47- <ion-segment-button content-id="top" value="top">
48- <ion-label>Top</ion-label>
49- </ion-segment-button>
50- </ion-segment>
51- </ion-toolbar>
39+ <ion-segment value="free">
40+ <ion-segment-button content-id="paid" value="paid">
41+ <ion-label>Paid</ion-label>
42+ </ion-segment-button>
43+ <ion-segment-button content-id="free" value="free">
44+ <ion-label>Free</ion-label>
45+ </ion-segment-button>
46+ <ion-segment-button content-id="top" value="top">
47+ <ion-label>Top</ion-label>
48+ </ion-segment-button>
49+ </ion-segment>
5250 <ion-segment-view>
5351 <ion-segment-content id="paid">Paid</ion-segment-content>
5452 <ion-segment-content id="free">Free</ion-segment-content>
@@ -65,18 +63,17 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
6563 test ( 'should update the content when changing the value by clicking a segment button' , async ( { page } ) => {
6664 await page . setContent (
6765 `
68- <ion-segment value="free">
69- <ion-segment-button content-id="paid" value="paid">
70- <ion-label>Paid</ion-label>
71- </ion-segment-button>
72- <ion-segment-button content-id="free" value="free">
73- <ion-label>Free</ion-label>
74- </ion-segment-button>
75- <ion-segment-button content-id="top" value="top">
76- <ion-label>Top</ion-label>
77- </ion-segment-button>
78- </ion-segment>
79- </ion-toolbar>
66+ <ion-segment value="free">
67+ <ion-segment-button content-id="paid" value="paid">
68+ <ion-label>Paid</ion-label>
69+ </ion-segment-button>
70+ <ion-segment-button content-id="free" value="free">
71+ <ion-label>Free</ion-label>
72+ </ion-segment-button>
73+ <ion-segment-button content-id="top" value="top">
74+ <ion-label>Top</ion-label>
75+ </ion-segment-button>
76+ </ion-segment>
8077 <ion-segment-view>
8178 <ion-segment-content id="paid">Paid</ion-segment-content>
8279 <ion-segment-content id="free">Free</ion-segment-content>
0 commit comments