-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1756 from DFE-Digital/2320-refactor-page-objects-…
…to-add-a-namespace-prefix 2320 refactor page objects to add a namespace prefix
- Loading branch information
Showing
25 changed files
with
820 additions
and
699 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,11 @@ | |
given_the_service_is_open | ||
given_staff_exist | ||
|
||
when_i_visit_the(:applications_page) | ||
then_i_see_the(:login_page) | ||
when_i_visit_the(:assessor_applications_page) | ||
then_i_see_the(:assessor_login_page) | ||
|
||
when_i_login | ||
then_i_see_the(:applications_page) | ||
then_i_see_the(:assessor_applications_page) | ||
|
||
when_i_click_sign_out | ||
then_i_see_the(:staff_signed_out_page) | ||
|
@@ -24,10 +24,10 @@ def given_staff_exist | |
end | ||
|
||
def when_i_login | ||
login_page.submit(email: "[email protected]", password: "password") | ||
assessor_login_page.submit(email: "[email protected]", password: "password") | ||
end | ||
|
||
def when_i_click_sign_out | ||
applications_page.header.sign_out_link.click | ||
assessor_applications_page.header.sign_out_link.click | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.