Expect error related to mathjax.conf
This commit is contained in:
@@ -6,7 +6,8 @@ end
|
|||||||
|
|
||||||
def expected_errors
|
def expected_errors
|
||||||
Regexp.union([
|
Regexp.union([
|
||||||
%r{Refused to apply style from 'http:.*/gollum/create/custom.css'}
|
%r{Refused to apply style from 'http:.*/gollum/create/custom.css'},
|
||||||
|
%r{.*/gollum/create/mathjax.config.js - Failed to load resource: the server responded with a status of 403}
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -21,7 +22,11 @@ context 'Frontend with mathjax and mermaid' do
|
|||||||
@path = cloned_testpath("examples/lotr.git")
|
@path = cloned_testpath("examples/lotr.git")
|
||||||
@wiki = Gollum::Wiki.new(@path)
|
@wiki = Gollum::Wiki.new(@path)
|
||||||
Precious::App.set(:gollum_path, @path)
|
Precious::App.set(:gollum_path, @path)
|
||||||
Precious::App.set(:wiki_options, {mathjax: true, mermaid: true})
|
Precious::App.set(:wiki_options, {
|
||||||
|
mathjax: true,
|
||||||
|
mermaid: true,
|
||||||
|
mathjax_config: 'mathjax.config.js'
|
||||||
|
})
|
||||||
Capybara.app = Precious::App
|
Capybara.app = Precious::App
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ context 'Localized frontend' do
|
|||||||
fill_in('Search', with: 'something-to-return-no-results')
|
fill_in('Search', with: 'something-to-return-no-results')
|
||||||
.native
|
.native
|
||||||
.send_keys(:return)
|
.send_keys(:return)
|
||||||
puts "DEBUG: #{page.text}"
|
|
||||||
assert_includes page.text,
|
assert_includes page.text,
|
||||||
'Search results for something-to-return-no-results'
|
'Search results for something-to-return-no-results'
|
||||||
assert_includes page.text,
|
assert_includes page.text,
|
||||||
|
|||||||
Reference in New Issue
Block a user