Browse Source
Merge pull request #5965 from Budibase/cypress-testing
Cypres Testing - Datasource fetch table intercept
master
Mitch-Budibase
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
packages/builder/cypress/support/commands.js
|
|
|
@ -643,13 +643,14 @@ Cypress.Commands.add("addDatasourceConfig", (datasource, skipFetch) => { |
|
|
|
.click({ force: true }) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
cy.intercept("**/tables").as("datasourceTables") |
|
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
|
cy.get(".spectrum-Button") |
|
|
|
.contains("Save and fetch tables") |
|
|
|
.click({ force: true }) |
|
|
|
// Check modal closes after datasource config & fetch
|
|
|
|
cy.get(".spectrum-Dialog-grid", { timeout: 7000 }).should("not.exist") |
|
|
|
}) |
|
|
|
// Wait for tables to be fetched
|
|
|
|
cy.wait("@datasourceTables") |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
|