Skip to content

Commit 4ad8b61

Browse files
committed
test: update npm telegram workflow expectations
1 parent 1969452 commit 4ad8b61

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

test/scripts/npm-telegram-live.test.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,28 @@ describe("npm Telegram live Docker E2E", () => {
4646

4747
expect(workflow).toContain("approve_release_manager:");
4848
expect(workflow).toContain("environment: npm-release");
49-
expect(workflow).toContain("needs: [approve_release_manager, prepare_docker_e2e_image]");
49+
expect(workflow).toContain("needs: approve_release_manager");
5050
expect(workflow).not.toContain('new Set(["admin", "write"])');
5151
expect(workflow).not.toContain("data.role_name");
5252
expect(workflow).not.toContain("github.rest.teams.listMembersInOrg");
5353
expect(workflow).not.toContain("getMembershipForUserInOrg");
5454
});
5555

56-
it("prepares and reuses a cached Docker E2E image before approval", () => {
56+
it("builds and reuses a local Docker E2E image after approval", () => {
5757
const workflow = readFileSync(WORKFLOW_PATH, "utf8");
5858

59-
expect(workflow).toContain("prepare_docker_e2e_image:");
59+
expect(workflow).not.toContain("prepare_docker_e2e_image:");
60+
expect(workflow).toContain("run_npm_telegram_beta_e2e:");
61+
expect(workflow).toContain("needs: approve_release_manager");
6062
expect(workflow).toContain("useblacksmith/setup-docker-builder");
6163
expect(workflow).toContain("useblacksmith/build-push-action");
64+
expect(workflow).toContain("tags: openclaw-docker-e2e:local");
65+
expect(workflow).toContain("load: true");
66+
expect(workflow).toContain("push: false");
6267
expect(workflow).not.toContain("cache-from: type=gha");
6368
expect(workflow).not.toContain("cache-to: type=gha");
64-
expect(workflow).toContain("needs: [approve_release_manager, prepare_docker_e2e_image]");
6569
expect(workflow).toContain('OPENCLAW_SKIP_DOCKER_BUILD: "1"');
66-
expect(workflow).toContain(
67-
"OPENCLAW_DOCKER_E2E_IMAGE: ${{ needs.prepare_docker_e2e_image.outputs.image }}",
68-
);
70+
expect(workflow).toContain("OPENCLAW_DOCKER_E2E_IMAGE: openclaw-docker-e2e:local");
6971
});
7072

7173
it("lets npm-specific credential aliases override shared QA env", () => {

0 commit comments

Comments
 (0)