ci/cd: fix html reporting of playwright

This commit is contained in:
Elias Schneider
2024-10-26 00:15:01 +02:00
parent 735dc70d5f
commit 0b0a6781ff
2 changed files with 5 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ jobs:
- name: Build Docker Image - name: Build Docker Image
run: docker build -t stonith404/pocket-id . run: docker build -t stonith404/pocket-id .
- name: Run Docker Container - name: Run Docker Container
run: docker run -d --name pocket-id -p 80:80 --env-file .env.test stonith404/pocket-id run: docker run -d --name pocket-id -p 80:80 --env-file .env.test stonith404/pocket-id
@@ -41,4 +42,5 @@ jobs:
with: with:
name: playwright-report name: playwright-report
path: frontend/tests/.report path: frontend/tests/.report
include-hidden-files: true
retention-days: 15 retention-days: 15

View File

@@ -12,7 +12,7 @@ export default defineConfig({
retries: process.env.CI ? 1 : 0, retries: process.env.CI ? 1 : 0,
workers: 1, workers: 1,
reporter: process.env.CI reporter: process.env.CI
? [['html'], ['github']] ? [['html', { outputFolder: 'tests/.report' }], ['github']]
: [['line'], ['html', { open: 'never', outputFolder: 'tests/.report' }]], : [['line'], ['html', { open: 'never', outputFolder: 'tests/.report' }]],
use: { use: {
baseURL: 'http://localhost', baseURL: 'http://localhost',