chore(e2e): merge two beforeEach blocks into one (#57488)

This commit is contained in:
Huyen Nguyen
2024-12-12 05:42:04 +07:00
committed by GitHub
parent 2f6f28ed14
commit c9d70a8497
3 changed files with 3 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ setup.describe('certifieduser', () => {
setup.describe('developmentuser', () => {
// We need to make sure the development user does not have any cookies from the certified user.
// Ass the certified user now has the default storage state.
// As the certified user now has the default storage state.
setup.use({ storageState: { cookies: [], origins: [] } });
// We can only sign in as a single user (one with email: 'foo@bar.com'), so

View File

@@ -1,5 +1,5 @@
import { test, expect } from '@playwright/test';
test.use({ storageState: 'playwright/.auth/certified-user.json' });
test.describe('Reset Editor Layout', () => {
test('drag layout and reset', async ({ page, isMobile }) => {
test.skip(

View File

@@ -6,9 +6,7 @@ test.beforeEach(async ({ page }) => {
execSync(
'node ./tools/scripts/seed/seed-demo-user --certified-user --set-false isFullStackCert'
);
await page.goto('/settings');
});
test.beforeEach(async ({ page }) => {
await page.goto('/certifieduser');
if (!process.env.CI) {