diff --git a/e2e/tests/functional/plugins/notebook/restrictedNotebook.e2e.spec.js b/e2e/tests/functional/plugins/notebook/restrictedNotebook.e2e.spec.js index 584a1c0401..5f14593937 100644 --- a/e2e/tests/functional/plugins/notebook/restrictedNotebook.e2e.spec.js +++ b/e2e/tests/functional/plugins/notebook/restrictedNotebook.e2e.spec.js @@ -134,7 +134,7 @@ test.describe('Restricted Notebook with at least one entry and with the page loc // Click the context menu button for the new page await page.getByTitle('Open context menu').click(); // Delete the page - await page.getByRole('listitem', { name: 'Delete Page' }).click(); + await page.getByRole('menuitem', { name: 'Delete Page' }).click(); // Click OK button await page.getByRole('button', { name: 'Ok' }).click(); diff --git a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-darwin.png b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-darwin.png index 95327c0052..e3b4a667d8 100644 Binary files a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-darwin.png and b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-darwin.png differ diff --git a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-linux.png b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-linux.png index dde9cbf044..df17b92e12 100644 Binary files a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-linux.png and b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-panned-chrome-linux.png differ diff --git a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-darwin.png b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-darwin.png index 5e85fc2448..b3c9a4bc04 100644 Binary files a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-darwin.png and b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-darwin.png differ diff --git a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-linux.png b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-linux.png index e97b591291..e5a7085daf 100644 Binary files a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-linux.png and b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js-snapshots/autoscale-canvas-prepan-chrome-linux.png differ diff --git a/src/plugins/notebook/components/Notebook.vue b/src/plugins/notebook/components/Notebook.vue index 37a038ebf5..efe5e72bea 100644 --- a/src/plugins/notebook/components/Notebook.vue +++ b/src/plugins/notebook/components/Notebook.vue @@ -476,7 +476,6 @@ export default { { label: 'Lock Page', callback: () => { - let sections = this.getSections(); this.selectedPage.isLocked = true; // cant be default if it's locked @@ -488,7 +487,7 @@ export default { this.selectedSection.isLocked = true; } - mutateObject(this.openmct, this.domainObject, 'configuration.sections', sections); + mutateObject(this.openmct, this.domainObject, 'configuration.sections', this.sections); if (!this.domainObject.locked) { mutateObject(this.openmct, this.domainObject, 'locked', true); @@ -708,9 +707,6 @@ export default { getSection(id) { return this.sections.find((s) => s.id === id); }, - getSections() { - return this.domainObject.configuration.sections || []; - }, getSearchResults() { if (!this.search.length) { return [];