diff --git a/test/integration/test_js_errors.rb b/test/integration/test_js_errors.rb index c16fe12f..818211ce 100644 --- a/test/integration/test_js_errors.rb +++ b/test/integration/test_js_errors.rb @@ -6,7 +6,8 @@ end def expected_errors 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 @@ -21,7 +22,11 @@ context 'Frontend with mathjax and mermaid' do @path = cloned_testpath("examples/lotr.git") @wiki = Gollum::Wiki.new(@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 end diff --git a/test/integration/test_localization.rb b/test/integration/test_localization.rb index a6ac7fe8..814ef8ed 100644 --- a/test/integration/test_localization.rb +++ b/test/integration/test_localization.rb @@ -19,7 +19,7 @@ context 'Localized frontend' do fill_in('Search', with: 'something-to-return-no-results') .native .send_keys(:return) - puts "DEBUG: #{page.text}" + assert_includes page.text, 'Search results for something-to-return-no-results' assert_includes page.text,