Skip to content

Commit

Permalink
Use separate screenshot for index without image
Browse files Browse the repository at this point in the history
  • Loading branch information
donv committed Dec 30, 2024
1 parent d0f8e76 commit 3b5691f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/browser_screenshot_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ def test_screenshot_selected_element
test "compare crops only when other part is not working" do
visit "/index-without-img.html"

assert_matches_screenshot("index-cropped", crop: "form", color_distance_limit: 40)
assert_matches_screenshot("index-without-img-cropped", crop: "form", color_distance_limit: 40)

assert_no_screenshot_errors
end

test "crop accepts css selector" do
visit "/index-without-img.html"

assert_matches_screenshot("index-cropped", crop: "form")
assert_matches_screenshot("index-without-img-cropped", crop: "form")

assert_no_screenshot_errors
end
Expand Down Expand Up @@ -152,7 +152,7 @@ def test_screenshot_selected_element

fill_in "First Field:", with: "Test Input With Hide Caret"

assert_matches_screenshot("index-cropped", skip_area: "input", crop: "form")
assert_matches_screenshot("index-without-img-cropped", skip_area: "input", crop: "form")

assert_no_screenshot_errors
end
Expand Down

0 comments on commit 3b5691f

Please sign in to comment.