Skip to content

Commit 8467372

Browse files
committed
Fix local tests script
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent f3a1011 commit 8467372

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cypress/start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ else
1010
dockername="cypress_testing_$appname"
1111

1212
docker run -p 8000:80 --rm --name $dockername --volume $(pwd):/var/www/html/apps/$appname --env BRANCH=master --detach nextcloudci/server:server-15
13-
sleep 10
13+
npm i --no-save wait-on
14+
npm run wait-on -- http://localhost:8000
1415
docker exec --user www-data $dockername php occ app:enable $appname
1516
docker exec --user www-data $dockername php occ config:system:set force_language --value en
1617
fi

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"stylelint": "stylelint src",
3434
"stylelint:fix": "stylelint src --fix",
3535
"cypress": "cypress run",
36-
"cypress:gui": "cypress open"
36+
"cypress:gui": "cypress open",
37+
"wait-on": "wait-on -i 500 -t 300000"
3738
},
3839
"dependencies": {
3940
"@nextcloud/auth": "^0.3.1",

0 commit comments

Comments
 (0)