* fix(app): move study validation to ModeRoute component - Moved validation from defaultRouteInit.ts to Mode.tsx - Added dedicated useEffect hook for study validation * test: add Playwright test for study not found error page across multiple modes
22 lines
490 B
TypeScript
22 lines
490 B
TypeScript
import { Locator, Page } from '@playwright/test';
|
|
|
|
export class NotFoundStudyPageObject {
|
|
readonly page: Page;
|
|
|
|
constructor(page: Page) {
|
|
this.page = page;
|
|
}
|
|
|
|
get errorMessage(): Locator {
|
|
return this.page.locator('[data-cy="study-not-found-message"]');
|
|
}
|
|
|
|
get returnMessage(): Locator {
|
|
return this.page.locator('[data-cy="return-to-study-list-message"]');
|
|
}
|
|
|
|
get studyListLink(): Locator {
|
|
return this.page.getByRole('link', { name: 'study list' });
|
|
}
|
|
}
|