File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/react/test/base/tests/e2e/specs/tabs Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,34 +3,34 @@ describe('IonTabs', () => {
3
3
beforeEach ( ( ) => {
4
4
cy . visit ( '/tabs/tab1' ) ;
5
5
} ) ;
6
-
6
+
7
7
it ( 'should handle onClick handlers on IonTabButton' , ( ) => {
8
8
const stub = cy . stub ( ) ;
9
-
9
+
10
10
cy . on ( 'window:alert' , stub ) ;
11
11
cy . get ( 'ion-tab-button[tab="tab1"]' ) . click ( ) . then ( ( ) => {
12
12
expect ( stub . getCall ( 0 ) ) . to . be . calledWith ( 'Tab was clicked' )
13
13
} ) ;
14
-
14
+
15
15
} ) ;
16
16
} ) ;
17
17
18
18
describe ( 'Without IonRouterOutlet' , ( ) => {
19
19
beforeEach ( ( ) => {
20
20
cy . visit ( '/tabs-basic' ) ;
21
21
} ) ;
22
-
23
- it ( 'should show correct tab when clicking the tab button' , ( ) => {
22
+
23
+ it . skip ( 'should show correct tab when clicking the tab button' , ( ) => {
24
24
cy . get ( 'ion-tab[tab="tab1"]' ) . should ( 'be.visible' ) ;
25
25
cy . get ( 'ion-tab[tab="tab2"]' ) . should ( 'not.be.visible' ) ;
26
-
26
+
27
27
cy . get ( 'ion-tab-button[tab="tab2"]' ) . click ( ) ;
28
-
28
+
29
29
cy . get ( 'ion-tab[tab="tab1"]' ) . should ( 'not.be.visible' ) ;
30
30
cy . get ( 'ion-tab[tab="tab2"]' ) . should ( 'be.visible' ) ;
31
-
31
+
32
32
cy . get ( 'ion-tab-button[tab="tab1"]' ) . click ( ) ;
33
-
33
+
34
34
cy . get ( 'ion-tab[tab="tab1"]' ) . should ( 'be.visible' ) ;
35
35
cy . get ( 'ion-tab[tab="tab2"]' ) . should ( 'not.be.visible' ) ;
36
36
} ) ;
You can’t perform that action at this time.
0 commit comments