Skip to content

The open alternative to Salesforce, designed for AI.

Fix the Dropdown gallery story Shift+Tab race (#29125)

Raphaël Bosi5f34baa00d6b
diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/dropdownTest.ts b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/dropdownTest.ts
index 82dc1c70aef..0aff76d63bf 100644
--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/dropdownTest.ts
+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/dropdownTest.ts
@@ -65,6 +65,9 @@ export const dropdownTest: TwentyUiGalleryPlayFunction = async ({
await waitFor(() => expect(grace).toHaveFocus(), {
timeout: INTERACTION_TIMEOUT,
});
+ await waitFor(() => expect(ada).toHaveAttribute('tabindex', '-1'), {
+ timeout: INTERACTION_TIMEOUT,
+ });
await userEvent.tab({ shift: true });
await waitFor(() => expect(search).toHaveFocus(), {
timeout: INTERACTION_TIMEOUT,