Skip to content

Commit

Permalink
AP-5592: refactor new step
Browse files Browse the repository at this point in the history
allow both upper and lower case emeregency or substantive types to be passed
this allows a more uniform appearance in the the feature test scenarios
  • Loading branch information
colinbruce committed Dec 18, 2024
1 parent 65e4de7 commit 002d3e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions features/providers/check_provider_answers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ Feature: Checking client details answers backwards and forwards
| Substantive scope limitations | Final hearing\nLimited to all steps up to and including final hearing and any action necessary to implement (but not enforce) the order. |
And the Delegated functions answer for the DA004 proceeding should match \d{1,2} \w+ \d{4}

And the emergency scope limitation Interim order inc. return date heading for DA004 should not be bold
And the substantive scope limitation Final hearing heading for DA004 should not be bold
And the Emergency scope limitation Interim order inc. return date heading for DA004 should not be bold
And the Substantive scope limitation Final hearing heading for DA004 should not be bold

When I click Check Your Answers summary card Change link for "DA004"
Then I should see 'Proceeding 1\nNon-molestation order\nWhat is your client's role in this proceeding?'
Expand Down Expand Up @@ -553,13 +553,13 @@ Feature: Checking client details answers backwards and forwards
| Client role | Applicant, claimant or petitioner |
| Emergency level of service | Full Representation |
| Substantive level of service | Full Representation |
And the Delegated functions answer for DA004 should match \d{1,2} \w+ \d{4}
And the Delegated functions answer for the DA004 proceeding should match \d{1,2} \w+ \d{4}

And the emergency scope limitation Hearing heading for DA004 should be bold
And the Emergency scope limitation Hearing heading for DA004 should be bold
And the Emergency scope limitations answer for the DA004 proceeding should match Limited to all steps up to and including the hearing on \d{1,2} \w+ \d{4}
And the Emergency scope limitations answer for the DA004 proceeding should not match Date\: \d{1,2} \w+ \d{4}
And the emergency scope limitation Warrant of arrest FLA heading for DA004 should be bold
And the Emergency scope limitation Warrant of arrest FLA heading for DA004 should be bold
And the Emergency scope limitations answer for the DA004 proceeding should match As to an order under Part IV Family Law Act 1996 limited to an application for the issue of a warrant of arrest.

And the substantive scope limitation Hearing/Adjournment heading for DA004 should not be bold
And the Substantive scope limitation Hearing/Adjournment heading for DA004 should not be bold
And the Substantive scope limitations answer for the DA004 proceeding should match Limited to all steps \(including any adjournment thereof\) up to and including the hearing on
2 changes: 1 addition & 1 deletion features/step_definitions/check_provider_answers_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
end
end

Then(/^the (emergency|substantive) scope limitation (.*) heading for (.*) should (be|not be) bold$/) do |type, text, proceeding_code, match|
Then(/^the ([eE]mergency|[sS]ubstantive) scope limitation (.*) heading for (.*) should (be|not be) bold$/) do |type, text, proceeding_code, match|
within("##{proceeding_code}-questions".downcase) do
within("#app-check-your-answers__#{proceeding_code}_#{type}_scope_limitations".downcase) do
if match == "be"
Expand Down

0 comments on commit 002d3e1

Please sign in to comment.