diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-21 22:48:29 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-01 00:28:10 +0300 |
commit | 567b8a99fe0e454a6d2c0b79cde86ee2dea806f3 (patch) | |
tree | 0a53c009e4383c1c50f2b3fe0471f3b02131f1c6 /features | |
parent | 94ae12f6979db948687464e39f76a39fa5f43bae (diff) |
update gitlab flavored markdown tests to reflect namespaced ids
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/shared/markdown.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/shared/markdown.rb b/features/steps/shared/markdown.rb index 56b36f7c46c..d355913a7ce 100644 --- a/features/steps/shared/markdown.rb +++ b/features/steps/shared/markdown.rb @@ -2,7 +2,7 @@ module SharedMarkdown include Spinach::DSL def header_should_have_correct_id_and_link(level, text, id, parent = ".wiki") - node = find("#{parent} h#{level} a##{id}") + node = find("#{parent} h#{level} a#user-content_#{id}") expect(node[:href]).to eq "##{id}" # Work around a weird Capybara behavior where calling `parent` on a node |