diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-04 15:36:25 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-04 15:36:25 +0200 |
commit | aa75e76a0a06a4c23116145fa9ab86d645ed9a16 (patch) | |
tree | 7f24c840c49d0aa6177ac1e14b051ad1add5e0d5 /features | |
parent | bc6706fd6aceb62eba98280ba2a1a8420a413a46 (diff) | |
download | gitlab-ce-aa75e76a0a06a4c23116145fa9ab86d645ed9a16.tar.gz |
Fix this crazy random failing test
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/project/commits/commits.rb | 4 | ||||
-rw-r--r-- | features/steps/shared/diff_note.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/features/steps/project/commits/commits.rb b/features/steps/project/commits/commits.rb index a8532cc18d8..e7dd20191b7 100644 --- a/features/steps/project/commits/commits.rb +++ b/features/steps/project/commits/commits.rb @@ -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 diff --git a/features/steps/shared/diff_note.rb b/features/steps/shared/diff_note.rb index ef567fe7e1a..72621911a37 100644 --- a/features/steps/shared/diff_note.rb +++ b/features/steps/shared/diff_note.rb @@ -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 |