mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
chore(e2e): merge two beforeEach blocks into one (#57488)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user