Skip to content

Commit 871522d

Browse files
authored
test(ui): Update sudo test for react 18 (#67275)
1 parent eceb12c commit 871522d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/app/views/organizationContext.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ describe('OrganizationContext', function () {
199199

200200
await waitFor(() => !OrganizationStore.getState().loading);
201201

202-
expect(openSudo).toHaveBeenCalled();
202+
await waitFor(() => expect(openSudo).toHaveBeenCalled());
203203
});
204204

205205
it('opens sudo modal for superusers on 403s', async function () {

0 commit comments

Comments
 (0)