Browse Source

test(ui): Prevent another projects dashboard flake (#66037)

Scott Cooper 1 year ago
parent
commit
fd777f2ad0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      static/app/views/projectsDashboard/index.spec.tsx

+ 6 - 0
static/app/views/projectsDashboard/index.spec.tsx

@@ -50,6 +50,10 @@ describe('ProjectsDashboard', function () {
       url: `/teams/${org.slug}/${team.slug}/members/`,
       body: [],
     });
+    MockApiClient.addMockResponse({
+      url: `/organizations/${org.slug}/projects/`,
+      body: [],
+    });
     ProjectsStatsStore.reset();
     ProjectsStore.loadInitialData([]);
   });
@@ -158,10 +162,12 @@ describe('ProjectsDashboard', function () {
           ProjectFixture({
             id: '1',
             slug: 'project1',
+            stats: [],
           }),
           ProjectFixture({
             id: '2',
             slug: 'project2',
+            stats: [],
           }),
         ],
       });