From ed5a188f04b2d6cd3d4ff3fe9329d8588a4512d6 Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Wed, 30 Sep 2026 11:24:40 +0200 Subject: [PATCH] Fix authorize page tests --- apps/studio/tests/pages/authorize.test.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/studio/tests/pages/authorize.test.tsx b/apps/studio/tests/pages/authorize.test.tsx index 1633e2b4f05..d009d008c7a 100644 --- a/apps/studio/tests/pages/authorize.test.tsx +++ b/apps/studio/tests/pages/authorize.test.tsx @@ -120,7 +120,7 @@ describe('APIAuthorizationPage', () => { expect(await screen.findByText('This grant covers every project')).toBeInTheDocument() expect(screen.queryByRole('combobox')).not.toBeInTheDocument() - expect(screen.getByText('This grant is shared with the whole organization')).toBeInTheDocument() + expect(screen.getByText('Want this scoped to one member?')).toBeInTheDocument() }) test('user_bound_all renders without a picker and covers every project', async () => { @@ -134,8 +134,6 @@ describe('APIAuthorizationPage', () => { expect(await screen.findByText('This grant covers every project')).toBeInTheDocument() expect(screen.queryByRole('combobox')).not.toBeInTheDocument() - expect( - screen.queryByText('This grant is shared with the whole organization') - ).not.toBeInTheDocument() + expect(screen.queryByText('Want this scoped to one member?')).not.toBeInTheDocument() }) })