From d975ec5c083e9938bbaae7c5186d3aa421ff054e Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Thu, 3 Dec 2026 01:46:56 -0500 Subject: [PATCH] Site tests: two checks no longer read Swift files that moved to ShowKit The site's test suite has failed on main since #1294 and #1296 moved AutoGainRule.swift and ChannelArmMenuItem.swift to ShowKit: two tests read them from Packages/ShowRecorderKit. Neither merge touched website/, so CI skipped the site job and stayed green, and the next website pull request fails. The two values (the -18 dBFS target, and the Arm channel and Don't arm channel names) are now written in the tests, with where they live in ShowKit. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ --- website/tests/autoGainDoc.test.ts | 4 +++- website/tests/channelArmingCopy.test.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/website/tests/autoGainDoc.test.ts b/website/tests/autoGainDoc.test.ts index 83a51445..f726e4bb 100644 --- a/website/tests/autoGainDoc.test.ts +++ b/website/tests/autoGainDoc.test.ts @@ -34,7 +34,9 @@ describe("the auto-gain docs page", () => { }); it("names the same target level as the auto-gain rule", () => { - const target = swift("Packages/ShowRecorderKit/Sources/AutoGain/AutoGainRule.swift").match(/targetDbfs: Double = (-?\d+)/)![1]; + // The rule moved to ShowKit (#1294), which this repo doesn't hold as source, so its value is written here: + // `targetDbfs: Double = -18` in ShowKit's Sources/AutoGain/AutoGainRule.swift (ShowKit 0.2.0). Change both. + const target = "-18"; expect(page()).toContain(`${target} dBFS`); }); diff --git a/website/tests/channelArmingCopy.test.ts b/website/tests/channelArmingCopy.test.ts index 427c2582..2cc21ceb 100644 --- a/website/tests/channelArmingCopy.test.ts +++ b/website/tests/channelArmingCopy.test.ts @@ -32,9 +32,9 @@ describe("choosing which channels record", () => { }); it("uses the app's own words for the menu and the header", () => { - const item = swift("Packages/ShowRecorderKit/Sources/Recording/ChannelArmMenuItem.swift"); + // The menu item moved to ShowKit (#1296), which this repo doesn't hold as source, so its two names are written + // here: `accessibilityName` in ShowKit's Sources/Meters/ChannelArmMenuItem.swift (ShowKit 0.2.0). Change both. for (const name of ["Don't arm channel", "Arm channel"]) { - expect(item).toContain(`"${name}"`); expect(page()).toContain(`**${name} 5**`); } const state = swift("Packages/ShowRecorderKit/Sources/Recording/RecordScreenState.swift");