11import { test , expect } from '@playwright/test' ;
2- import { loginUser , baseUrl , apiUserHeaders , apiCreateUser , apiDeleteUser , apiCreateRepo , apiCreateIssue , apiStartStopwatch , timeoutFactor } from './utils.ts' ;
2+ import { loginUser , baseUrl , apiUserHeaders , apiCreateUser , apiDeleteUser , apiCreateRepo , apiCreateIssue , apiStartStopwatch , timeoutFactor , randomString } from './utils.ts' ;
33
44// These tests rely on a short EVENT_SOURCE_UPDATE_TIME in the e2e server config.
55test . describe ( 'events' , ( ) => {
66 test ( 'notification count' , async ( { page, request} ) => {
7- const owner = 'ev-notif-owner' ;
8- const commenter = 'ev-notif-commenter' ;
9- const repoName = 'ev-notif' ;
7+ const id = `ev-notif-${ randomString ( 8 ) } ` ;
8+ const owner = `${ id } -owner` ;
9+ const commenter = `${ id } -commenter` ;
10+ const repoName = id ;
1011
1112 await Promise . all ( [ apiCreateUser ( request , owner ) , apiCreateUser ( request , commenter ) ] ) ;
1213
@@ -29,7 +30,7 @@ test.describe('events', () => {
2930 } ) ;
3031
3132 test ( 'stopwatch' , async ( { page, request} ) => {
32- const name = ' ev-sw' ;
33+ const name = ` ev-sw- ${ randomString ( 8 ) } ` ;
3334 const headers = apiUserHeaders ( name ) ;
3435
3536 await apiCreateUser ( request , name ) ;
@@ -51,7 +52,7 @@ test.describe('events', () => {
5152 } ) ;
5253
5354 test ( 'logout propagation' , async ( { browser, request} ) => {
54- const name = ' ev-logout' ;
55+ const name = ` ev-logout- ${ randomString ( 8 ) } ` ;
5556
5657 await apiCreateUser ( request , name ) ;
5758
0 commit comments