auth.setup.ts 287 B

123456789
  1. import { test as setup } from '@playwright/test';
  2. import { login } from './utils/Login';
  3. // Commonised login process for use elsewhere
  4. // see: https://github.com/microsoft/playwright/issues/22114
  5. setup('Authenticate as the "admin" user', async ({ page }) => {
  6. await login(page);
  7. });