test(contour): Add the ContourSegmentToggleLock.spec.ts test file to test contour locking (#6072)

This commit is contained in:
diattamo authored and GitHub committed 2026-06-23 01:52:35 -04:00
1 parent 1f6670c602
commit b24f039735
10 files changed
+253 -55

No files matched your search

+10 -5
View File
@@ -37,6 +37,7 @@ export class RightPanelPageObject {
private getActionsMenu(row: Locator) {
const actionsButton = row.getByTestId('actionsMenuTrigger');
const lockToggle = this.page.getByTestId('LockToggle');
return {
button: actionsButton,
@@ -47,13 +48,14 @@ export class RightPanelPageObject {
await actionsButton.click();
await this.page.getByTestId('Delete').click();
},
// Opens the actions menu and returns the lock/unlock menu item locator
lockToggleMenuItem: async () => {
await actionsButton.click();
return lockToggle;
},
toggleLock: async () => {
await actionsButton.click();
await this.page.getByTestId('LockToggle').click();
},
unlock: async () => {
await actionsButton.click();
await this.page.getByTestId('Unlock').click();
await lockToggle.click();
},
rename: async (text: string) => {
await actionsButton.click();
@@ -106,6 +108,9 @@ export class RightPanelPageObject {
get title() {
return row.getByTestId('data-row-title');
},
get lockIcon() {
return row.locator('g#Lock');
},
get rowDataColorHex() {
return row.getByTestId('data-row-colorhex');
},