fix(e2e): select Agent-server tab in cross-connect test

The AddBackendModal was redesigned to default to the Cloud tab. The
cross-connect e2e test directly filled the manual connection form
fields without first switching to the Agent-server tab, causing a
locator timeout.

Click the 'add-backend-option-agent-server' tab and wait for the
agent-server panel before filling in Backend B details.

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
openhands
2026-07-31 05:57:55 +00:00
parent 54bdeaf162
commit 16c29bc38d
@@ -451,6 +451,13 @@ test.describe("cross-connect: frontend-only → multiple backends", () => {
timeout: 5_000,
});
// The modal defaults to the Cloud tab; switch to Agent-server to access
// the manual connection form.
await page.getByTestId("add-backend-option-agent-server").click();
await expect(
page.getByTestId("add-backend-agent-server-panel"),
).toBeVisible({ timeout: 5_000 });
// Fill in Backend B details
const nameInput = page.getByTestId("add-backend-name");
await nameInput.click();