@@ -7,7 +7,7 @@ import type { Project } from '@playwright/test';
77
88import { AUTH_STORAGE_DIR } from './src/helpers/constants' ;
99
10- import type { BrowserName , ProjectMetadata } from './src/helpers/types' ;
10+ import type { BrowserTarget , ProjectMetadata } from './src/helpers/types' ;
1111
1212const apiPort = parseNumber ( process . env . API_DEV_SERVER_PORT ) ;
1313const gatewayPort = parseNumber ( process . env . GATEWAY_DEV_SERVER_PORT ) ;
@@ -23,7 +23,7 @@ if (Number.isNaN(apiPort)) {
2323
2424const baseURL = `http://localhost:${ webPort } ` ;
2525
26- const browsers : { target : BrowserName ; use : Project [ 'use' ] } [ ] = [
26+ const browsers : { target : BrowserTarget ; use : Project [ 'use' ] } [ ] = [
2727 { target : 'Desktop Chrome' , use : { ...devices [ 'Desktop Chrome' ] , channel : 'chromium' , headless : true } } ,
2828 { target : 'Desktop Firefox' , use : { ...devices [ 'Desktop Firefox' ] , headless : true } }
2929] as const ;
@@ -56,10 +56,8 @@ export default defineConfig({
5656 dependencies : i === 1 ? [ 'Global Setup' ] : [ `${ i - 1 } .x - ${ browser . target } ` ] ,
5757 metadata : {
5858 authStorageFile : path . resolve ( AUTH_STORAGE_DIR , `${ browserId } .json` ) ,
59- browser : {
60- id : browserId ,
61- name : browser . target
62- }
59+ browserId,
60+ browserTarget : browser . target
6361 } satisfies ProjectMetadata ,
6462 name : `${ i } .x - ${ browser . target } ` ,
6563 testMatch : `**/${ i } .*.spec.ts` ,
0 commit comments