Skip to content

Commit 6e1cc10

Browse files
authored
Merge pull request #138 from FieldDB/MatMath-patch-1
Add UI test step
2 parents 96778bd + e156611 commit 6e1cc10

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,18 @@ jobs:
5959
uses: coverallsapp/github-action@master
6060
with:
6161
github-token: ${{ secrets.GITHUB_TOKEN }}
62+
63+
- name: Run UI tests
64+
run: npm run test:ui
65+
timeout-minutes: 5
66+
env:
67+
BASE_URL: https://localhost:6984
68+
BASE_PATH: /prototype/_design/prototype
69+
70+
- name: Upload Playwright report and traces for trace.playwright.dev
71+
uses: actions/upload-artifact@v5
72+
if: ${{ !cancelled() }} # Upload even if the previous step failed
73+
with:
74+
name: test-results # Name of the artifact
75+
path: FieldDB/test-e2e/test-results/ # Path to the directory containing reports and traces
76+
retention-days: 30

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,4 @@ node_modules
142142
.DS_Store
143143
~*
144144
*.swp
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 nyc 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)