From 0fce8ca787cd96294d7313078ed5378edc3f0340 Mon Sep 17 00:00:00 2001 From: Angel Perez Date: Mon, 26 Mar 2018 08:30:14 -0400 Subject: [PATCH] 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 --- spec/shared/features/nested_imageable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/shared/features/nested_imageable.rb b/spec/shared/features/nested_imageable.rb index 7c5ed50c6..42b1eaf64 100644 --- a/spec/shared/features/nested_imageable.rb +++ b/spec/shared/features/nested_imageable.rb @@ -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