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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user