Remove redundant ".loading-bar.complete"

In the imageable_attach_new_file method used in these tests the:
> expect(page).to have_css ".loading-bar.complete"
is already being checked, so there is no need to verify it twice.
This commit is contained in:
taitus
2024-11-18 13:13:31 +01:00
parent 3877479b69
commit 71e758f71c

View File

@@ -94,12 +94,6 @@ describe "Nested imageable" do
end
end
scenario "Should update loading bar style after valid file upload" do
imageable_attach_new_file(file_fixture("clippy.jpg"))
expect(page).to have_css ".loading-bar.complete"
end
scenario "Should update loading bar style after invalid file upload" do
imageable_attach_new_file(file_fixture("logo_header.png"), false)
@@ -172,8 +166,6 @@ describe "Nested imageable" do
imageable_attach_new_file(file_fixture("clippy.jpg"))
expect(page).to have_css ".loading-bar.complete"
click_button submit_button_text
expect(page).to have_content notice_text
@@ -184,8 +176,6 @@ describe "Nested imageable" do
imageable_attach_new_file(file_fixture("clippy.jpg"))
expect(page).to have_css ".loading-bar.complete"
click_button submit_button_text
expect(page).to have_content notice_text