diff options
author | Sean McGivern <sean@gitlab.com> | 2016-07-12 08:57:18 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-07-12 10:33:21 +0100 |
commit | cdc031b65b52f280defe46d278ce60432be895e1 (patch) | |
tree | 0c6971d4ff9445fa00cbcfe8452746cb358fea6d /spec/features | |
parent | 3999b80e4ebbfad46b093b94ea5ca31c0c3705be (diff) | |
download | gitlab-ce-cdc031b65b52f280defe46d278ce60432be895e1.tar.gz |
Fix expandable diffs
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/expand_collapse_diffs_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/expand_collapse_diffs_spec.rb b/spec/features/expand_collapse_diffs_spec.rb index 7cff196c8d9..78bc888f2a6 100644 --- a/spec/features/expand_collapse_diffs_spec.rb +++ b/spec/features/expand_collapse_diffs_spec.rb @@ -106,7 +106,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do let(:comment_text) { 'A comment' } before do - large_diff.find('.line_holder', match: :prefer_exact).hover + large_diff.find('.diff-line-num', match: :prefer_exact).hover large_diff.find('.add-diff-note').click large_diff.find('.note-textarea').send_keys comment_text large_diff.find_button('Comment').click @@ -161,7 +161,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do end it 'does not make a new HTTP request' do - expect(evaluate_script('ajaxUris')).to be_empty + expect(evaluate_script('ajaxUris')).not_to include(a_string_matching('small_diff.md')) end end end @@ -199,7 +199,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do end it 'does not make a new HTTP request' do - expect(evaluate_script('ajaxUris')).to be_empty + expect(evaluate_script('ajaxUris')).not_to include(a_string_matching('small_diff.md')) end end end |