diff --git a/tests/integration/README.md b/tests/integration/README.md index 8e34ecb8c..314e8d216 100644 --- a/tests/integration/README.md +++ b/tests/integration/README.md @@ -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 diff --git a/tests/integration/utils/vscode.py b/tests/integration/utils/vscode.py index fb5c97945..982bfbe54 100644 --- a/tests/integration/utils/vscode.py +++ b/tests/integration/utils/vscode.py @@ -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",