@ugandaemr/esm-patient-appointments-app
Version:
Patient appointments microfrontend for the OpenMRS SPA
15 lines (11 loc) • 352 B
text/typescript
import { type Page } from "@playwright/test";
export class MedicationsPage {
constructor(readonly page: Page) {}
readonly medicationsTable = () =>
this.page.getByRole("table", { name: /medications/i });
async goTo(patientUuid: string) {
await this.page.goto(
`/openmrs/spa/patient/${patientUuid}/chart/Medications`,
);
}
}