Skip to content

Commit 7fc661c

Browse files
committed
Adjusted cypress tests again
1 parent 0c323e3 commit 7fc661c

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

packages/react-integration/cypress/integration/tabshorizontaloverflow.spec.ts

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@ describe('Tab Demo Test', () => {
33
cy.visit('http://localhost:3000/tabs-horizontal-overflow-demo-nav-link');
44
});
55

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-
276
// Re-enable once https://github.com/patternfly/patternfly/issues/7449 is resolved
287
xit('Adjusts tabs showing on resize', () => {
298
// shrink viewport and verify that tabs which would now overflow are moved to the overflow tab
@@ -56,4 +35,13 @@ describe('Tab Demo Test', () => {
5635
].forEach((tab) => cy.contains('.pf-v6-c-tabs__link', tab).should('exist'));
5736
cy.contains('.pf-v6-c-tabs__link', 'More').should('not.exist');
5837
});
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+
});
5947
});

0 commit comments

Comments
 (0)