Browse Source
Merge pull request #5429 from Budibase/cypress-testing
Updated MySQL Duplicate Query test
pull/5443/head
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
4 additions and
3 deletions
-
packages/builder/cypress/integration/datasources/mySql.spec.js
|
|
|
@ -180,11 +180,12 @@ filterTests(["all"], () => { |
|
|
|
}) |
|
|
|
|
|
|
|
it("should duplicate a query", () => { |
|
|
|
// Get last nav item - The query
|
|
|
|
/// Get query nav item - QueryName
|
|
|
|
cy.get(".nav-item") |
|
|
|
.last() |
|
|
|
.contains(queryName) |
|
|
|
.parent() |
|
|
|
.within(() => { |
|
|
|
cy.get(".icon").eq(1).click({ force: true }) |
|
|
|
cy.get(".spectrum-Icon").eq(1).click({ force: true }) |
|
|
|
}) |
|
|
|
// Select and confirm duplication
|
|
|
|
cy.get(".spectrum-Menu").contains("Duplicate").click() |
|
|
|
|