Compare commits

...

8 Commits

Author SHA1 Message Date
Henry Jameson b89d8a1a98 t 2019-11-20 23:14:53 +02:00
Henry Jameson e47f61c3d3 pls fail 2019-11-20 23:03:12 +02:00
Henry Jameson 7a938b5d1d a 2019-11-20 22:58:23 +02:00
Henry Jameson ac7fd24297 e 2019-11-20 22:53:29 +02:00
Henry Jameson 4c96ceff5c restart pip lin 2019-11-20 22:48:10 +02:00
Henry Jameson c6c5b322d7 debug 2019-11-20 22:43:13 +02:00
Henry Jameson 370494fd87 test headless mode with screenshot 2019-11-20 22:28:58 +02:00
Henry Jameson 1bad0a6856 use headless and no-remote? 2019-11-20 22:08:20 +02:00
2 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,7 @@ test:
- mkdir -pv $APT_CACHE_DIR && apt-get -qq update - mkdir -pv $APT_CACHE_DIR && apt-get -qq update
- apt install firefox-esr -y --no-install-recommends - apt install firefox-esr -y --no-install-recommends
- firefox --version - firefox --version
- firefox --headless --screenshot test.jpg https://pleroma.social/
- yarn - yarn
- yarn unit - yarn unit

View File

@ -56,11 +56,18 @@ module.exports = function (config) {
browsers: ['FirefoxHeadless'], browsers: ['FirefoxHeadless'],
frameworks: ['mocha', 'sinon-chai'], frameworks: ['mocha', 'sinon-chai'],
reporters: ['mocha'], reporters: ['mocha'],
logLevel: 'debug',
browserConsoleLogOptions: {
level: "debug",
format: "%b %T: %m",
terminal: true
},
customLaunchers: { customLaunchers: {
'FirefoxHeadless': { 'FirefoxHeadless': {
base: 'Firefox', base: 'Firefox',
flags: [ flags: [
'-headless' '--headless',
'--no-remote'
] ]
} }
}, },