app e2e: assert relay pill and stability

This commit is contained in:
Mohamed Boudra
2026-02-05 21:39:57 +07:00
parent caed2dd852
commit 8dcf86a33f
2 changed files with 61 additions and 3 deletions
@@ -35,7 +35,8 @@ test('connects via relay when direct endpoints fail', async ({ page }) => {
}, host);
await page.reload();
// Should eventually connect through the relay candidate URL.
await expect(page.getByText('Connected via relay', { exact: true }).first()).toBeVisible({ timeout: 20000 });
await expect(page.getByText('Online', { exact: true }).first()).toBeVisible({ timeout: 20000 });
// Should eventually connect through the relay connection.
const card = page.getByTestId(`daemon-card-${serverId}`);
await expect(card.getByText('Relay', { exact: true })).toBeVisible({ timeout: 20000 });
await expect(card.getByText('Online', { exact: true })).toBeVisible({ timeout: 20000 });
});