Aller au contenu

generateSessionId

Ce contenu n’est pas encore disponible dans votre langue.

generateSessionId(testInfo): string

Defined in: playwright/index.ts:160

Generate a session ID from test info Uses titlePath to create folder structure with test file name Supports both .spec.ts and .test.ts extensions Example: [‘jobs/Create.spec.ts’, ‘create a job’] becomes ‘jobs/Create__create-a-job’ Example: [‘users/Auth.test.ts’, ‘login test’] becomes ‘users/Auth__login-test’

PlaywrightTestInfo

Playwright test info object

string