fix: make cypress tests pass
Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
12
.github/workflows/cypress.yml
vendored
12
.github/workflows/cypress.yml
vendored
@@ -9,7 +9,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
APP_NAME: deck
|
APP_NAME: deck
|
||||||
CYPRESS_baseUrl: http://nextcloud.local/index.php/
|
CYPRESS_baseUrl: http://nextcloud.local/index.php
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cypress:
|
cypress:
|
||||||
@@ -26,8 +26,10 @@ jobs:
|
|||||||
server-versions: [ 'master' ]
|
server-versions: [ 'master' ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup custom host for nextcloud
|
- name: Set up custom host for nextcloud
|
||||||
run: echo "localhost nextcloud.local" | sudo tee -a /etc/hosts
|
run: |
|
||||||
|
sudo echo "127.0.0.1 nextcloud.local" | sudo tee -a /etc/hosts
|
||||||
|
cat /etc/hosts
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
@@ -73,13 +75,13 @@ jobs:
|
|||||||
php occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
php occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu"
|
||||||
php occ config:system:set debug --value=true --type=boolean
|
php occ config:system:set debug --value=true --type=boolean
|
||||||
php -f index.php
|
php -f index.php
|
||||||
php -S 0.0.0.0:80 &
|
sudo php -S 0.0.0.0:80 &
|
||||||
export OC_PASS=1234561
|
export OC_PASS=1234561
|
||||||
php occ user:add --password-from-env user1
|
php occ user:add --password-from-env user1
|
||||||
php occ user:add --password-from-env user2
|
php occ user:add --password-from-env user2
|
||||||
php occ app:enable deck
|
php occ app:enable deck
|
||||||
php occ app:list
|
php occ app:list
|
||||||
curl -v http://localhost/index.php/login
|
curl -v http://nextcloud.local/index.php/login
|
||||||
cat data/nextcloud.log
|
cat data/nextcloud.log
|
||||||
|
|
||||||
- name: Cypress run
|
- name: Cypress run
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"baseUrl": "http://nextcloud.local/index.php/",
|
"baseUrl": "http://nextcloud.local/index.php",
|
||||||
"projectId": "hx9gqy",
|
"projectId": "hx9gqy",
|
||||||
"viewportWidth": 1280,
|
"viewportWidth": 1280,
|
||||||
"viewportHeight": 720,
|
"viewportHeight": 720,
|
||||||
|
|||||||
Reference in New Issue
Block a user