This is an automated email from the ASF dual-hosted git repository.

suddjian pushed a commit to branch behavior-driven-cypress
in repository https://gitbox.apache.org/repos/asf/superset.git

commit cae8116ce44ee5ffc8f989e2a894bfd039a331e6
Author: David Aaron Suddjian <[email protected]>
AuthorDate: Wed Mar 24 12:29:27 2021 -0700

    fix race condition
---
 .../cypress-base/cypress/integration/dashboard/filter.test.ts           | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts 
b/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts
index b84d97d..739b6bc 100644
--- 
a/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts
+++ 
b/superset-frontend/cypress-base/cypress/integration/dashboard/filter.test.ts
@@ -21,6 +21,7 @@ import {
   WORLD_HEALTH_CHARTS,
   WORLD_HEALTH_DASHBOARD,
   getChartAliases,
+  waitForChartLoad,
 } from './dashboard.helper';
 
 describe('Dashboard filter', () => {
@@ -30,6 +31,7 @@ describe('Dashboard filter', () => {
   });
 
   it('should apply filter', () => {
+    WORLD_HEALTH_CHARTS.forEach(waitForChartLoad);
     getChartAliases(
       WORLD_HEALTH_CHARTS.filter(({ viz }) => viz !== 'filter_box'),
     ).then(nonFilterChartAliases => {

Reply via email to