Browse Source

test(ui): Update sudo test for react 18 (#67275)

Scott Cooper 11 months ago
parent
commit
871522d359
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/views/organizationContext.spec.tsx

+ 1 - 1
static/app/views/organizationContext.spec.tsx

@@ -199,7 +199,7 @@ describe('OrganizationContext', function () {
 
     await waitFor(() => !OrganizationStore.getState().loading);
 
-    expect(openSudo).toHaveBeenCalled();
+    await waitFor(() => expect(openSudo).toHaveBeenCalled());
   });
 
   it('opens sudo modal for superusers on 403s', async function () {