fix(microscopy): rename measurement in microscopy mode (#5866)

This commit is contained in:
Ghadeer Albattarni authored and GitHub committed 2026-03-04 15:28:41 -05:00
1 parent df22109013
commit 2358a73c3c
5 files changed
+86 -8

No files matched your search

+15 -1
View File
@@ -194,7 +194,6 @@ export class MainToolbarPageObject {
},
};
},
get freehandROI() {
const button = page.getByTestId('PlanarFreehandROI');
return {
@@ -205,6 +204,21 @@ export class MainToolbarPageObject {
},
};
},
/* microscopy specific tools */
// `.last()` targets the menu item inside the dropdown, not the active-tool
// indicator inside the split-button primary
// because both share the same data-cy value (e.g. "line")
// Other microscopy tools might follow the same pattern
get line() {
const button = page.getByTestId('line').last();
return {
button,
async click() {
await measurementTools.click();
await button.click();
},
};
},
};
}