test(workbench/e2e): poll for Model B/C options before selectOption#92
Merged
Conversation
The Anthropic sweep flaked on tutorials #1 and #2 because configureAnthropic() only polled for Model A's option to appear in the cfg-model dropdown — it then fired selectOption on cfg-model-b immediately, racing the WebDriver layer's view of the populated options. Playwright would retry for ~65s and eventually the test timed out with "Target page, context or browser has been closed". Mirror the existing A poll for B and C: wait for the desired option text to be visible in the dropdown before calling selectOption. Same 15s budget, same toPass shape. Fixes the flake; the sweep ran 32/32 green in 9.5 min after this change. Signed-off-by: Federico Kamelhar <federico.kamelhar@oracle.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan