From 55588415b0de28b23c20ac7cd00707f3b9ad9f7a Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Thu, 14 Apr 2022 20:20:09 +0100 Subject: [PATCH] Updated MySQL Duplicate Query test Fixing the navigation used when selecting queries --- .../builder/cypress/integration/datasources/mySql.spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/builder/cypress/integration/datasources/mySql.spec.js b/packages/builder/cypress/integration/datasources/mySql.spec.js index ddb9ecb939..98bb2f2acf 100644 --- a/packages/builder/cypress/integration/datasources/mySql.spec.js +++ b/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()