Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Williams committed Nov 2, 2023
1 parent f0c12b2 commit fd183ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/system/case_groups/case_groups_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@
visit case_groups_path
click_on "New Case Group"
fill_in "Name", with: "A family"
select casa_case.case_number, from: "Cases"
find(".ts-control > input").click
find("div.option", text: casa_case.case_number).click
find("#case_group_name").click
click_on "Submit"

visit case_groups_path
click_on "New Case Group"
fill_in "Name", with: "A Family "
select casa_case.case_number, from: "Cases"
find(".ts-control > input").click
find("div.option", text: casa_case.case_number).click
find("#case_group_name").click
click_on "Submit"

expect(page).to have_text("Name has already been taken")
Expand Down

0 comments on commit fd183ec

Please sign in to comment.