Skip to content
Snippets Groups Projects
Commit cb079c82 authored by Robert Speicher's avatar Robert Speicher
Browse files

Fix Markdown feature spec

parent fdff815a
No related branches found
No related tags found
1 merge request!619Add Markdown feature specs for markup inside links
Pipeline #
Loading
@@ -62,7 +62,7 @@ describe 'GitLab Markdown' do
Loading
@@ -62,7 +62,7 @@ describe 'GitLab Markdown' do
# Given a header ID, goes to that element's parent (the header), then to its # Given a header ID, goes to that element's parent (the header), then to its
# second sibling (the body). # second sibling (the body).
def get_section(id) def get_section(id)
@doc.at_css("##{id}").parent.next.next @doc.at_css("##{id}").parent.next_element
end end
   
# it 'writes to a file' do # it 'writes to a file' do
Loading
@@ -189,7 +189,7 @@ describe 'GitLab Markdown' do
Loading
@@ -189,7 +189,7 @@ describe 'GitLab Markdown' do
end end
   
describe 'AutolinkFilter' do describe 'AutolinkFilter' do
let(:list) { get_section('autolinkfilter').parent.search('ul') } let(:list) { get_section('autolinkfilter').next_element }
   
def item(index) def item(index)
list.at_css("li:nth-child(#{index})") list.at_css("li:nth-child(#{index})")
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment