test(contour): contour color change coverage (#6042)

This commit is contained in:
diattamo authored and GitHub committed 2026-06-20 11:11:57 -04:00
1 parent 419366bd25
commit 5955151ba1
5 files changed
+242 -2

No files matched your search

+33
View File
@@ -60,6 +60,39 @@ export class DOMOverlayPageObject {
return new DicomTagBrowserPageObject(page);
},
get colorPicker() {
const locator = page.getByTestId('color-picker-dialog');
const hexInput = locator.getByLabel('hex');
const saveButton = locator.getByTestId('color-picker-save-btn');
const cancelButton = locator.getByTestId('color-picker-cancel-btn');
return {
locator,
hexInput,
saveButton,
cancelButton,
fillHex: async (hex: string) => {
await hexInput.fill(hex);
await hexInput.press('Enter');
},
save: async () => {
await saveButton.click();
},
cancel: async () => {
await cancelButton.click();
},
fillHexAndSave: async (hex: string) => {
await hexInput.fill(hex);
await hexInput.press('Enter');
await saveButton.click();
},
fillHexAndCancel: async (hex: string) => {
await hexInput.fill(hex);
await hexInput.press('Enter');
await cancelButton.click();
},
};
},
title: page.locator('[role="dialog"] h2'),
};
}