@@ -3,27 +3,6 @@ describe('Tab Demo Test', () => {
3
3
cy . visit ( 'http://localhost:3000/tabs-horizontal-overflow-demo-nav-link' ) ;
4
4
} ) ;
5
5
6
- it ( 'Updates overflow tab title based on tab selection' , ( ) => {
7
- cy . contains ( '.pf-v6-c-tabs__link' , 'More' ) . should ( 'exist' ) ;
8
- cy . contains ( 'Tab item 9' ) . should ( 'not.exist' ) ;
9
- cy . contains ( '.pf-v6-c-tabs__link' , 'More' ) . click ( ) ;
10
- cy . contains ( 'Tab item 9' ) . click ( ) ;
11
- cy . contains ( 'More' ) . should ( 'not.exist' ) ;
12
- cy . contains ( '.pf-v6-c-tabs__link' , 'Tab item 9' ) . should ( 'exist' ) ;
13
- cy . contains ( 'Tab item 1' ) . click ( ) ;
14
- cy . contains ( 'Tab item 9' ) . should ( 'not.exist' ) ;
15
- cy . contains ( 'More' ) . should ( 'exist' ) ;
16
- } ) ;
17
-
18
- it ( 'Allows selection of tabs from overflow tab menu' , ( ) => {
19
- cy . contains ( 'Tab 1 section' ) . should ( 'not.be.hidden' ) ;
20
- cy . contains ( 'Tab 9 section' ) . should ( 'be.hidden' ) ;
21
- cy . contains ( '.pf-v6-c-tabs__link' , 'More' ) . click ( ) ;
22
- cy . contains ( 'Tab item 9' ) . click ( ) ;
23
- cy . contains ( 'Tab 9 section' ) . should ( 'not.be.hidden' ) ;
24
- cy . contains ( 'Tab 1 section' ) . should ( 'be.hidden' ) ;
25
- } ) ;
26
-
27
6
// Re-enable once https://github.com/patternfly/patternfly/issues/7449 is resolved
28
7
xit ( 'Adjusts tabs showing on resize' , ( ) => {
29
8
// shrink viewport and verify that tabs which would now overflow are moved to the overflow tab
@@ -56,4 +35,13 @@ describe('Tab Demo Test', () => {
56
35
] . forEach ( ( tab ) => cy . contains ( '.pf-v6-c-tabs__link' , tab ) . should ( 'exist' ) ) ;
57
36
cy . contains ( '.pf-v6-c-tabs__link' , 'More' ) . should ( 'not.exist' ) ;
58
37
} ) ;
38
+
39
+ it ( 'Allows selection of tabs from overflow tab menu' , ( ) => {
40
+ cy . contains ( 'Tab 1 section' ) . should ( 'not.be.hidden' ) ;
41
+ cy . contains ( 'Tab 9 section' ) . should ( 'be.hidden' ) ;
42
+ cy . contains ( '.pf-v6-c-tabs__link' , 'More' ) . click ( ) ;
43
+ cy . contains ( 'Tab item 9' ) . click ( ) ;
44
+ cy . contains ( 'Tab 9 section' ) . should ( 'not.be.hidden' ) ;
45
+ cy . contains ( 'Tab 1 section' ) . should ( 'be.hidden' ) ;
46
+ } ) ;
59
47
} ) ;
0 commit comments