From 5f98f486c6c58213c0fdb387d1d47acf3424cbc6 Mon Sep 17 00:00:00 2001 From: moilanik Date: Sun, 28 Jun 2026 06:23:55 +0300 Subject: [PATCH] cucumber kuntoon --- tests/features/step_definitions/commit-status.steps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/features/step_definitions/commit-status.steps.js b/tests/features/step_definitions/commit-status.steps.js index 3cbe24a..610c831 100644 --- a/tests/features/step_definitions/commit-status.steps.js +++ b/tests/features/step_definitions/commit-status.steps.js @@ -27,7 +27,7 @@ function bashQuiet(cmd) { } function runReportStatus(args) { - return bash(`export GITEA_API_URL="http://localhost:18080" GITEA_TOKEN="test-token-abc123" GIT_PAGES_URL="https://reports.example.com" GITHUB_REPOSITORY="test-owner/test-repo" GITHUB_SHA="abc123def456789012345678901234567890abcd" GITHUB_RUN_ID="42"; bash "${REPORT_SCRIPT}" ${args}`); + return bash(`export GITEA_API_URL="http://localhost:18080" GITEA_TOKEN="test-token-abc123" GIT_PAGES_URL="https://reports.example.com" GITHUB_REPOSITORY="test-owner/test-repo" GITHUB_REF_NAME="main" GITHUB_SHA="abc123def456789012345678901234567890abcd" GITHUB_RUN_ID="42"; bash "${REPORT_SCRIPT}" ${args}`); } function getMockBody() { @@ -57,7 +57,7 @@ When('a build step completes successfully and reports its results', function () Then('the commit shows a success status with a clickable link to the results', function () { const body = getMockBody(); if (!body.includes('"state":"success"')) throw new Error('Expected success status'); - if (!body.includes('"target_url":"https://reports.example.com/test-owner/test-repo/reports/abc123de/cucumber/"')) throw new Error('Expected URL'); + if (!body.includes('"target_url":"https://reports.example.com/test-owner/test-repo/main/abc123de/cucumber/"')) throw new Error('Expected URL'); }); When('a build step fails', function () {