From 268bf54d36ffaf9d2ea7384ab7d54c813dbce2c3 Mon Sep 17 00:00:00 2001 From: Leonardo Petrora <29212725+lpetrora@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:32:31 +0100 Subject: [PATCH] Update the selector for button --- tests/e2e/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/constants.ts b/tests/e2e/constants.ts index 0f45697..8946a13 100644 --- a/tests/e2e/constants.ts +++ b/tests/e2e/constants.ts @@ -60,9 +60,9 @@ export const GRAFANA_SELECTORS = { REFRESH_GRAPH_BUTTON: 'button[data-testid="data-testid RefreshPicker run button"]', - APPLY_CHANGES_AND_SAVE_BUTTON: 'button[title="Apply changes and save dashboard"]', + APPLY_CHANGES_AND_SAVE_BUTTON: 'button[data-testid="data-testid Save dashboard button"]', SAVE_DASHBOARD_TITLE: 'input[aria-label="Save dashboard title field"]', - SAVE_BUTTON: 'button[aria-label="Save dashboard button"]', + SAVE_BUTTON: 'button[data-testid="data-testid Save dashboard drawer button"]', }, };