From 0f1977622fde1a7fe68712677a8dd00110f79623 Mon Sep 17 00:00:00 2001 From: Marie Idleman Date: Wed, 19 Feb 2025 06:30:20 -0600 Subject: [PATCH 1/2] update locator --- test/e2e/pages/plots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/pages/plots.ts b/test/e2e/pages/plots.ts index 270dc9faef4..abc497d85c3 100644 --- a/test/e2e/pages/plots.ts +++ b/test/e2e/pages/plots.ts @@ -45,7 +45,7 @@ export class Plots { this.clearPlotsButton = this.code.driver.page.locator(CLEAR_PLOTS_BUTTON); this.plotSizeButton = this.code.driver.page.locator(PLOT_SIZE_BUTTON); this.savePlotFromPlotsPaneButton = this.code.driver.page.locator(SAVE_PLOT_FROM_PLOTS_PANE_BUTTON); - this.savePlotFromEditorButton = this.code.driver.page.locator(SAVE_PLOT_FROM_EDITOR_BUTTON); + this.savePlotFromEditorButton = this.code.driver.page.getByRole('button', { name: 'Save Plot From Active Editor' }); this.copyPlotButton = this.code.driver.page.locator(COPY_PLOT_BUTTON); this.zoomPlotButton = this.code.driver.page.locator(ZOOM_PLOT_BUTTON); this.currentPlot = this.code.driver.page.locator(CURRENT_PLOT); From 6920f4d59b5baeb8d0c7dbe0cca03354fcd5a0b5 Mon Sep 17 00:00:00 2001 From: Marie Idleman Date: Wed, 19 Feb 2025 06:31:42 -0600 Subject: [PATCH 2/2] remove unused --- test/e2e/pages/plots.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/test/e2e/pages/plots.ts b/test/e2e/pages/plots.ts index abc497d85c3..15fac3e1ebc 100644 --- a/test/e2e/pages/plots.ts +++ b/test/e2e/pages/plots.ts @@ -15,7 +15,6 @@ const PREVIOUS_PLOT_BUTTON = '.positron-plots-container .positron-action-bar .po const CLEAR_PLOTS_BUTTON = '.positron-plots-container .positron-action-bar .positron-button[aria-label="Clear all plots"]'; const PLOT_SIZE_BUTTON = '.positron-plots-container .positron-action-bar .positron-button[aria-label="Auto"]'; const SAVE_PLOT_FROM_PLOTS_PANE_BUTTON = '.positron-plots-container .positron-action-bar .positron-button[aria-label="Save plot"]'; -const SAVE_PLOT_FROM_EDITOR_BUTTON = '.editor-actions .codicon-positron-save'; const COPY_PLOT_BUTTON = '.positron-plots-container .positron-action-bar .positron-button[aria-label="Copy plot to clipboard"]'; const ZOOM_PLOT_BUTTON = '.positron-plots-container .positron-action-bar .positron-button[aria-label="Fit"]'; const OUTER_WEBVIEW_FRAME = '.webview';