Stabilize Proto Fleet E2E toast handling - #882
Conversation
🔐 Codex Security Review
Review SummaryOverall Risk: NONE FindingsNo security, correctness, or reliability findings. NotesThe diff only changes ProtoFleet E2E test helpers and rack-management tests. It does not modify production authentication, database, network, plugin, mining-pool, or protocol code. Review was static; E2E tests were not executed. Generated by Codex Security Review | |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ef488a5a85
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR stabilizes Proto Fleet Playwright E2E assertions around toast notifications and rack-deletion cleanup by supporting both the standard toast stack and the newer grouped-toaster UI, and by shifting rack deletion teardown validation from transient toasts to durable UI state.
Changes:
- Expanded
validateTextInToast()to search grouped-toaster header/container text in addition to the standard toast stack. - Updated rack deletion cleanup to wait for the rack row to disappear instead of relying on a “Rack deleted” toast.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| client/e2eTests/protoFleet/pages/base.ts | Broadens toast matching to cover grouped-toaster UI and standard toasts. |
| client/e2eTests/protoFleet/pages/racks.ts | Makes rack deletion cleanup validate via rack-row disappearance instead of a toast. |
Reviewable diff: +25/-8 across 2 files (excludes generated, test, and story files).
Summary
This updates the shared Proto Fleet E2E toast assertions so they handle both the standard toast stack and the grouped toaster UI that newer flows render. It also removes a brittle rack-cleanup dependency on the transient
Rack deletedtoast and instead waits for the rack row itself to disappear.How it works
The shared
validateTextInToast()helper now normalizes text and checks the grouped toaster header, grouped toaster container, and the standard toast stack before failing. Rack deletion cleanup no longer treats a toast as the source of truth; after clicking delete, it validates that the rack is no longer present in the list.Diagrams
Areas of the code involved
client/e2eTests/protoFleet/pages/base.tsclient/e2eTests/protoFleet/pages/racks.tsKey technical decisions & trade-offs
Testing & validation
./node_modules/.bin/eslint e2eTests/protoFleet/pages/base.ts e2eTests/protoFleet/pages/racks.tsnpx playwright test spec/racksCreation.spec.ts --project=desktop --no-deps -g "Create rack with miners assigned by name"npx playwright test spec/buildingDetail.spec.ts --project=mobile --no-deps