Refactoring

This commit is contained in:
Matteo Gheza 2020-10-26 19:00:42 +01:00
parent 98aeffe918
commit 8e9ad7b604
2 changed files with 3 additions and 5 deletions

View File

@ -31,12 +31,11 @@ jobs:
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug, pcov
#tools: php-cs-fixer, phpunit
- name: webserver
- name: Start webserver
run: |
nohup php -S 0.0.0.0:8080 &
sleep 5 && curl 127.0.0.1:8080 && exit
sleep 5 && curl 127.0.0.1:8080/.htaccess # request a simple static file
- name: Setup NodeJS
uses: actions/setup-node@v1
@ -73,7 +72,6 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: php -S 0.0.0.0:8080
browser: chrome
record: true
working-directory: server

View File

@ -17,7 +17,7 @@
*/
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
console.log(launchOptions) // print all current args
//console.log(launchOptions) // print all current args
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.preferences.default.intl = { accept_languages: "en" }