mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5590] [MERGED] test(e2e): follow the relocated context usage indicator in the Professor Mari budget case #6836
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6836
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5590
Author: @Romuromylus
Created: 8/28/2026
Status: ✅ Merged
Merged: 8/28/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/5589-professor-mari-context-budget-e2e📝 Commits (1)
3d0d27dtest(e2e): follow the relocated context usage indicator in the Professor Mari budget case📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
e2e/core-flows.e2e.ts(+4 -3)📄 Description
Linked issue
Closes #5589 (the consistently failing
core-flows.e2e.ts:14754half; the rotating flaky cases listed there are a separate follow-up)Why this change
The Release Regression Matrix has been red on every
stagingpush since 2026-08-25. The one case failing consistently in all three browser lanes iscore-flows.e2e.ts:14754— "Professor Mari shows the latest context budget when token usage is enabled" — failing withexpect(locator).toContainText → element(s) not found.Root cause: the context-usage work from #5577 (PR #5579, commits
d3c4a97andcd87709) reworked the Professor Mari budget display:ProfessorMariContextBudgetIndicator(data-component="HomeProfessorMariChat.ContextBudget") was replaced by the sharedContextBudgetIndicator(data-component="ContextBudget").showTokenUsageUI-store flag to the newshowContextUsagesetting.The e2e case was never updated, so its locator matches nothing and the matrix inherits a guaranteed red lane on every run — which buries any real e2e regression a PR introduces.
What changed
e2e/core-flows.e2e.ts(the14754case only):showContextUsageviasetShowContextUsage(true)instead of the oldsetShowTokenUsage(true);Select connectionbutton) before asserting;[data-component="ContextBudget"]inside the Professor Mari window.aria-valuenow/aria-valuemax) are unchanged — they pass against the relocated indicator as-is.Test-only diff; no application code touched.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
desktop-chromium,mobile-chromium, andmobile-webkit— all pass (previously "element(s) not found" in all three).14754case should go green in every lane. The rotating flaky cases from #5589 may still fail; those are tracked separately.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable — test-only change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.