mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 16:08:23 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user