mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7576] [MERGED] test(avatars): count only the mesh avatar's own pictures in the CSP e2e #7807
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#7807
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/7576
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/avatars-2d📝 Commits (1)
0744668test(avatars): count only the mesh avatar's own pictures in the CSP e2e📊 Changes
1 file changed (+11 additions, -7 deletions)
View changed files
📝
e2e/avatar-2d.e2e.ts(+11 -7)📄 Description
Linked issue
Refs #7537 (lane: 2D, follow-up to #7549)
Why this change
Expected: 15, Received: 25. Now that #7549 is onstaging, the nightly full browser matrix can fail on it.new Image()on the page. Professor Mari's home-screen sprites (/sprites/mari/basic/*.webp) sometimes load after the first count, so they were counted as mesh pictures. The mesh avatar's own pictures (blob: URLs) were reused across every remount, as intended.What changed
e2e/avatar-2d.e2e.tsonly. The probe now keeps each image made withnew Image(), and the CSP test counts only those whosesrcis ablob:URL. mesh-avatar loads an archive's pictures that way, and the home screen never does. No app code changes.Expected: 13, Received: 52.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent on
07446689a(results as reported, not ticked):staging185fc5d99:playwright test --project=desktop-chromium e2e/avatar-2d.e2e.ts --grep "reuse their pictures" --repeat-each=3gave 1 failed and 2 passed (Expected: 15, Received: 25).--repeat-each=8on desktop-chromium: 8 passed.--project=mobile-chromium --project=mobile-webkit --repeat-each=3: 6 passed.e2e/avatar-2d.e2e.tsfile on desktop-chromium: 9 passed.mesh-avatar-renderer.tswas turned off temporarily, and the fixed test failed withExpected: 13, Received: 52. The change was reverted.pnpm check: exit 0. The only lint warning is the existing one inHomeProfessorMariChat.tsx.pnpm check:e2e-typesandprettier --check e2e/avatar-2d.e2e.ts: pass.Manual verification notes
pnpm exec playwright test -c playwright.config.ts --project=desktop-chromium e2e/avatar-2d.e2e.ts --grep "reuse their pictures" --repeat-each=5and confirm every run passes.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: no UI change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.