Skip to content

Commit

Permalink
fix(cypress): wait for filterValues request (#10884)
Browse files Browse the repository at this point in the history
  • Loading branch information
nytai authored Sep 15, 2020
1 parent 2a6bcbb commit 045335a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 045335a

Please sign in to comment.