fix: Tests run against e2e config for both playwright and older tests (#4283)
Co-authored-by: IbrahimCSAE <ibrahim.mdev@gmail.com>
This commit is contained in:
1 parent
993308b32b
commit
31271aeef7
2 files changed
+7
-11
No files matched your search
@@ -6,15 +6,16 @@ import { Page } from '@playwright/test';
|
||||
* @param title - The study instance UID of the study to visit
|
||||
* @param mode - The mode to visit the study in
|
||||
* @param delay - The delay to wait after visiting the study
|
||||
* @param datasources - the data source to load the study from
|
||||
*/
|
||||
export async function visitStudy(
|
||||
page: Page,
|
||||
studyInstanceUID: string,
|
||||
mode: string,
|
||||
delay: number = 0
|
||||
delay: number = 0,
|
||||
datasources = 'ohif'
|
||||
) {
|
||||
await page.goto('/?resultsPerPage=100');
|
||||
await page.getByTestId('confirm-and-hide-button').click();
|
||||
await page.goto(`/?resultsPerPage=100&datasources=${datasources}`);
|
||||
await page.getByTestId(studyInstanceUID).click();
|
||||
await page.getByRole('button', { name: mode }).click();
|
||||
await page.waitForLoadState('domcontentloaded');
|
||||
|
||||
Reference in new issue
Block a user