Skip to content

Commit a71702d

Browse files
committed
fix(tests): increase tooltip visibility timeout to accomodate for async nature
1 parent 530a145 commit a71702d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Button Demo Test', () => {
1010
.should('have.attr', 'aria-describedby', 'button-with-tooltip-1');
1111
});
1212
// Tooltip visibility is async due to requestAnimationFrame-based positioning
13-
cy.get('.pf-v6-c-tooltip', { timeout: 1000 }).should('be.visible');
13+
cy.get('.pf-v6-c-tooltip', { timeout: 6000 }).should('be.visible');
1414
});
1515

1616
it('Verify isAriaDisabled button has tooltip when hovered', () => {
@@ -19,7 +19,7 @@ describe('Button Demo Test', () => {
1919
.trigger('mouseover')
2020
.should('have.attr', 'aria-describedby', 'button-with-tooltip-1');
2121
});
22-
cy.get('.pf-v6-c-tooltip', { timeout: 1000 }).should('be.visible');
22+
cy.get('.pf-v6-c-tooltip', { timeout: 6000 }).should('be.visible');
2323
});
2424

2525
it('Verify isAriaDisabled button prevents default actions', () => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('OverflowMenu Demo Test', () => {
142142
it('Verify dropdown menu expanded', () => {
143143
cy.get('#container-breakpoint-overflow-menu button').last().click({ force: true });
144144
cy.get('#container-breakpoint-overflow-menu .pf-v6-c-menu-toggle').should('have.class', 'pf-m-expanded');
145-
cy.get('.container-breakpoint-overflow-menu.pf-v6-c-menu', { timeout: 1000 }).should('be.visible');
145+
cy.get('.container-breakpoint-overflow-menu.pf-v6-c-menu', { timeout: 6000 }).should('be.visible');
146146
// close overflow menu again
147147
cy.get('#container-breakpoint-overflow-menu button').last().click({ force: true });
148148
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ describe('Disabled Tab Demo Test', () => {
4141
it('Verify aria-disabled with tooltip', () => {
4242
cy.get(withTooltip.button).trigger('mouseover');
4343
// Tooltip visibility is async due to requestAnimationFrame-based positioning
44-
cy.get('.pf-v6-c-tooltip', { timeout: 1000 }).should('be.visible');
44+
cy.get('.pf-v6-c-tooltip', { timeout: 6000 }).should('be.visible');
4545
});
4646
});

0 commit comments

Comments
 (0)