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