diff --git a/spec/features/case_log_spec.rb b/spec/features/case_log_spec.rb index 160bb883b..555799966 100644 --- a/spec/features/case_log_spec.rb +++ b/spec/features/case_log_spec.rb @@ -225,6 +225,7 @@ RSpec.describe "Test Features" do choose("case-log-incfreq-weekly-field", allow_label_click: true) click_button("Save and continue") click_link(text: "Back") + expect(page).to have_link(text: "Back") click_link(text: "Back") expect(page).to have_current_path("/case_logs") end @@ -431,7 +432,7 @@ RSpec.describe "Test Features" do fill_in("case-log-earnings-field", with: income_under_soft_limit) click_button("Save and continue") click_link(text: "Back") - expect(page).not_to have_content("Are you sure this is correct?") + expect(page).to have_no_content("Are you sure this is correct?") end it "does not clear the confirmation question if the page is returned to using the back button and the amount is still over the soft limit", js: true do