Skip to content

Commit

Permalink
fix(ci): ensure navigation test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Jul 29, 2024
1 parent 6bda3ed commit 2dfe1a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('ods-breadcrumb navigation', () => {
<ods-breadcrumb-item id="second" label="Second"></ods-breadcrumb-item>
<ods-breadcrumb-item id="last" label="Last"></ods-breadcrumb-item>
</ods-breadcrumb>
<button id="button">Dummy</button>
`);

await page.keyboard.press('Tab');
Expand All @@ -42,8 +43,7 @@ describe('ods-breadcrumb navigation', () => {
await page.keyboard.press('Tab');
await page.waitForChanges();

expect(await isItemFocused('first')).toBe(true);
expect(await isItemFocused('last')).toBe(false);
expect(await isItemFocused('button')).toBe(true);
});

it('should focus only first and expandable items if there is more than the max items', async() => {
Expand Down

0 comments on commit 2dfe1a0

Please sign in to comment.