tests(Playwright): Full implementation of Page Object Models (POMs) to Playwright tests (#5608)
This commit is contained in:
1 parent
7b12dcf048
commit
d917e74e68
58 files changed
+1167
-496
No files matched your search
@@ -7,6 +7,15 @@ export class MainToolbarPageObject {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
get crosshairs() {
|
||||
const button = this.page.getByTestId('Crosshairs');
|
||||
return {
|
||||
button,
|
||||
async click() {
|
||||
await button.click();
|
||||
},
|
||||
};
|
||||
}
|
||||
get layoutSelection() {
|
||||
const page = this.page;
|
||||
|
||||
@@ -96,6 +105,15 @@ export class MainToolbarPageObject {
|
||||
|
||||
return {
|
||||
...measurementTools,
|
||||
get selectedTool() {
|
||||
const button = page.getByTestId('MeasurementTools-split-button-primary');
|
||||
return {
|
||||
button,
|
||||
async click() {
|
||||
await button.click();
|
||||
},
|
||||
};
|
||||
},
|
||||
get arrowAnnotate() {
|
||||
const button = page.getByTestId('ArrowAnnotate');
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user