refactor(tests): update viewport page object usage to async and update all effected tests (#5927)
This commit is contained in:
1 parent
485f0d75d9
commit
2a728b244c
46 files changed
+240
-181
No files matched your search
@@ -33,7 +33,7 @@ export async function addLengthMeasurement(
|
||||
const [x2, y2] = secondClick;
|
||||
|
||||
const lengthButton = mainToolbarPageObject.measurementTools.selectedTool.button;
|
||||
const viewport = viewportPageObject.active;
|
||||
const viewport = await viewportPageObject.active;
|
||||
|
||||
// Assert that the primary measurement button is 'Length' tool
|
||||
await expect(lengthButton).toHaveAttribute('data-tool', 'Length');
|
||||
|
||||
Reference in new issue
Block a user