Skip to content

Commit

Permalink
test: Check for field before filling it.
Browse files Browse the repository at this point in the history
Sometimes the modal that contains the field
is not present yet. Let's use capybara's waiting
capabilities before filling the field.
  • Loading branch information
tvdeyen committed Dec 17, 2024
1 parent b49593b commit daa306b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/spec/features/properties_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
it "shows validation errors" do
visit "/admin/properties"
find_row("Color").click

expect(page).to have_field("Name", with: "Color")
fill_in "Name", with: ""
click_on "Update Property"

Expand Down

0 comments on commit daa306b

Please sign in to comment.