diff options
| author | LalleSX | 2026-10-24 14:18:00 +0200 |
|---|---|---|
| committer | LalleSX | 2026-10-24 14:18:00 +0200 |
| commit | 389fb3a592832092835da0c2cc1608a57ba5f629 (patch) | |
| tree | ad1f89333ec3c84b906fb6546cee7824f58236fa /tests/lab.spec.ts | |
| parent | init (diff) | |
| download | 3D-Electrophysics-389fb3a592832092835da0c2cc1608a57ba5f629.tar.gz 3D-Electrophysics-389fb3a592832092835da0c2cc1608a57ba5f629.zip | |
Add tests for math rendering and interactive scenes; update navigation and viewport handling
- Updated `lab.spec.ts` to navigate directly to the field lesson.
- Created `math.spec.ts` with tests for math rendering, error checking, and responsive design.
- Added `test4.spec.ts` for interactive scenes, ensuring all questions are functional and accessible.
- Modified `vite.config.ts` to keep original question/answer links navigable in production.
Diffstat (limited to '')
| -rw-r--r-- | tests/lab.spec.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lab.spec.ts b/tests/lab.spec.ts index 51645cd..e4bac8e 100644 --- a/tests/lab.spec.ts +++ b/tests/lab.spec.ts @@ -10,7 +10,7 @@ async function read(page: Page, label: string) { test('all eight lessons render 3D content with measurements and explanations', async ({ page }) => { const errors: string[] = []; page.on('pageerror', e => errors.push(e.message)); - await page.goto('/'); + await page.goto('/#field'); const subjects = ['Electric charge, force and field', 'Electric flux and charge', 'Electric potential energy', 'Electric potential and gradient', 'Capacitance', 'Dielectric materials', 'Current', 'Semiconducting materials']; const tabs = page.getByRole('tab'); await expect(tabs).toHaveCount(8); |