From b7aaf00c6c3719005e6c91254479a80dacf96fa9 Mon Sep 17 00:00:00 2001 From: Alex Spencer <52186778+alexjonspencer1@users.noreply.github.com> Date: Tue, 25 Nov 2025 15:50:08 -0800 Subject: [PATCH] fix: e2e --- e2e-playwright/panels-suite/panelEdit_queries.spec.ts | 5 ++++- e2e/old-arch/panels-suite/panelEdit_queries.spec.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/e2e-playwright/panels-suite/panelEdit_queries.spec.ts b/e2e-playwright/panels-suite/panelEdit_queries.spec.ts index e60a7cc32b3..e13a04081a2 100644 --- a/e2e-playwright/panels-suite/panelEdit_queries.spec.ts +++ b/e2e-playwright/panels-suite/panelEdit_queries.spec.ts @@ -40,10 +40,13 @@ test.describe( await expect(dashboardPage.getByGrafanaSelector(selectors.components.QueryEditorRows.rows)).toHaveCount(1); // Duplicate refId B + // Open the actions menu await dashboardPage - .getByGrafanaSelector(selectors.components.QueryEditorRow.actionButton('Duplicate query')) + .getByGrafanaSelector(selectors.components.QueryEditorRow.actionButton('Query actions menu')) .first() .click(); + // Click duplicate query in the menu + await page.getByText('Duplicate query').click(); // We expect row with refId B and A to exist and be visible await expect(dashboardPage.getByGrafanaSelector(selectors.components.QueryEditorRows.rows)).toHaveCount(2); diff --git a/e2e/old-arch/panels-suite/panelEdit_queries.spec.ts b/e2e/old-arch/panels-suite/panelEdit_queries.spec.ts index 1700a00ea9f..2e320699497 100644 --- a/e2e/old-arch/panels-suite/panelEdit_queries.spec.ts +++ b/e2e/old-arch/panels-suite/panelEdit_queries.spec.ts @@ -35,7 +35,10 @@ describe('Panel edit tests - queries', () => { e2e.components.QueryEditorRows.rows({ timeout: flakyTimeout }).should('have.length', 1); // Duplicate refId B - e2e.components.QueryEditorRow.actionButton('Duplicate query').eq(0).should('be.visible').click(); + // Open the actions menu + e2e.components.QueryEditorRow.actionButton('Query actions menu').eq(0).should('be.visible').click(); + // Click duplicate query in the menu + cy.contains('Duplicate query').should('be.visible').click(); // We expect row with refId Band and A to exist and be visible e2e.components.QueryEditorRows.rows().should('have.length', 2);