Set QT_QPA_PLATFORM to offscreen in the test environment
Works around an issue with the weird way the debian/ubuntu version of phantomjs is built: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817277 https://github.com/ariya/phantomjs/issues/14376
This commit is contained in:
parent
33a532bddf
commit
41326fd6d4
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,11 @@ require "capybara/poltergeist"
|
|||
|
||||
WebMock.disable_net_connect!(:allow_localhost => true)
|
||||
|
||||
# Work around weird debian/ubuntu phantomjs
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817277
|
||||
# https://github.com/ariya/phantomjs/issues/14376
|
||||
ENV["QT_QPA_PLATFORM"] = "offscreen"
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
ActionDispatch::SystemTesting::Server.silence_puma = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue