Commit Graph

6 Commits

Author SHA1 Message Date
weli dd8d41c7b0 test: fix detail page E2E tests — use real login flow instead of fake JWT
The mocked detail page tests were using localStorage fake JWTs, but the
frontend auth guard in router.beforeEach requires BOTH Authorization and
HtySudoToken to be present — without both, it redirects to / before the
detail component ever mounts, so the route mock was never reached.

Rewrite to use real student login first, then navigate with mocks active.
Tests 11-13: login → mock API → navigate to detail page → assert.
Test 14: fix .group-sections assertion for packages without course items.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 11:35:19 +08:00
weli 38a710c19d test: add detail page permission, preview lock, and status E2E tests 2026-05-01 10:51:04 +08:00
weli a20011ca8f test: update guest store test to verify no org_id needed; add logged-in student test
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 10:07:52 +08:00
weli b111d65631 test: add E2E for logged-in student viewing course package store on teacher home
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 09:52:53 +08:00
weli e6ec3ba7d7 fix: update course-package-store test to use org_id in URL
index.vue now only shows CoursePackageStore when org_id is present
in URL query params. Update the test accordingly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 09:17:14 +08:00
weli 6ff3b77f9a test: add course package storefront E2E tests
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 08:20:33 +08:00