From 252ebb1d8341baa1bc005d9af0dc48eece671f54 Mon Sep 17 00:00:00 2001 From: mxkae Date: Fri, 7 Feb 2025 23:33:00 +0800 Subject: [PATCH] update report url --- .github/workflows/playwright.yml | 2 +- e2e/config/reporter.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index dc2c6a6e8..83a989876 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -97,4 +97,4 @@ jobs: if: ${{ !cancelled() && steps.run-playwright-tests.outcome == 'failure' }} run: | echo "${{ steps.mto.outputs.body }}" >> $GITHUB_STEP_SUMMARY - echo "Report: [playwright-report-php_${{ matrix.php_version }}-wp_${{ env.WP_VERSION }}-${{ env.VERSION_SUFFIX }}.zip](${{ steps.artifact-upload-step.outcome.artifact-url}})" >> $GITHUB_STEP_SUMMARY + echo "Report: [playwright-report-php_${{ matrix.php_version }}-wp_${{ env.WP_VERSION }}-${{ env.VERSION_SUFFIX }}.zip](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }})" >> $GITHUB_STEP_SUMMARY diff --git a/e2e/config/reporter.ts b/e2e/config/reporter.ts index 73fb32125..7fdeb93df 100644 --- a/e2e/config/reporter.ts +++ b/e2e/config/reporter.ts @@ -4,7 +4,7 @@ import type { Reporter, Suite, TestCase, } from '@playwright/test/reporter' -import { ansiRegex, ms } from 'e2e/test-utils' +import { ms } from 'e2e/test-utils' import fs from 'fs' import path from 'path' @@ -23,10 +23,6 @@ class StkReporter implements Reporter { this.failedTestErrors = [] } - stripAnsiEscapes( str: string ): string { - return str.replace( ansiRegex, '' ) - } - cleanupFolder() { const folderPath = path.resolve( this.outputFolder )