Merge branch 'e2e-test-fixes' of https://github.com/nasa/openmct into e2e-test-fixes
@ -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();
|
||||
|
||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 20 KiB |
@ -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 [];
|
||||
|