Expect error related to mathjax.conf

This commit is contained in:
Dawa Ometto
2022-09-22 11:23:10 +02:00
committed by Dawa Ometto
parent 5ed777834d
commit 869292ed1e
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -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
+1 -1
View File
@@ -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,