chore: provide blob name for web and html reporter tests (#34940)
This commit is contained in:
parent
67d6f7f603
commit
7a61aa25e6
|
|
@ -23,7 +23,11 @@ export default defineConfig({
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
retries: process.env.CI ? 2 : 0,
|
retries: process.env.CI ? 2 : 0,
|
||||||
snapshotPathTemplate: '{testDir}/__screenshots__/{projectName}/{testFilePath}/{arg}{ext}',
|
snapshotPathTemplate: '{testDir}/__screenshots__/{projectName}/{testFilePath}/{arg}{ext}',
|
||||||
reporter: process.env.CI ? 'blob' : 'html',
|
reporter: process.env.CI ? [
|
||||||
|
['blob', { fileName: `${process.env.PWTEST_BOT_NAME}.zip` }],
|
||||||
|
] : [
|
||||||
|
['html']
|
||||||
|
],
|
||||||
use: {
|
use: {
|
||||||
ctPort: 3101,
|
ctPort: 3101,
|
||||||
ctViteConfig: {
|
ctViteConfig: {
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,7 @@ import type { ReporterDescription } from '@playwright/test';
|
||||||
|
|
||||||
const reporters = () => {
|
const reporters = () => {
|
||||||
const result: ReporterDescription[] = process.env.CI ? [
|
const result: ReporterDescription[] = process.env.CI ? [
|
||||||
['html'],
|
['blob', { fileName: `${process.env.PWTEST_BOT_NAME}.zip` }],
|
||||||
['blob'],
|
|
||||||
] : [
|
] : [
|
||||||
['html']
|
['html']
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue