From c54326dee0f9551e2e5090706ecedbb04d70d0af Mon Sep 17 00:00:00 2001 From: kdaud Date: Thu, 5 Oct 2023 20:01:08 +0300 Subject: [PATCH] OZ-365: Corrected element locator for medications link --- e2e/utils/functions/testBase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/utils/functions/testBase.ts b/e2e/utils/functions/testBase.ts index 3db57cec..7175ac0f 100644 --- a/e2e/utils/functions/testBase.ts +++ b/e2e/utils/functions/testBase.ts @@ -271,7 +271,7 @@ export class HomePage { } async makeDrugOrder() { - await this.page.getByRole('complementary').filter({ hasText: 'MedicationsNoteFormPatient lists' }).getByRole('button').first().click(); + await this.page.getByRole('complementary').filter({ hasText: 'Medications' }).getByRole('button').first().click(); await delay(3000); await this.page.getByRole('button', { name: 'Add', exact: true }).nth(0).click(); await delay(2000);