Skip to content

Commit

Permalink
add secondary check for continue button (#4261)
Browse files Browse the repository at this point in the history
* add secondary check for continue button

* rubocop fix

* add conditionals for step reuse in other tests

* switch click continue steps

* edit continue steps in cucumber

* fix step name
  • Loading branch information
RyanEddyIC authored and kristinmerbach committed Sep 4, 2024
1 parent a9895fd commit 6fe1ee8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Individual market with duplicate enrollments
And user registers as an individual
And Individual clicks on the Continue button of the Account Setup page
Then Individual sees form to enter personal information

Scenario: Individual adds dependent and shops for a plan. Dependent creates account, shops for a plan and sees duplicate enrollment warning
When the individual clicks continue on the personal information page
And Individual agrees to the privacy agreeement
Expand Down Expand Up @@ -41,8 +41,8 @@ Feature: Individual market with duplicate enrollments
And Individual answers the questions of the Identity Verification page and clicks on submit
Then Individual is on the Help Paying for Coverage page
When Individual does not apply for assistance and clicks continue
And the Individual clicks CONTINUE
And Individual clicks on the continue button
And Individual continues again
And Individual continues again
And Individual selects a plan on plan shopping page
Then Individual should see Duplicate Enrollment warning in the Confirmation page

Expand Down Expand Up @@ -79,4 +79,4 @@ Feature: Individual market with duplicate enrollments
And the user clicks on CONTINUE button
And Individual clicks on continue button on Choose Coverage page
And Individual selects a plan on plan shopping page
Then Individual should see Duplicate Enrollment warning in the Confirmation page
Then Individual should see Duplicate Enrollment warning in the Confirmation page
6 changes: 6 additions & 0 deletions features/step_definitions/individual_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,11 @@ class VlpDocument
wait_for_ajax(3, 2)
expect(page).to have_content "Choose Plan"
sleep 5
continue_btn = find_all(EmployeePersonalInformation.continue_btn)
if continue_btn.any? && !continue_btn.first&.disabled?
find(EmployeePersonalInformation.continue_btn).click
wait_for_ajax(3, 2)
end
plan_rows = find_all('div.plan-row', wait: 5)
if plan_rows.any?
plan_rows[0].find('.plan-select').click
Expand Down Expand Up @@ -973,6 +978,7 @@ class VlpDocument
end

Then(/^\w+ continues again$/) do
wait_for_ajax
find(IvlChooseCoverage.continue_btn).click
end

Expand Down

0 comments on commit 6fe1ee8

Please sign in to comment.