summaryrefslogtreecommitdiff
path: root/spec/features/projects/diffs/diff_show_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/diffs/diff_show_spec.rb')
-rw-r--r--spec/features/projects/diffs/diff_show_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/features/projects/diffs/diff_show_spec.rb b/spec/features/projects/diffs/diff_show_spec.rb
index c1307ab640f..9bfcb1e816a 100644
--- a/spec/features/projects/diffs/diff_show_spec.rb
+++ b/spec/features/projects/diffs/diff_show_spec.rb
@@ -166,8 +166,7 @@ feature 'Diff file viewer', :js do
context 'expanding the diff' do
before do
- # We can't use `click_link` because the "link" doesn't have an `href`.
- find('a.click-to-expand').click
+ click_button 'Click to expand it.'
wait_for_requests
end