Skip to content

Commit

Permalink
(focus-trap/cypress/e2e/tab-cycle.cy.ts) Fix argument for
Browse files Browse the repository at this point in the history
 is  by default, meaning tab-cycle.cy.ts was unable to focus elements outside of the trap to verify that the focus is correclty passed to elements inside of the trap.
  • Loading branch information
DaviDevMod committed May 19, 2023
1 parent 341730d commit fc5bb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/focus-trap/cypress/e2e/tab-cycle.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DEFAULT_ROOTS } from '../support/commands';
context('Test how the focus cycles within the trap when the Tab key is pressed.', () => {
beforeEach(() => {
cy.visitDemo();
cy.buildTrap({ roots: DEFAULT_ROOTS });
cy.buildTrap({ roots: DEFAULT_ROOTS, lock: false });
cy.get('button[data-parent-id]').as('possibleTabbables');
});

Expand Down

0 comments on commit fc5bb72

Please sign in to comment.