( setupFn: SetupFunction, page: Page, )
| 56 | |
| 57 | /** Executes the setup function with the provided Playwright page. */ |
| 58 | export async function runSetup( |
| 59 | setupFn: SetupFunction, |
| 60 | page: Page, |
| 61 | ): Promise<void> { |
| 62 | await logger.task('Running authentication setup script', async () => { |
| 63 | await setupFn(page); |
| 64 | return { message: 'Authentication setup completed', result: undefined }; |
| 65 | }); |
| 66 | } |
no test coverage detected