Skip to content

Commit 29fdc70

Browse files
fix tests
1 parent a424ceb commit 29fdc70

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/tests/component.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ TEST_EXIT_CODE=0
1010
npm ci
1111
npm run test:component || TEST_EXIT_CODE=$?
1212
echo "TEST_EXIT_CODE=$TEST_EXIT_CODE"
13+
14+
mkdir -p ../acceptance-test-report
15+
cp -r ./playwright-report ../acceptance-test-report
16+
[[ -e test-results ]] && cp -r ./test-results ../acceptance-test-report
17+
1318
exit $TEST_EXIT_CODE

tests/config/reporters.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { ReporterDescription } from '@playwright/test';
2+
import path from 'path';
23

34
const resultsDir = process.env.RESULTS_DIR || 'results';
45
const reportsDir = process.env.REPORTS_DIR || 'reports';
@@ -21,7 +22,7 @@ export function getReporters(allureFolder: string) {
2122
[
2223
'html',
2324
{
24-
outputFolder: `../target/test-artifacts/${reportsDir}/html-report`,
25+
outputFolder: path.resolve(__dirname, '../playwright-report'),
2526
open: process.env.CI ? 'never' : 'on-failure',
2627
},
2728
],

0 commit comments

Comments
 (0)