fix(cypress): wait for filterValues request (#10884)

This commit is contained in:
ʈᵃᵢ 2020-09-15 09:52:44 -07:00 committed by GitHub
parent 2a6bcbb1eb
commit 045335a687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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();