chore: add test coverage (#4960)

This commit is contained in:
Alireza authored and GitHub committed 2025-04-16 15:56:52 -04:00
1 parent a41ed3bade
commit 91117f40f8
51 files changed
+1302 -346

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import {
visitStudy,
checkForScreenshot,
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import {
visitStudy,
checkForScreenshot,
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import {
visitStudy,
checkForScreenshot,
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import {
visitStudy,
checkForScreenshot,
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+2 -2
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
@@ -7,7 +7,7 @@ test.beforeEach(async ({ page }) => {
await visitStudy(page, studyInstanceUID, mode, 2000);
});
test('should display the circle tool', async ({ page }) => {
test('should display the circle tool @debug', async ({ page }) => {
await page.getByTestId('MeasurementTools-split-button-secondary').click();
await page.getByTestId('CircleROI').click();
const locator = page.getByTestId('viewport-pane').locator('canvas');
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Page, test } from '@playwright/test';
import { Page, test } from 'playwright-test-coverage';
import {
visitStudy,
checkForScreenshot,
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.js';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElement } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { test, expect } from 'playwright-test-coverage';
import { visitStudy, scrollVolumeViewport } from './utils';
test.skip('PT should show slice closest to CT', async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { test, expect } from 'playwright-test-coverage';
import {
visitStudy,
simulateClicksOnElement,
+1 -1
View File
@@ -1,4 +1,4 @@
import { expect, test } from '@playwright/test';
import { expect, test } from 'playwright-test-coverage';
import { visitStudy, simulateClicksOnElement, getSUV, clearAllAnnotations } from './utils/index';
test.skip('should update SUV values correctly.', async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.js';
test.skip('should render TMTV correctly.', async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { test } from '@playwright/test';
import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { expect } from '@playwright/test';
import { expect } from 'playwright-test-coverage';
import { Locator, Page } from 'playwright';
/**
+1 -1
View File
@@ -1,4 +1,4 @@
import { Page } from "@playwright/test";
import { Page } from 'playwright-test-coverage';
interface WindowWithMousePosition extends Window {
mouseX: number;
+1 -1
View File
@@ -1,4 +1,4 @@
import { Page } from '@playwright/test';
import { Page } from 'playwright-test-coverage';
/**
* Visit the study