Skip to content

Commit

Permalink
wait for tabstateview
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 22, 2025
1 parent 69f7763 commit c493c9e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ describe('SqlLab query panel', () => {
cy.intercept('/api/v1/sqllab/execute/').as('queryFinished');
cy.intercept('**/api/v1/explore/**').as('explore');
cy.intercept('**/api/v1/chart/**').as('chart');
cy.intercept('**/tabstateview/**').as('tabstateview');

// cypress doesn't handle opening a new tab, override window.open to open in the same tab
cy.window().then(win => {
Expand All @@ -154,6 +155,7 @@ describe('SqlLab query panel', () => {
win.location.href = url;
});
});
cy.wait('@tabstateview');

const query = 'SELECT gender, name FROM birth_names';

Expand Down

0 comments on commit c493c9e

Please sign in to comment.