Harden E2E selectors for Forge mode toggle and spread actions card.

Use scoped Simple button locator, containText for hostname in actions card, and card-scoped TRACE click to avoid strict-mode and encoding flakes.
This commit is contained in:
AetherForge
2026-06-07 07:06:19 -07:00
parent e3d7ecc33f
commit f9ce44b962
3 changed files with 5 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ test.describe('Path Tracer E2E', () => {
const card = page.locator('.pt-agent-card').filter({ hasText: E2E_STUB_AGENT_HOSTNAME });
await expect(card).toBeVisible({ timeout: 15_000 });
await card.click();
await page.getByRole('button', { name: '⬡ TRACE' }).click();
await card.getByRole('button', { name: /TRACE/i }).click();
await expect(page.getByText('Spread Routes')).toBeVisible({ timeout: 15_000 });
await expect(page.getByText(/192\.168\.1\.0\/24/)).toBeVisible();