From 32db724752309d2f9f8c7bd3fd1a4cd35827c555 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 26 Jan 2024 01:23:30 +0530 Subject: [PATCH] Change path --- .github/workflows/e2e.yml | 5 ++--- cypress.config.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 254059dcb..e04de875c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -76,8 +76,7 @@ jobs: - name: Move runtime data if: ${{ steps.cache-snapshot.outputs.cache-hit != 'true' }} run: | - mkdir -p cypress/snapshots/runtimes - mv cypress/runtimes cypress/snapshots/runtimes/base + mv cypress/snapshots/runtimes/current cypress/snapshots/runtimes/base e2e: runs-on: ubuntu-latest @@ -206,7 +205,7 @@ jobs: if: ${{ needs.e2e.result != 'failure' && github.event_name == 'pull_request' }} run: | ls -l ./snapshots/runtimes - mv ./snapshots/runtimes ./snapshots/runtimes/head + mv ./snapshots/runtimes/current ./snapshots/runtimes/head ls -l ./snapshots/runtimes ls -l ./snapshots/runtimes/base ls -l ./snapshots/runtimes/head diff --git a/cypress.config.ts b/cypress.config.ts index 957863060..2ee4ca788 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -21,7 +21,7 @@ export default eyesPlugin( }); on('task', { recordRenderTime({ fileName, testName, timeTaken }) { - const resultsPath = path.join('cypress', 'runtimes'); + const resultsPath = path.join('cypress', 'snapshots', 'runtimes', 'current'); if (!fs.existsSync(resultsPath)) { fs.mkdirSync(resultsPath, { recursive: true }); }