Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/client/testing/page-objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import SiteSelectionPage from './site-selection';
import SitePage from './site';
import NotAuthorizedPage from './unauthorized';
import UserManagementPage from './user-management';
import ServiceNotFoundPage from './service-not-found';

import EditAccessNeedsPage from './change-site-details-pages/edit-access-need';
import EditInformationForCitizensPage from './change-site-details-pages/edit-citizen-information';
Expand Down Expand Up @@ -62,4 +63,5 @@ export {
EditAvailabilityConfirmedPage,
MonthViewAvailabilityPage,
WeekViewAvailabilityPage,
ServiceNotFoundPage,
};
13 changes: 13 additions & 0 deletions src/client/testing/page-objects/service-not-found.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { type Locator, type Page } from '@playwright/test';
import RootPage from './root';

export default class ServiceNotFoundPage extends RootPage {
readonly title: Locator;

constructor(page: Page) {
super(page);
this.title = page.getByRole('heading', {
name: 'Sorry, there is a problem with this service',
});
}
}
Loading