Skip to content

Commit cf1e0e5

Browse files
committed
fix Cypress
1 parent 0f4b420 commit cf1e0e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/eui/src/components/flyout/flyout.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ describe('EuiFlyout', () => {
8383
it('traps focus and cycles tabbable items', () => {
8484
cy.mount(<Flyout />);
8585
cy.get('[data-test-subj="flyoutSpec"]').should('be.focused');
86-
cy.repeatRealPress('Tab', 4);
87-
cy.get('[data-test-subj="itemC"]').should('be.focused');
8886
cy.repeatRealPress('Tab', 3);
87+
cy.get('[data-test-subj="itemC"]').should('be.focused');
88+
cy.repeatRealPress('Tab', 2);
8989
cy.get('[data-test-subj="euiFlyoutCloseButton"]').should('be.focused');
9090
});
9191

packages/eui/src/components/tool_tip/tool_tip.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe('EuiToolTip', () => {
114114

115115
cy.get('[data-test-subj="flyout"]').focus();
116116

117-
cy.repeatRealPress('Tab', 2);
117+
cy.repeatRealPress('Tab', 1);
118118
cy.get('[data-test-subj="tool_tip"]').should('exist');
119119

120120
cy.realPress('Escape');

0 commit comments

Comments
 (0)