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
@@ -25,6 +25,8 @@ test('should auto hydrate RT STRUCT on the second load and keep viewport stable
|
||||
rightPanelPageObject,
|
||||
viewportPageObject,
|
||||
}) => {
|
||||
const activeViewport = await viewportPageObject.active;
|
||||
|
||||
// First load
|
||||
await leftPanelPageObject.loadSeriesByModality('RTSTRUCT');
|
||||
await page.waitForTimeout(5000);
|
||||
@@ -37,7 +39,7 @@ test('should auto hydrate RT STRUCT on the second load and keep viewport stable
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
viewportPageObject.active.pane,
|
||||
activeViewport.pane,
|
||||
screenShotPaths.rtHydrationDisableConfirmation.firstLoadPostHydration
|
||||
);
|
||||
|
||||
@@ -48,7 +50,7 @@ test('should auto hydrate RT STRUCT on the second load and keep viewport stable
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
viewportPageObject.active.pane,
|
||||
activeViewport.pane,
|
||||
screenShotPaths.rtHydrationDisableConfirmation.viewportAfterFirstDelete
|
||||
);
|
||||
|
||||
@@ -65,7 +67,7 @@ test('should auto hydrate RT STRUCT on the second load and keep viewport stable
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
viewportPageObject.active.pane,
|
||||
activeViewport.pane,
|
||||
screenShotPaths.rtHydrationDisableConfirmation.secondLoadPostHydration
|
||||
);
|
||||
|
||||
@@ -75,7 +77,7 @@ test('should auto hydrate RT STRUCT on the second load and keep viewport stable
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
viewportPageObject.active.pane,
|
||||
activeViewport.pane,
|
||||
screenShotPaths.rtHydrationDisableConfirmation.viewportAfterSecondDelete
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user