diff --git a/packages/component-library/src/composables/_internal/priority-plus-navigation.stories.ts b/packages/component-library/src/composables/_internal/priority-plus-navigation.stories.ts index aee1de9d3..adb147f0b 100644 --- a/packages/component-library/src/composables/_internal/priority-plus-navigation.stories.ts +++ b/packages/component-library/src/composables/_internal/priority-plus-navigation.stories.ts @@ -101,6 +101,7 @@ export const VisualTestHidesTheLastThreeItems: StoryObj = { // We need to wait until the component updated itself await waitFor(() => expect(canvas.getByText("Item 1")).toHaveAttribute("aria-hidden", "false")); + await waitFor(() => expect(canvas.getByText("Item 10")).toHaveAttribute("aria-hidden", "true")); await expect(canvas.getByText("Item 1")).toHaveAttribute("aria-hidden", "false"); await expect(canvas.getByText("Item 2")).toHaveAttribute("aria-hidden", "false");