From fba373314819b9e793c17fae2f86dca34070b943 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Tue, 18 Aug 2026 11:40:40 +1000 Subject: [PATCH] test(studio): allow scoped token creation in CI (#49163) ## What kind of change does this PR introduce? Test reliability fix. ## What is the current behavior? The two longest scoped access token creation tests can exceed Vitest's default five-second timeout when they run under the full Studio CI shard, despite passing locally. ## What is the new behavior? The project-scoped and organisation-scoped token creation tests each use a targeted ten-second timeout. The global timeout and production code remain unchanged. ## Summary by CodeRabbit * **Tests** * Increased test timeouts for project- and organization-scoped token creation scenarios to improve test reliability. --- .../Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx index dce13235404..a1c401f7170 100644 --- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx +++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx @@ -204,7 +204,7 @@ describe('NewScopedTokenSheet', () => { fireEvent.click(await screen.findByRole('button', { name: 'Done' })) // Dialog has been closed await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull()) - }) + }, 10_000) // Organization scope tests test('requires an organization when scope is Organization', async () => { @@ -254,7 +254,7 @@ describe('NewScopedTokenSheet', () => { fireEvent.click(await screen.findByRole('button', { name: 'Done' })) // Dialog has been closed await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull()) - }) + }, 10_000) test('opens the experimental API dialog from the dropdown', async () => { renderSheet()