You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SmartApply tests were failing inconsistently due to several issues:
**Problems Fixed**
Apply button not clickable - The button exists in DOM with tw-hidden
class on narrow viewports. Changed wait strategy from `WaitForAsync()`
(waits for visible) to `WaitForAsync(State.Attached)` (waits for element
in DOM), then remove hidden class before clicking.
**Missing file context** - File context chips weren't appearing in chat
input on the first SmartApply test run, causing the LLM to respond
without code suggestions (no Apply button). Added a dummy warm-up test
to initialize file context functionality. The ApplyLastSuggestionFor
helper now waits for context chips before sending prompts.
**Insufficient timeout** - Increased timeout to 60s to accommodate LLM
response times.
**Test file improvements** - Added intentional typo to `Manager.cs` to
ensure LLM reliably provides code suggestions.
### Known Issue
The dummy warm-up test is a workaround. The root cause of why file
context chips don't appear on first test run needs investigation -
likely a timing or initialization issue.
## Test plan
Green and more deterministic CI.
<!-- REQUIRED; info at
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles
-->
0 commit comments