fix(tools): seed all current challenges and certifications for certified user from hardcoded list (#67969)

This commit is contained in:
majestic-owl448
2026-06-17 17:57:01 +02:00
committed by GitHub
parent eda1e15e9f
commit 25a724f89a
2 changed files with 66290 additions and 1696 deletions
+15
View File
@@ -1,6 +1,21 @@
import { execSync } from 'child_process';
import { test, expect } from '@playwright/test';
test.describe('Certification intro page', () => {
// Use the development user so the certification blocks are incomplete and
// therefore rendered expanded. The fully certified user has completed every
// challenge, which collapses the blocks and hides their descriptions.
test.use({ storageState: 'playwright/.auth/development-user.json' });
test.beforeAll(() => {
execSync('node ../tools/scripts/seed/seed-demo-user');
});
test.afterAll(() => {
execSync('node ../tools/scripts/seed/seed-demo-user --certified-user');
});
test('Should render and toggle correctly', async ({ page }) => {
const firstBlockToggle = page.getByRole('button', {
name: /^Learn HTML by Building a Cat Photo App/
+66275 -1696
View File
File diff suppressed because it is too large Load Diff