Merge branch 'e2e-test-fixes' of https://github.com/nasa/openmct into e2e-test-fixes

This commit is contained in:
Shefali 2023-07-21 12:30:15 -07:00
commit c1d1b03b23
6 changed files with 2 additions and 6 deletions

View File

@ -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();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -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 [];