Skip to content

Commit

Permalink
chore(e2e): merge two beforeEach blocks into one (freeCodeCamp#57488)
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenltnguyen authored Dec 11, 2024
1 parent 2f6f28e commit c9d70a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]'), so
Expand Down
2 changes: 1 addition & 1 deletion e2e/reset-editor-layout.spec.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
4 changes: 1 addition & 3 deletions e2e/update-about-me.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c9d70a8

Please sign in to comment.