diff options
Diffstat (limited to 'spec/support/matchers')
-rw-r--r-- | spec/support/matchers/issuable_matchers.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/matchers/issuable_matchers.rb b/spec/support/matchers/issuable_matchers.rb index ab15a80bf60..743f0b8c932 100644 --- a/spec/support/matchers/issuable_matchers.rb +++ b/spec/support/matchers/issuable_matchers.rb @@ -2,8 +2,7 @@ RSpec::Matchers.define :have_header_with_correct_id_and_link do |level, text, id, parent = ".md"| match do |actual| - # anchors may be invisible - node = find("#{parent} h#{level} a#user-content-#{id}", visible: false) + node = find("#{parent} h#{level} a#user-content-#{id}") expect(node[:href]).to end_with("##{id}") |