fix(microscopy): rename measurement in microscopy mode (#5866)
This commit is contained in:
1 parent
df22109013
commit
2358a73c3c
5 files changed
+86
-8
No files matched your search
@@ -46,6 +46,9 @@ export class RightPanelPageObject {
|
||||
get actions() {
|
||||
return getActionsMenu(row);
|
||||
},
|
||||
get title() {
|
||||
return row.getByTestId('data-row-title');
|
||||
},
|
||||
click: async () => {
|
||||
await row.click();
|
||||
},
|
||||
@@ -323,4 +326,23 @@ export class RightPanelPageObject {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
get microscopyPanel() {
|
||||
const page = this.page;
|
||||
const getMeasurementByIdx = (index: number) => this.getPanelRowByIdx(index);
|
||||
const getMeasurementByText = (text: string) => this.getPanelRowByText(text);
|
||||
|
||||
return {
|
||||
locator: page.getByTestId('measurements-panel'),
|
||||
getMeasurementCount: async () => {
|
||||
return await page.getByTestId('data-row').count();
|
||||
},
|
||||
nthMeasurement(index: number) {
|
||||
return getMeasurementByIdx(index);
|
||||
},
|
||||
measurementByText(text: string) {
|
||||
return getMeasurementByText(text);
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user