To speed up pull request flow, put e2e tests only mandatory for Chrome. We still have tests for Firefox and Webkit, but they are not mandatory. They will still have to be checked regularly, particularly during the deployment phase.
28 lines
745 B
TypeScript
28 lines
745 B
TypeScript
import { test as setup } from '@playwright/test';
|
|
|
|
import { keyCloakSignIn } from './common';
|
|
|
|
setup('authenticate-chromium', async ({ page }) => {
|
|
await page.goto('/');
|
|
await keyCloakSignIn(page, 'chromium');
|
|
await page
|
|
.context()
|
|
.storageState({ path: `playwright/.auth/user-chromium.json` });
|
|
});
|
|
|
|
setup('authenticate-webkit', async ({ page }) => {
|
|
await page.goto('/');
|
|
await keyCloakSignIn(page, 'webkit');
|
|
await page
|
|
.context()
|
|
.storageState({ path: `playwright/.auth/user-webkit.json` });
|
|
});
|
|
|
|
setup('authenticate-firefox', async ({ page }) => {
|
|
await page.goto('/');
|
|
await keyCloakSignIn(page, 'firefox');
|
|
await page
|
|
.context()
|
|
.storageState({ path: `playwright/.auth/user-firefox.json` });
|
|
});
|