Skip to content

Commit

Permalink
fix(tool_tip): focus the wrapper and tab into the trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
weronikaolejniczak committed Nov 29, 2024
1 parent 6dc6d35 commit f020bb0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/eui/src/components/tool_tip/tool_tip.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ describe('EuiToolTip', () => {
);
cy.get('[data-test-subj="tool_tip"]').should('not.exist');

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

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

cy.realPress('Escape');
Expand Down Expand Up @@ -148,7 +150,9 @@ describe('EuiToolTip', () => {
);
cy.get('[data-test-subj="tool_tip"]').should('not.exist');

cy.get('[data-test-subj="tool_tip_trigger"]').focus();
cy.get('[data-test-subj="modal"]').focus();

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

cy.realPress('Escape');
Expand Down Expand Up @@ -199,7 +203,9 @@ describe('EuiToolTip', () => {
);
cy.get('[data-test-subj="tool_tip"]').should('not.exist');

cy.get('[data-test-subj="tool_tip_trigger"]').focus();
cy.get('[data-test-subj="popover"]').focus();

cy.realPress('Tab');
cy.get('[data-test-subj="tool_tip"]').should('exist');

cy.realPress('Escape');
Expand Down

0 comments on commit f020bb0

Please sign in to comment.