refactor(tests): update viewport page object usage to async and update all effected tests (#5927)

This commit is contained in:
Ghadeer Albattarni authored and GitHub committed 2026-03-27 16:37:42 -04:00
1 parent 485f0d75d9
commit 2a728b244c
46 files changed
+240 -181

No files matched your search

+3 -2
View File
@@ -17,7 +17,8 @@ test('should display the arrow tool and allow free-form text to be entered', asy
await mainToolbarPageObject.measurementTools.arrowAnnotate.click();
await viewportPageObject.active.clickAt([
const activeViewport = await viewportPageObject.active;
await activeViewport.clickAt([
{ x: 164, y: 234 },
{ x: 344, y: 232 },
]);
@@ -38,7 +39,7 @@ test('should display the arrow tool and allow free-form text to be entered', asy
// Now edit the arrow text and the label should not change.
await viewportPageObject.active.doubleClickAt({ x: 164, y: 234 });
await activeViewport.doubleClickAt({ x: 164, y: 234 });
await DOMOverlayPageObject.dialog.input.fillAndSave('Neil Peart was the drummer for Rush');