Updated MySQL Duplicate Query test

Fixing the navigation used when selecting queries
This commit is contained in:
Mitch-Budibase 2022-04-14 20:20:09 +01:00
parent 8c613db188
commit 55588415b0
1 changed files with 4 additions and 3 deletions

View File

@ -180,11 +180,12 @@ filterTests(["all"], () => {
}) })
it("should duplicate a query", () => { it("should duplicate a query", () => {
// Get last nav item - The query /// Get query nav item - QueryName
cy.get(".nav-item") cy.get(".nav-item")
.last() .contains(queryName)
.parent()
.within(() => { .within(() => {
cy.get(".icon").eq(1).click({ force: true }) cy.get(".spectrum-Icon").eq(1).click({ force: true })
}) })
// Select and confirm duplication // Select and confirm duplication
cy.get(".spectrum-Menu").contains("Duplicate").click() cy.get(".spectrum-Menu").contains("Duplicate").click()