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");