Skip to content

Commit 5243349

Browse files
committed
Merge branch 'main' of github.com:FieldDB/AuthenticationWebService into test-prototypedev
2 parents f5bbf61 + 6e1cc10 commit 5243349

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/node.js.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,18 @@ jobs:
7171
uses: coverallsapp/github-action@master
7272
with:
7373
github-token: ${{ secrets.GITHUB_TOKEN }}
74+
75+
- name: Run UI tests
76+
run: npm run test:ui
77+
timeout-minutes: 5
78+
env:
79+
BASE_URL: https://localhost:6984
80+
BASE_PATH: /prototype/_design/prototype
81+
82+
- name: Upload Playwright report and traces for trace.playwright.dev
83+
uses: actions/upload-artifact@v5
84+
if: ${{ !cancelled() }} # Upload even if the previous step failed
85+
with:
86+
name: test-results # Name of the artifact
87+
path: FieldDB/test-e2e/test-results/ # Path to the directory containing reports and traces
88+
retention-days: 30

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ node_modules
142142
.DS_Store
143143
~*
144144
*.swp
145-
FieldDB
145+
FieldDB

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"test:deprecated": "DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 URL=https://localhost:3183 mocha --timeout 25000 test/routes/deprecated-spec.js",
7575
"test:fielddb": "NODE_ENV=localhost jasmine-node node_modules/fielddb/tests",
7676
"test:production": "ls config/production.js",
77+
"test:ui": "git clone https://github.com/FieldDB/FieldDB.git; cd FieldDB/test-e2e && npm install && npx playwright install chromium && BASE_URL=${BASE_URL:-https://localhost:6984} BASE_PATH=${BASE_PATH:-/prototypedev/_design/prototype} DEBUG=${DEBUG:-none} npm run test -- --retries=0 --project=Chromium register",
7778
"watch": "nodemon ./bin/www.js"
7879
},
7980
"license": "Apache-2.0"

0 commit comments

Comments
 (0)