test(e2e): make alpaca bars tolerant and click symbol link to avoid aborted navigation\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
2026-05-16 20:23:25 +02:00
parent 8cb7132fe0
commit 18173f9905
2 changed files with 16 additions and 11 deletions
+4 -2
View File
@@ -17,8 +17,10 @@ test("JobHistory shows jobs and job detail navigates", async ({ page }) => {
const jobId = body.jobId || body.job?.id;
expect(jobId).toBeTruthy();
// Navigate to stock detail page
await page.goto(`/stocks/${ticker}`);
// Navigate to stock detail page by clicking the symbol link (avoids aborted navigations)
const symbolLink = firstRow.locator('td a');
await symbolLink.click();
await page.waitForURL(new RegExp(`/stocks/${ticker}`), { timeout: 10000 });
// Wait up to 10s for JobHistory to show at least one job
await page.waitForSelector('text=Job History', { timeout: 10000 });