Fix this crazy random failing test

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-09-04 15:36:25 +02:00
parent bc6706fd6a
commit aa75e76a0a
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A
2 changed files with 5 additions and 1 deletions

View file

@ -98,4 +98,8 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
step 'I see inline diff button' do
expect(page).to have_content "Inline"
end
step 'I click side-by-side diff button' do
find('#parallel-diff-btn').click
end
end

View file

@ -198,7 +198,7 @@ module SharedDiffNote
end
step 'I click side-by-side diff button' do
find('#parallel-diff-btn').click
find('#parallel-diff-btn').trigger('click')
end
step 'I see side-by-side diff button' do