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
@@ -23,7 +23,7 @@ test('should not allow contours to be edited in basic viewer mode', async ({
|
||||
// Wait for the segmentation to hydrate.
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
const svgPathLocatorPreEdit = viewportPageObject.getById('default').svg();
|
||||
const svgPathLocatorPreEdit = (await viewportPageObject.getById('default')).svg();
|
||||
|
||||
expect(
|
||||
await svgPathLocatorPreEdit.count(),
|
||||
@@ -39,7 +39,7 @@ test('should not allow contours to be edited in basic viewer mode', async ({
|
||||
end: { x: 0.1, y: -0.2 },
|
||||
});
|
||||
|
||||
const svgPathLocatorPostEdit = viewportPageObject.getById('default').svg();
|
||||
const svgPathLocatorPostEdit = (await viewportPageObject.getById('default')).svg();
|
||||
|
||||
expect(
|
||||
await svgPathLocatorPostEdit.getAttribute('d'),
|
||||
@@ -77,7 +77,7 @@ test('should not allow contours to be edited when panelSegmentation.disableEditi
|
||||
// Wait for the segmentation to hydrate.
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
const svgPathLocatorPreEdit = viewportPageObject.getById('default').svg();
|
||||
const svgPathLocatorPreEdit = (await viewportPageObject.getById('default')).svg();
|
||||
|
||||
expect(
|
||||
await svgPathLocatorPreEdit.count(),
|
||||
@@ -93,7 +93,7 @@ test('should not allow contours to be edited when panelSegmentation.disableEditi
|
||||
end: { x: 0.1, y: -0.2 },
|
||||
});
|
||||
|
||||
const svgPathLocatorPostEdit = viewportPageObject.getById('default').svg();
|
||||
const svgPathLocatorPostEdit = (await viewportPageObject.getById('default')).svg();
|
||||
|
||||
expect(
|
||||
await svgPathLocatorPostEdit.getAttribute('d'),
|
||||
@@ -131,7 +131,7 @@ test('should allow contours to be edited when panelSegmentation.disableEditing i
|
||||
// Wait for the segmentation to hydrate.
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
const svgPathLocatorPreEdit = viewportPageObject.getById('default').svg('path');
|
||||
const svgPathLocatorPreEdit = (await viewportPageObject.getById('default')).svg('path');
|
||||
|
||||
expect(
|
||||
await svgPathLocatorPreEdit.count(),
|
||||
@@ -147,7 +147,7 @@ test('should allow contours to be edited when panelSegmentation.disableEditing i
|
||||
end: { x: 0.1, y: -0.2 },
|
||||
});
|
||||
|
||||
const svgPathLocatorPostEdit = viewportPageObject.getById('default').svg('path');
|
||||
const svgPathLocatorPostEdit = (await viewportPageObject.getById('default')).svg('path');
|
||||
|
||||
expect(
|
||||
await svgPathLocatorPostEdit.getAttribute('d'),
|
||||
|
||||
Reference in new issue
Block a user