-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create custom method to handle selection of new GOVUK radio/checkboxes
- input is no longer clickable through Capybara with new style radio/checkboxes as they have opacity: 0 - these methods use trigger('click') to hit the labels associated with the inputs - corrected other SitePrism objects to inherit from 'Page' object to be consistent with others
- Loading branch information
1 parent
99901b4
commit 3f27a1b
Showing
8 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Pages | ||
class BookingConfirmation < SitePrism::Page | ||
class BookingConfirmation < Page | ||
set_url '/locations/{id}/booking-request/completed' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Pages | ||
class BookingIneligible < SitePrism::Page | ||
class BookingIneligible < Page | ||
set_url '/locations/{id}/booking-request/ineligible' | ||
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
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
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 |
---|---|---|
|
@@ -71,16 +71,15 @@ | |
@step_two.email.set '[email protected]' | ||
@step_two.telephone_number.set '07715 930 459' | ||
@step_two.memorable_word.set 'birdperson' | ||
@step_two.accessibility_requirements.set false | ||
@step_two.opt_in.set true | ||
@step_two.check_hidden_checkbox(@step_two.accessibility_requirements, true) | ||
@step_two.check_hidden_checkbox(@step_two.opt_in, true) | ||
end | ||
|
||
When(/^I pass the basic eligibility requirements$/) do | ||
@step_two.date_of_birth_day.set '01' | ||
@step_two.date_of_birth_month.set '01' | ||
@step_two.date_of_birth_year.set '1950' | ||
|
||
@step_two.dc_pot_yes.set true | ||
@step_two.check_hidden_radio(@step_two.dc_pot_yes) | ||
end | ||
|
||
When(/^I submit my completed Booking Request$/) do | ||
|