Remove redundant "loading-bar.errors"

In the imageable_attach_new_file method used in this tests the:
> expect(page).to have_css ".loading-bar.errors"
is already being checked.

Therefore, to leave only the line:
> imageable_attach_new_file(file_fixture("logo_header.png"), false)
in the test, since there is another test that verifies it,
I think we can remove the test altogether.
This commit is contained in:
taitus
2024-11-19 15:15:57 +01:00
parent c80641e5f2
commit 84bec1241f

View File

@@ -81,12 +81,6 @@ describe "Nested imageable" do
end end
end end
scenario "Should update loading bar style after invalid file upload" do
imageable_attach_new_file(file_fixture("logo_header.png"), false)
expect(page).to have_css ".loading-bar.errors"
end
scenario "Should update image cached_attachment field after valid file upload" do scenario "Should update image cached_attachment field after valid file upload" do
click_link "Add image" click_link "Add image"