Fix incorrect assertion for nested imageable example

The example tests if a certain selector is hidden after adding
one image but the assertion expected said selector to be visible,
which made the scenario to fail at random
This commit is contained in:
Angel Perez
2018-03-26 08:30:14 -04:00
parent dfbf4b8489
commit 0fce8ca787

View File

@@ -32,13 +32,13 @@ shared_examples "nested imageable" do |imageable_factory_name, path, imageable_p
expect(page).to have_selector "#new_image_link", visible: true
end
scenario "Should hide new image link after add one image" do
scenario "Should hide new image link after adding one image" do
login_as user
visit send(path, arguments)
click_on "Add image"
expect(page).to have_selector "#new_image_link", visible: true
expect(page).to have_selector "#new_image_link", visible: false
end
scenario "Should update nested image file name after choosing any file", :js do