summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-02-09 09:00:54 -0600
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-02-09 09:00:54 -0600
commit83e2bfbae04385e09dae924629ac6a9e22b3ad4c (patch)
treece7ec747078bc792c230a13ab70300970f0545c7 /spec
parent6cb7dc7a8d09aab6635ff5fc3977aeb789035c39 (diff)
downloadgitlab-ce-83e2bfbae04385e09dae924629ac6a9e22b3ad4c.tar.gz
Fix expand_collapse_diffs specsrevert-0ef587b6
Diffstat (limited to 'spec')
-rw-r--r--spec/features/expand_collapse_diffs_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/expand_collapse_diffs_spec.rb b/spec/features/expand_collapse_diffs_spec.rb
index 630467e647f..8c64b050e19 100644
--- a/spec/features/expand_collapse_diffs_spec.rb
+++ b/spec/features/expand_collapse_diffs_spec.rb
@@ -117,7 +117,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
# Wait for diffs
find('.js-file-title', match: :first)
# Click `large_diff.md` title
- all('.js-file-title')[1].click
+ all('.diff-toggle-caret')[1].click
wait_for_ajax
end
@@ -161,7 +161,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
# Wait for diffs
find('.js-file-title', match: :first)
# Click `large_diff.md` title
- all('.js-file-title')[1].click
+ all('.diff-toggle-caret')[1].click
wait_for_ajax
end
@@ -183,7 +183,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
# Wait for diffs
find('.js-file-title', match: :first)
# Click `small_diff.md` title
- all('.js-file-title')[3].click
+ all('.diff-toggle-caret')[3].click
end
it 'hides the diff content' do
@@ -196,7 +196,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
# Wait for diffs
find('.js-file-title', match: :first)
# Click `small_diff.md` title
- all('.js-file-title')[3].click
+ all('.diff-toggle-caret')[3].click
end
it 'shows the diff content' do
@@ -292,7 +292,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
# Wait for diffs
find('.js-file-title', match: :first)
# Click `small_diff.md` title
- all('.js-file-title')[3].click
+ all('.diff-toggle-caret')[3].click
end
it 'hides the diff content' do
@@ -305,7 +305,7 @@ feature 'Expand and collapse diffs', js: true, feature: true do
# Wait for diffs
find('.js-file-title', match: :first)
# Click `small_diff.md` title
- all('.js-file-title')[3].click
+ all('.diff-toggle-caret')[3].click
end
it 'shows the diff content' do