Skip to content

Commit

Permalink
Change always passing visible true tests to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Sep 29, 2014
1 parent efcac2b commit 12cdbef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions features/steps/shared/diff_note.rb
Expand Up @@ -73,13 +73,13 @@ module SharedDiffNote

step 'I should not see the diff comment preview button' do
within(diff_file_selector) do
page.should have_css(".js-note-preview-button", visible: false)
page.should_not have_css('.js-note-preview-button', visible: true)
end
end

step 'I should not see the diff comment text field' do
within(diff_file_selector) do
page.should have_css(".js-note-text", visible: false)
page.should_not have_css('.js-note-text', visible: true)
end
end

Expand Down Expand Up @@ -114,7 +114,7 @@ module SharedDiffNote
end

step 'I should see add a diff comment button' do
page.should have_css(".js-add-diff-note-button", visible: false)
page.should have_css('.js-add-diff-note-button', visible: true)
end

step 'I should see an empty diff comment form' do
Expand All @@ -131,7 +131,7 @@ module SharedDiffNote

step 'I should see the diff comment preview' do
within("#{diff_file_selector} form") do
page.should have_css(".js-note-preview", visible: false)
page.should have_css('.js-note-preview', visible: true)
end
end

Expand Down
6 changes: 3 additions & 3 deletions features/steps/shared/note.rb
Expand Up @@ -51,19 +51,19 @@ module SharedNote

step 'I should not see the comment preview' do
within(".js-main-target-form") do
page.should have_css(".js-note-preview", visible: false)
page.should_not have_css('.js-note-preview', visible: true)
end
end

step 'I should not see the comment preview button' do
within(".js-main-target-form") do
page.should have_css(".js-note-preview-button", visible: false)
page.should_not have_css('.js-note-preview-button', visible: true)
end
end

step 'I should not see the comment text field' do
within(".js-main-target-form") do
page.should have_css(".js-note-text", visible: false)
page.should_not have_css('.js-note-text', visible: true)
end
end

Expand Down

0 comments on commit 12cdbef

Please sign in to comment.