@ugandaemr/esm-patient-appointments-app
Version:
Patient appointments microfrontend for the OpenMRS SPA
12 lines (8 loc) • 310 B
text/typescript
import { type Page } from "@playwright/test";
export class ChartPage {
constructor(readonly page: Page) {}
readonly formsTable = () => this.page.getByRole("table", { name: /forms/i });
async goTo(patientUuid: string) {
await this.page.goto("/openmrs/spa/patient/" + patientUuid + "/chart");
}
}