From 045335a687580df0fc835824cb3381367d737cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CA=88=E1=B5=83=E1=B5=A2?= Date: Tue, 15 Sep 2020 09:52:44 -0700 Subject: [PATCH] fix(cypress): wait for filterValues request (#10884) --- .../cypress/integration/explore/AdhocFilters.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/superset-frontend/cypress-base/cypress/integration/explore/AdhocFilters.test.ts b/superset-frontend/cypress-base/cypress/integration/explore/AdhocFilters.test.ts index d38a60a6f7..c51da29acd 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/AdhocFilters.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/explore/AdhocFilters.test.ts @@ -22,6 +22,7 @@ describe('AdhocFilters', () => { cy.server(); cy.route('GET', '/superset/explore_json/**').as('getJson'); cy.route('POST', '/superset/explore_json/**').as('postJson'); + cy.route('GET', '/superset/filter/table/*/name').as('filterValues'); }); it('Set simple adhoc filter', () => { @@ -56,6 +57,8 @@ describe('AdhocFilters', () => { cy.get('input[type=text]').focus().type('name{enter}'); }); + cy.wait('@filterValues'); + cy.get('#filter-edit-popover').within(() => { cy.get('#adhoc-filter-edit-tabs-tab-SQL').click(); cy.get('.ace_content').click();