Skip to content

Commit

Permalink
Chore: [AEA-4515] - Set up footer (#184)
Browse files Browse the repository at this point in the history
## Summary

- Routine Change
  • Loading branch information
seansteberisal authored Nov 21, 2024
1 parent cf6713f commit 641fbfc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions features/cpts_ui/home_page.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
@cpts_ui @home @regression @blocker @smoke @ui
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4460
Feature: I can visit the Clinical Prescription Tracker Service Website

Scenario: user can navigate to the Clinical Prescription Tracker Service Website homepage
When I go to the homepage
Then I am on the homepage

@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4515
Scenario: user can see the footer
When I go to the homepage
Then I am on the homepage
And I can see the footer
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ def goto_page(context):
def verify_on_page(context):
home_page = HomePage(context.page)
home_page.verify_header_link()


@then("I can see the footer")
def i_can_see_the_footer(context):
home_page = HomePage(context.page)
home_page.verify_footer_is_visible()
4 changes: 4 additions & 0 deletions pages/home_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ class HomePage:

def __init__(self, page: Page):
self.page = page
self.footer = "[id='eps_footer']"

def verify_header_link(self):
expect(
self.page.get_by_role("link", name="Clinical prescription")
).to_be_visible()

def verify_footer_is_visible(self):
self.page.is_visible(self.footer)

0 comments on commit 641fbfc

Please sign in to comment.