mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7833] [MERGED] test(e2e): keep browser test runs silent #7957
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#7957
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/7833
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:test/silent-e2e📝 Commits (1)
5c32039test(e2e): keep browser test runs silent📊 Changes
4 files changed (+146 additions, -6 deletions)
View changed files
➕
e2e/silent-test-audio.e2e.ts(+76 -0)📝
e2e/ui-state-fixture.ts(+65 -2)📝
playwright.config.ts(+3 -2)📝
playwright.multiplayer.config.ts(+2 -2)📄 Description
Linked issue
No issue was filed; @SpicyMarinara asked for this directly, after hearing the test apps through her speakers while agents ran Playwright. One can be opened if a tracking issue is wanted.
Why this change
mobile-webkitproject) on macOS plays sound through the speakers, and every test reply set off the notification ping, since those sounds default on. Speech, music and game sound effects could play too.--disable-audio-output). WebKit has no such switch, so the fix has to live in the shared test fixture.What changed
seedUIState(ine2e/ui-state-fixture.ts, used by nearly every spec and by the shared game and production openers) now turns the three reply pings (Conversation, Roleplay, Game) off by default, like its existing surprise-visit and holiday-theme defaults. A spec that tests the pings still turns them on, astranslation-notificationsalready does.seedUIStatecall for a browser context also adds a script that runs before the app in every page of that context, including pages a test opens later:mutedset. Readingmutedstill returns what the app or test set, soplay(), its events and existingplay()spies behave as before.destinationgoes through one zero-gain node per context. The call still returnsdestination, and offline contexts are left alone.--mute-audioas well.playwright.production.config.tsinherits the base config's projects, so its runs get the flag too.playwright.multiplayer.config.tsadds it to its two Chromium projects. No Firefox projects exist.e2e/silent-test-audio.e2e.tschecks the following on every project:<audio>and an autoplaying one are muted by the browser, whilemutedstill readsfalse.speechSynthesisshim, because the client never callsspeechSynthesis.volumeis left alone, sincemutedalready silences the element and the app's volume reads and fades stay unchanged.seedUIState(local-notifications, a few deliberately unseeded fresh contexts, the multiplayer guest view) are not covered on WebKit. None of them play audio.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for the reviewer to confirm, not ticked):
pnpm checkexited 0.pnpm smoke:production(playwright.production.config.ts) passed on desktop-chromium.e2e/silent-test-audio.e2e.tspassed on desktop-chromium, mobile-chromium and mobile-webkit. With the fixture's script registration disabled, it failed on desktop-chromium as expected: the browser had not muted the media and the app's gain node reached the speakers.tts-mobile-playback,tts-pcm-settings,tts-request-timeout,scene-tts-preferences,translation-notifications,chat-window-introandgame-world-art. They also covered the TTS, voice, Music Player, sound-command, Soundtrack, VN speech, ambient and notification-position tests incore-flows,roleplay-commands,roleplay-vn,ux-feedback-sweepandchat-sweep.Manual verification notes
mobile-webkiton a Mac with the speakers on, such aspnpm exec playwright test e2e/translation-notifications.e2e.ts e2e/tts-mobile-playback.e2e.ts --project=mobile-webkit. Confirm nothing is heard and they pass.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. This only changes test infrastructure.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.