Skip to content

Commit

Permalink
feat(modal): fix e2e navigation tests for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Leotheluck authored and dpellier committed Jul 29, 2024
1 parent c7ceb25 commit 0763540
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ describe('ods-modal navigation', () => {
<button id="button2">Button 2</button>
`);

await page.keyboard.press('Tab');
await page.keyboard.press('Tab');
await page.keyboard.press('Tab');

expect(await page.evaluate(() => document.activeElement?.id)).toBe('input1');
expect(await page.evaluate(() => document.activeElement?.id)).not.toBe('button2');
});

it('should focus the dismissible button first if set', async() => {
Expand Down

0 comments on commit 0763540

Please sign in to comment.