fix(colors): Replaces legacy colors with ui-next colors (#5351)
* Update playwright screenshots and fix broken tests. --------- Co-authored-by: Joe Boccanfuso <joe.boccanfuso@radicalimaging.com>
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { checkForScreenshot, screenShotPaths, test, visitStudy } from './utils';
|
||||
import { expect, test, visitStudy } from './utils';
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.7310.5101.860473186348887719777907797922';
|
||||
@@ -20,17 +20,18 @@ test('should properly reload SR series after hydration', async ({
|
||||
await DOMOverlayPageObject.viewport.segmentationHydration.yes.click();
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await checkForScreenshot(page, page, screenShotPaths.srHydrationThenReload.srAfterHydration);
|
||||
const measurementCountAfterFirstLoad =
|
||||
await rightPanelPageObject.measurementsPanel.panel.getMeasurementCount();
|
||||
expect(measurementCountAfterFirstLoad).toBeGreaterThan(0);
|
||||
|
||||
const measurementCount = await rightPanelPageObject.measurementsPanel.panel.getMeasurementCount();
|
||||
|
||||
if (measurementCount > 1) {
|
||||
await rightPanelPageObject.measurementsPanel.panel.nthMeasurement(1).click();
|
||||
await page.waitForTimeout(1000);
|
||||
}
|
||||
await rightPanelPageObject.measurementsPanel.panel.nthMeasurement(1).click();
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
await leftPanelPageObject.loadSeriesByModality('SR');
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await checkForScreenshot(page, page, screenShotPaths.srHydrationThenReload.srAfterReload);
|
||||
const measurementCountAfterSecondLoad =
|
||||
await rightPanelPageObject.measurementsPanel.panel.getMeasurementCount();
|
||||
|
||||
expect(measurementCountAfterSecondLoad).toBe(measurementCountAfterFirstLoad);
|
||||
});
|
||||
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 999 B After Width: | Height: | Size: 997 B |
|
Before Width: | Height: | Size: 271 KiB After Width: | Height: | Size: 281 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 271 KiB After Width: | Height: | Size: 281 KiB |
|
Before Width: | Height: | Size: 415 KiB |
|
Before Width: | Height: | Size: 419 KiB |
@@ -124,10 +124,6 @@ const screenShotPaths = {
|
||||
srPreHydration: 'srPreHydration.png',
|
||||
srJumpToMeasurement: 'srJumpToMeasurement.png',
|
||||
},
|
||||
srHydrationThenReload: {
|
||||
srAfterHydration: 'srAfterHydration.png',
|
||||
srAfterReload: 'srAfterReload.png',
|
||||
},
|
||||
segHydration: {
|
||||
segPostHydration: 'segPostHydration.png',
|
||||
segPreHydration: 'segPreHydration.png',
|
||||
|
||||