Repository navigation
Conversation
The duplicate-ID message is a snackbar that hides after 3.5 seconds, and the step checking it could resume later than that. The page now records each snackbar message as it appears, and "the user sees" also matches a message recorded since the user's last interaction, once per showing.
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 2 minutes. View limit details
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4485 +/- ##
==========================================
- Coverage 68.13% 64.93% -3.21%
==========================================
Files 1362 1346 -16
Lines 210648 219093 +8445
Branches 6750 6751 +1
==========================================
- Hits 143529 142264 -1265
- Misses 58017 67904 +9887
+ Partials 9102 8925 -177
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Purpose
Resolves #4364. The UI journey "an administrator creates LLM providers from a template" still fails intermittently after #4370: twice more in CI, on Nov 20 (job 136285853935) and Nov 21 (job 136911060357), each time at
And the user sees "An LLM provider with this ID already exists." on the page.The message is an AI Workspace snackbar that hides after 3.5 seconds (
autoHideDuration: 3500inportals/ai-workspace/src/contexts/AIWorkspaceSnackbarContext.tsx). In both failing traces:#4370 removed the delay caused by the request recorder, and the traces confirm that no longer happens. The remaining stall is in the test process, between two steps that make no browser calls. Whatever its cause, a test that has to resume within 3.5 seconds to see the message will keep failing on a busy runner.
Goals
Approach
This uses the same pattern as the API Portal toast recorder (
reloadingSaveinsteps/apiportal/billing.go):steps/browser.go) records each MUI snackbar message (.MuiSnackbar-root) as it appears.pointerdown,keydown,input) clears the record, so a check only matches messages shown after the last action.seesOnPage(steps/aiworkspace/journey.go) passes in either of two cases:The change covers every AI Workspace step that checks text with "the user sees".
User stories
N/A. A test stability fix.
Documentation
N/A. Test changes only.
Automation tests
Security checks
Database changes
Samples
N/A
Related PRs
Test environment