Skip to content

Commit

Permalink
[cypress][sqllab] increase timeout for sqllab results (#6089)
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Oct 12, 2018
1 parent 2a7b64f commit 1d2b1aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/assets/cypress/integration/sqllab/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default () => {

cy.wait('@sqlLabQuery');

cy.get('.SouthPane .ReactVirtualized__Table')
selectResultsTab()
.eq(0) // ensures results tab in case preview tab exists
.then((tableNodes) => {
const [header, bodyWrapper] = tableNodes[0].childNodes;
Expand Down
3 changes: 2 additions & 1 deletion superset/assets/cypress/integration/sqllab/sqllab.helper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const selectResultsTab = () => cy.get('.SouthPane .ReactVirtualized__Table');
export const selectResultsTab = () =>
cy.get('.SouthPane .ReactVirtualized__Table', { timeout: 10000 });

// this function asserts that the result set for two SQL lab table results are equal
export const assertSQLLabResultsAreEqual = (resultsA, resultsB) => {
Expand Down

0 comments on commit 1d2b1aa

Please sign in to comment.