Skip to content

Commit

Permalink
Fixes Cypress test #2
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Jan 28, 2022
1 parent 4ab76ab commit 189bff2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Advanced analytics', () => {
cy.login();
cy.intercept('POST', '/superset/explore_json/**').as('postJson');
cy.intercept('GET', '/superset/explore_json/**').as('getJson');
cy.intercept('PUT', '/api/v1/explore/**').as('putExplore');
cy.intercept('GET', '/superset/explore/**').as('getExplore');
});

Expand All @@ -41,13 +42,13 @@ describe('Advanced analytics', () => {

cy.get('button[data-test="run-query-button"]').click();
cy.wait('@postJson');
cy.wait('@putExplore');
cy.reload();
cy.wait('@getExplore');
cy.verifySliceSuccess({
waitAlias: '@postJson',
chartSelector: 'svg',
});

cy.wait('@getExplore');
cy.get('.ant-collapse-header').contains('Advanced Analytics').click();
cy.get('[data-test=time_compare]')
.find('.ant-select-selector')
Expand Down

0 comments on commit 189bff2

Please # to comment.