@@ -31,6 +31,8 @@ const DOCTOR_SWITCH_DOCKER_E2E_PATH = "scripts/e2e/doctor-install-switch-docker.
|
31 | 31 | const DOCTOR_SWITCH_SCENARIO_PATH = "scripts/e2e/lib/doctor-install-switch/scenario.sh"; |
32 | 32 | const PACKAGE_COMPAT_PATH = "scripts/e2e/lib/package-compat.mjs"; |
33 | 33 | const UPDATE_CHANNEL_SWITCH_DOCKER_E2E_PATH = "scripts/e2e/update-channel-switch-docker.sh"; |
| 34 | +const UPDATE_CHANNEL_SWITCH_ASSERTIONS_PATH = |
| 35 | +"scripts/e2e/lib/update-channel-switch/assertions.mjs"; |
34 | 36 | const CENTRALIZED_BUILD_SCRIPTS = [ |
35 | 37 | "scripts/docker/setup.sh", |
36 | 38 | "scripts/e2e/browser-cdp-snapshot-docker.sh", |
@@ -145,9 +147,11 @@ describe("docker build helper", () => {
|
145 | 147 | const pluginUpdateScenario = readFileSync(PLUGIN_UPDATE_SCENARIO_PATH, "utf8"); |
146 | 148 | const pluginUpdateProbe = readFileSync(PLUGIN_UPDATE_PROBE_PATH, "utf8"); |
147 | 149 | const packageCompat = readFileSync(PACKAGE_COMPAT_PATH, "utf8"); |
| 150 | +const updateChannelAssertions = readFileSync(UPDATE_CHANNEL_SWITCH_ASSERTIONS_PATH, "utf8"); |
148 | 151 | const scripts = [ |
149 | 152 | doctorScenario, |
150 | 153 | updateChannel, |
| 154 | +updateChannelAssertions, |
151 | 155 | pluginsSweep, |
152 | 156 | pluginsMarketplace, |
153 | 157 | pluginsClawhub, |
@@ -173,7 +177,8 @@ describe("docker build helper", () => {
|
173 | 177 | expect(scripts.join("\n")).toContain( |
174 | 178 | "Package $package_version must support gateway install --wrapper.", |
175 | 179 | ); |
176 | | -expect(scripts.join("\n")).toContain("expected persisted update.channel dev"); |
| 180 | +expect(updateChannel).toContain("assert-config-channel dev"); |
| 181 | +expect(updateChannelAssertions).toContain("expected persisted update.channel ${channel}"); |
177 | 182 | expect(pluginsAssertions).toContain("expected modern installRecords in installed plugin index"); |
178 | 183 | }); |
179 | 184 | |
|