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>
This commit is contained in:
2026-05-01 09:17:14 +08:00
parent 6ff3b77f9a
commit e6ec3ba7d7
+2 -2
View File
@@ -9,8 +9,8 @@ test.describe('课包商店', () => {
await page.goto('/');
await page.evaluate(() => localStorage.clear());
// Reload without auth
await page.goto('/', { waitUntil: 'domcontentloaded', timeout: 60_000 });
// Reload without auth, with org_id so the store loads public packages
await page.goto(`/?org_id=${testOrgId}`, { waitUntil: 'domcontentloaded', timeout: 60_000 });
await expect(page.locator('#app')).toBeVisible({ timeout: 60_000 });
await page.waitForTimeout(3000);