test(e2e): fix duplicate base const in job-history spec

This commit is contained in:
2026-05-16 20:25:06 +02:00
parent 9aefcc04b8
commit 699c4eae26
-1
View File
@@ -18,7 +18,6 @@ test("JobHistory shows jobs and job detail navigates", async ({ page }) => {
expect(jobId).toBeTruthy(); expect(jobId).toBeTruthy();
// Navigate to stock detail page directly (use absolute URL to avoid SPA navigation races) // Navigate to stock detail page directly (use absolute URL to avoid SPA navigation races)
const base = new URL(page.url()).origin;
await page.goto(`${base}/stocks/${ticker}`, { waitUntil: 'load', timeout: 20000 }); await page.goto(`${base}/stocks/${ticker}`, { waitUntil: 'load', timeout: 20000 });
await page.waitForSelector('text=Job History', { timeout: 10000 }); await page.waitForSelector('text=Job History', { timeout: 10000 });