Skip to content

Commit f2b64a0

Browse files
MAVIS-1729
1 parent 55378dd commit f2b64a0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pages/pg_programmes.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class pg_programmes:
1111

1212
LNK_HPV = "HPV"
1313
LNK_IMPORTS = "Imports"
14+
LNK_VACCINATIONS = "Vaccinations"
1415
LNK_COHORTS = "Cohorts"
1516
LNK_IMPORT_CHILD_RECORDS = "Import child records"
1617
LNK_IMPORT_RECORDS = "Import records"
@@ -32,10 +33,7 @@ def click_imports(self):
3233
self.po.perform_action(locator=self.LNK_IMPORTS, action=actions.CLICK_LINK)
3334

3435
def click_vaccinations(self):
35-
self.po.perform_action(
36-
locator="get_by_label('Secondary menu').get_by_role('link', name='Vaccinations').click()",
37-
action=actions.CHAIN_LOCATOR_ACTION,
38-
)
36+
self.po.perform_action(locator=self.LNK_VACCINATIONS, action=actions.CLICK_LINK, exact=True)
3937

4038
def click_cohorts(self):
4139
self.po.perform_action(locator=self.LNK_COHORTS, action=actions.CLICK_LINK)

0 commit comments

Comments
 (0)