Skip to content

Commit b8a032e

Browse files
committed
chore(test): move tests
1 parent 4d26593 commit b8a032e

82 files changed

Lines changed: 119 additions & 20 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/publish-website/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ runs:
6262
npm run build-website
6363
shell: bash
6464
- name: Install Playwright
65-
working-directory: ./tests/e2e
65+
working-directory: ./webui
6666
run: npx playwright install --with-deps
6767
shell: bash
6868
- name: test website
69-
working-directory: ./tests/e2e
69+
working-directory: ./webui
7070
run: npx playwright test --project=website
7171
shell: bash
7272
- name: Upload test results

.github/actions/run-frontend-tests/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
run: docker load --input /tmp/mokapi.tar
2424
shell: bash
2525
- name: Run mokapi image
26-
run: docker run --name mokapi --rm -d -p 8090:8090 -p 8091:8091 --mount type=bind,source=$(pwd)/tests/e2e/mocks,target=/data --env MOKAPI_Log_Level=Debug --env MOKAPI_Api_Port=8091 --env MOKAPI_Api_Path=/mokapi --env MOKAPI_Providers_File_Directory=/data ${{ inputs.image-name }}
26+
run: docker run --name mokapi --rm -d -p 8090:8090 -p 8091:8091 --mount type=bind,source=$(pwd)/webui/e2e/mocks,target=/data --env MOKAPI_Log_Level=Debug --env MOKAPI_Api_Port=8091 --env MOKAPI_Api_Path=/mokapi --env MOKAPI_Providers_File_Directory=/data ${{ inputs.image-name }}
2727
shell: bash
2828
- uses: actions/setup-node@v4
2929
with:
@@ -37,19 +37,19 @@ runs:
3737
npm run build-dashboard
3838
shell: bash
3939
- name: Install Playwright
40-
working-directory: ./tests/e2e
40+
working-directory: ./webui
4141
run: npx playwright install --with-deps
4242
shell: bash
4343
- name: Run your tests
44-
working-directory: ./tests/e2e
44+
working-directory: ./webui
4545
run: npx playwright test --project=dashboard
4646
shell: bash
4747
- name: Upload test results
4848
if: always()
4949
uses: actions/upload-artifact@v4
5050
with:
5151
name: ${{ inputs.artifact-test-report }}
52-
path: webui/playwright-report
52+
path: ./webui/playwright-report
5353
- name: Save Mokapi logs
5454
if: always()
5555
run: docker logs mokapi > /var/tmp/mokapi.log 2>&1

0 commit comments

Comments
 (0)