summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-21 13:48:29 -0600
committerMike Greiling <mike@pixelcog.com>2016-11-30 15:28:10 -0600
commit567b8a99fe0e454a6d2c0b79cde86ee2dea806f3 (patch)
tree0a53c009e4383c1c50f2b3fe0471f3b02131f1c6 /features
parent94ae12f6979db948687464e39f76a39fa5f43bae (diff)
downloadgitlab-ce-567b8a99fe0e454a6d2c0b79cde86ee2dea806f3.tar.gz
update gitlab flavored markdown tests to reflect namespaced ids
Diffstat (limited to 'features')
-rw-r--r--features/steps/shared/markdown.rb2
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