@ugandaemr/esm-patient-appointments-app
Version:
Patient appointments microfrontend for the OpenMRS SPA
15 lines (11 loc) • 424 B
text/typescript
import { type Page } from "@playwright/test";
export class ProgramsPage {
constructor(readonly page: Page) {}
readonly programsTable = () =>
this.page.getByRole("table", { name: /program enrollments/i });
readonly editProgramButton = () =>
this.page.getByRole("button", { name: /edit program/i });
async goTo(patientUuid: string) {
await this.page.goto(`patient/${patientUuid}/chart/Programs`);
}
}