chore: set default login state playwright (#57277)

This commit is contained in:
Sem Bauke
2024-11-22 19:52:01 +01:00
committed by GitHub
parent 6d5aeefbfa
commit f1b2a08691
60 changed files with 70 additions and 150 deletions

View File

@@ -3,8 +3,6 @@ import { test, expect, Page } from '@playwright/test';
import translations from '../client/i18n/locales/english/translations.json';
import { alertToBeVisible } from './utils/alerts';
test.use({ storageState: 'playwright/.auth/certified-user.json' });
test.describe('Certification page - Non Microsoft', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/certification/certifieduser/responsive-web-design');
@@ -148,7 +146,6 @@ test.describe('Invalid certification page', () => {
}
};
test.describe('for authenticated user', () => {
test.use({ storageState: 'playwright/.auth/certified-user.json' });
test(
'it should redirect to / and display an error message',
testInvalidCertification