Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,9 @@ command, the Claude and GPT test models on the Anthropic Messages and Responses
bearer is on disk, then requires `ug revert` to remove the extension and leave the settings file
byte-identical. The chat journeys launch the pinned VS Code on a private Xvfb display with
its DevTools port open, and Playwright reads and clicks the real window (`utils/vscode.py`).
The model picker opens through its visible primary button's native Enter handler, avoiding
pointer interception by a neighboring control's tooltip. Other controls retain mouse clicks,
and the short action timeout still lets the harness resample a changing screen.
Nothing is seeded: each journey answers the first-launch onboarding with "Continue without Signing
In", closes the Welcome editor, trusts the folder from the model picker, turns on the bundled
Copilot Chat with the picker's "Add Models..." or ug's "Turn On Copilot Chat" notice, whichever
Expand Down
8 changes: 7 additions & 1 deletion tests/integration/utils/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,13 @@ def _picker_action(self, state: str, screen: dict, label: str) -> None:
)

elif state == "picker closed":
self._click("model picker: open", model_button)
# The native model-name button handles Enter without crossing a hover overlay.
self._act(
"model picker: open",
lambda: model_button.locator(".model-picker-name:visible").press(
"Enter", timeout=CLICK_TIMEOUT_MS
),
)
elif state == "picker: restricted":
self._click(
"model picker: Trust Workspace",
Expand Down
Loading