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:
@@ -94,12 +94,6 @@ describe "Nested imageable" do
|
|||||||
end
|
end
|
||||||
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
|
scenario "Should update loading bar style after invalid file upload" do
|
||||||
imageable_attach_new_file(file_fixture("logo_header.png"), false)
|
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"))
|
imageable_attach_new_file(file_fixture("clippy.jpg"))
|
||||||
|
|
||||||
expect(page).to have_css ".loading-bar.complete"
|
|
||||||
|
|
||||||
click_button submit_button_text
|
click_button submit_button_text
|
||||||
|
|
||||||
expect(page).to have_content notice_text
|
expect(page).to have_content notice_text
|
||||||
@@ -184,8 +176,6 @@ describe "Nested imageable" do
|
|||||||
|
|
||||||
imageable_attach_new_file(file_fixture("clippy.jpg"))
|
imageable_attach_new_file(file_fixture("clippy.jpg"))
|
||||||
|
|
||||||
expect(page).to have_css ".loading-bar.complete"
|
|
||||||
|
|
||||||
click_button submit_button_text
|
click_button submit_button_text
|
||||||
|
|
||||||
expect(page).to have_content notice_text
|
expect(page).to have_content notice_text
|
||||||
|
|||||||
Reference in New Issue
Block a user