From c9d70a84972d9cb8996b0220823bb117ad9090e2 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Thu, 12 Dec 2024 05:42:04 +0700 Subject: [PATCH] chore(e2e): merge two beforeEach blocks into one (#57488) --- e2e/global-setup.ts | 2 +- e2e/reset-editor-layout.spec.ts | 2 +- e2e/update-about-me.spec.ts | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/e2e/global-setup.ts b/e2e/global-setup.ts index a1699039e6f..3a71c3bb4bb 100644 --- a/e2e/global-setup.ts +++ b/e2e/global-setup.ts @@ -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 diff --git a/e2e/reset-editor-layout.spec.ts b/e2e/reset-editor-layout.spec.ts index 11af13d2b95..7b286ea7644 100644 --- a/e2e/reset-editor-layout.spec.ts +++ b/e2e/reset-editor-layout.spec.ts @@ -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( diff --git a/e2e/update-about-me.spec.ts b/e2e/update-about-me.spec.ts index 750ba359a18..783a0fc0c28 100644 --- a/e2e/update-about-me.spec.ts +++ b/e2e/update-about-me.spec.ts @@ -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) {