From d9331d3c5ddc92414406da0759cccac7fe96ef41 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 30 Nov 2023 17:23:25 -0500 Subject: [PATCH] Clean up how Cypress tests are run * Remove replay and ensure that we don't send tests to Cypress Cloud for Dependabot PRs --- .github/workflows/cypress-matrix.yml | 25 +- .github/workflows/cypress-tests-beta.yml | 115 +++++++ .github/workflows/cypress-tests.yml | 24 +- cypress.config.js | 4 - package-lock.json | 396 ----------------------- package.json | 6 +- 6 files changed, 127 insertions(+), 443 deletions(-) create mode 100644 .github/workflows/cypress-tests-beta.yml diff --git a/.github/workflows/cypress-matrix.yml b/.github/workflows/cypress-matrix.yml index 0bcd79c7..dc5b01f2 100644 --- a/.github/workflows/cypress-matrix.yml +++ b/.github/workflows/cypress-matrix.yml @@ -114,27 +114,12 @@ jobs: run: npx wp-env start --debug - name: Run Cypress Tests - env: - RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} - if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || env.RECORD_REPLAY_API_KEY == '' }} - run: npx cypress run + if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || github.actor == 'dependabot[bot]' }} + run: npm run test:e2e -- --browser chrome - - name: Run Cypress Tests - uses: replayio/action-cypress@v0.3.1 - env: - RECORD_REPLAY_METADATA_TEST_RUN_TITLE: "php-${{ matrix.phpVersion }}, wp-${{ matrix.wpVersion }}" - RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} - if: ${{ github.repository == 'newfold-labs/wp-plugin-hostgator' && env.RECORD_REPLAY_API_KEY != '' }} - with: - api-key: ${{ secrets.RECORD_REPLAY_API_KEY }} - browser: 'replay-chromium' - command: npm run test:e2e -- --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag hostgator,php-${{ matrix.phpVersion }},wp-${{ matrix.wpVersion }} - upload-all: false - - - name: List Replays - if: always() - shell: bash - run: npx @replayio/replay ls --json + - name: Run Cypress Cloud Tests + if: ${{ github.repository == 'newfold-labs/wp-plugin-hostgator' && github.actor != 'dependabot[bot]' }} + run: npm run test:e2e -- --browser chrome --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag "hostgator,php-${{ matrix.phpVersion }},wp-${{ matrix.wpVersion }}" - name: Store screenshots of test failures if: ${{ failure() }} diff --git a/.github/workflows/cypress-tests-beta.yml b/.github/workflows/cypress-tests-beta.yml new file mode 100644 index 00000000..96dbb35f --- /dev/null +++ b/.github/workflows/cypress-tests-beta.yml @@ -0,0 +1,115 @@ +name: Cypress Tests Beta Only + +on: + schedule: + # Runs "Every Monday 6am UTC" + - cron: '0 6 * * 1' + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +jobs: + test: + name: Run Cypress Beta Only Tests + runs-on: ubuntu-latest + timeout-minutes: 45 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + coverage: none + tools: composer, cs2pr + + - name: Setup workflow context + id: workflow + working-directory: ${{ runner.temp }} + env: + REPO: ${{ github.repository }} + run: | + mkdir dist + echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT + echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT + - name: Use Node.js 16.x + uses: actions/setup-node@v4 + with: + node-version: 16.x + cache: 'npm' + + - name: Get Composer cache directory + id: composer-cache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + + - name: Cache Composer vendor directory + uses: actions/cache@v3 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - name: Show versions + run: | + php --version + composer --version + node --version + npm --version + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install PHP Dependencies + run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist + + - name: Setup Registry + run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> .npmrc + + - name: NPM Install + run: npm install --legacy-peer-deps + + - name: Build JavaScript + run: npm run build + + - name: Create Distribution Copy + run: rsync -r --include-from=.distinclude --exclude-from=.distignore . ${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }} + + - name: List Distribution Files + working-directory: ${{ steps.workflow.outputs.DIST }} + run: find . + + - name: Fetch WordPress beta version + run: | + wp_beta_zip=$(node -e " + const fetch = require('node-fetch'); + fetch('https://api.wordpress.org/core/version-check/1.7/?channel=beta') + .then(response => response.json()) + .then(data => data.offers[0].download); + ") + echo $wp_beta_zip + + - name: Configure WordPress + run: | + echo '{ "core" : "'"${wp_beta_zip}"'" , "plugins":[ "${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}" ] }' > .wp-env.override.json + + - name: Install WordPress + run: npx wp-env start --debug + + - name: Run Cypress Tests + if: ${{ github.repository == 'newfold-labs/wp-plugin-hostgator' }} + run: npm run test:e2e -- --browser chrome --tag "hostgator, wp-beta" + + - name: Store screenshots of test failures + if: failure() + uses: actions/upload-artifact@v3 + with: + name: screenshots + path: ./tests/cypress/screenshots + + - name: Output debug.log file contents + if: always() + continue-on-error: true + run: npx wp-env run wordpress "cat /var/www/html/wp-content/debug.log" diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index f9a628a1..37f7911b 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -112,26 +112,12 @@ jobs: run: npx @wordpress/env@latest start - name: Run Cypress Tests - env: - RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} - if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || env.RECORD_REPLAY_API_KEY == '' }} - run: npx cypress run + if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || github.actor == 'dependabot[bot]' }} + run: npm run test:e2e -- --browser chrome - - name: Run Cypress Tests - uses: replayio/action-cypress@v0.3.1 - env: - RECORD_REPLAY_API_KEY: ${{ secrets.RECORD_REPLAY_API_KEY }} - if: ${{ github.repository == 'newfold-labs/wp-plugin-hostgator' && env.RECORD_REPLAY_API_KEY != '' }} - with: - api-key: ${{ secrets.RECORD_REPLAY_API_KEY }} - browser: 'replay-chromium' - command: npm run test:e2e -- --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag hostgator - upload-all: false - - - name: List Replays - if: always() - shell: bash - run: npx @replayio/replay ls --json + - name: Run Cypress Cloud Tests + if: ${{ github.repository == 'newfold-labs/wp-plugin-hostgator' && github.actor != 'dependabot[bot]' }} + run: npm run test:e2e -- --browser chrome --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --tag hostgator - name: Store screenshots of test failures if: ${{ failure() }} diff --git a/cypress.config.js b/cypress.config.js index 24559b07..60d7d105 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -1,5 +1,4 @@ const { defineConfig } = require('cypress') -const cypressReplay = require("@replayio/cypress") const { phpVersion, core } = require('./.wp-env.json') const wpVersion = /[^/]*$/.exec(core)[0] @@ -30,9 +29,6 @@ module.exports = defineConfig({ // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { - // Setup Replay - cypressReplay.default(on, config); - return require('./tests/cypress/plugins/index.js')(on, config) }, baseUrl: 'http://localhost:8880', diff --git a/package-lock.json b/package-lock.json index 15b82988..6a7c8415 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,6 @@ }, "devDependencies": { "@automattic/babel-plugin-preserve-i18n": "^1.0.0", - "@replayio/cypress": "^1.7.6", "@tailwindcss/forms": "^0.5.7", "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^8.11.0", @@ -3606,100 +3605,6 @@ "node": ">=14.0.0" } }, - "node_modules/@replayio/cypress": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@replayio/cypress/-/cypress-1.7.6.tgz", - "integrity": "sha512-jWHh5Q2UcaGQ/ghe7RMJlR/vfpAW9995dohxIRTB/laywiB2Bfk/Y/D/ZR+0MYV1Kx8XsXkOQRYDCx1F2cp0Cw==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@replayio/replay": "^0.19.4", - "@replayio/test-utils": "^1.3.6", - "chalk": "^4.1.2", - "debug": "^4.3.4", - "semver": "^7.5.2", - "terminate": "^2.6.1", - "txml": "^3.2.5", - "uuid": "^8.3.2", - "ws": "^8.14.2" - }, - "bin": { - "replayio-cypress": "bin/replayio-cypress.js" - }, - "peerDependencies": { - "cypress": ">=5.3.0" - } - }, - "node_modules/@replayio/replay": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@replayio/replay/-/replay-0.19.4.tgz", - "integrity": "sha512-T8XlT4jKVoQgPGNieYz3C++IowUVXWjqTMWNMcPrv0368h7MTTKrvnKCTTNmeDFXW819AeCRcCi+Xvgra2OzmQ==", - "dev": true, - "dependencies": { - "@replayio/sourcemap-upload": "^1.1.1", - "commander": "^7.2.0", - "debug": "^4.3.4", - "is-uuid": "^1.0.2", - "jsonata": "^1.8.6", - "node-fetch": "^2.6.8", - "p-map": "^4.0.0", - "superstruct": "^0.15.4", - "text-table": "^0.2.0", - "ws": "^7.5.0" - }, - "bin": { - "replay": "bin/replay.js" - } - }, - "node_modules/@replayio/replay/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/@replayio/sourcemap-upload": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@replayio/sourcemap-upload/-/sourcemap-upload-1.1.1.tgz", - "integrity": "sha512-XcJmyi2lxVUv/OuCC4GS7SFDrwViObw5czLy2pz7i2AAHFdFQJxTSqnNnw00m7ocUBdgcn/P0DzKHeRvTgPx4w==", - "dev": true, - "dependencies": { - "commander": "^7.2.0", - "debug": "^4.3.1", - "glob": "^7.1.6", - "node-fetch": "^2.6.1", - "string.prototype.matchall": "^4.0.5" - }, - "engines": { - "node": ">=10.13" - } - }, - "node_modules/@replayio/test-utils": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/@replayio/test-utils/-/test-utils-1.3.6.tgz", - "integrity": "sha512-GBcMwLyqqPkODtgyyy5/j3BPqcUqquHgAszbUlbCwWvgBc1TfUgNg9yrBCa5cR5tcdLE9m/h1taxEAqs2MKO8Q==", - "dev": true, - "dependencies": { - "@replayio/replay": "^0.19.4", - "debug": "^4.3.4", - "node-fetch": "^2.6.7", - "uuid": "^8.3.2" - } - }, "node_modules/@sentry/core": { "version": "6.19.7", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.7.tgz", @@ -11355,21 +11260,6 @@ "node": ">= 0.6" } }, - "node_modules/event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==", - "dev": true, - "dependencies": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, "node_modules/eventemitter2": { "version": "6.4.7", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.7.tgz", @@ -12140,12 +12030,6 @@ "node": ">= 0.6" } }, - "node_modules/from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==", - "dev": true - }, "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", @@ -13809,12 +13693,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-uuid": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-uuid/-/is-uuid-1.0.2.tgz", - "integrity": "sha512-tCByphFcJgf2qmiMo5hMCgNAquNSagOetVetDvBXswGkNfoyEMvGH1yDlF8cbZbKnbVBr4Y5/rlpMz9umxyBkQ==", - "dev": true - }, "node_modules/is-weakmap": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", @@ -15164,15 +15042,6 @@ "node": ">=6" } }, - "node_modules/jsonata": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/jsonata/-/jsonata-1.8.6.tgz", - "integrity": "sha512-ZH2TPYdNP2JecOl/HvrH47Xc+9imibEMQ4YqKy/F/FrM+2a6vfbGxeCX23dB9Fr6uvGwv+ghf1KxWB3iZk09wA==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, "node_modules/jsonc-parser": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", @@ -15814,12 +15683,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==", - "dev": true - }, "node_modules/map-values": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-values/-/map-values-1.0.1.tgz", @@ -17441,15 +17304,6 @@ "node": ">=8" } }, - "node_modules/pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", - "dev": true, - "dependencies": { - "through": "~2.3" - } - }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -18556,21 +18410,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ps-tree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", - "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", - "dev": true, - "dependencies": { - "event-stream": "=3.3.4" - }, - "bin": { - "ps-tree": "bin/ps-tree.js" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -20699,18 +20538,6 @@ "node": ">=8.0" } }, - "node_modules/split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", - "dev": true, - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" - } - }, "node_modules/sprintf-js": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", @@ -20823,15 +20650,6 @@ "node": ">= 0.4" } }, - "node_modules/stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==", - "dev": true, - "dependencies": { - "duplexer": "~0.1.1" - } - }, "node_modules/streamx": { "version": "2.15.5", "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.5.tgz", @@ -21262,12 +21080,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/superstruct": { - "version": "0.15.5", - "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.15.5.tgz", - "integrity": "sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==", - "dev": true - }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -21559,18 +21371,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/terminate": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/terminate/-/terminate-2.6.1.tgz", - "integrity": "sha512-0kdr49oam98yvjkVY+gfUaT3SMaJI6Sc+yijJjU+qhat+0NQKQn60OsIZZeKyVgTO0/33nRa3HowRbpw3A7u9A==", - "dev": true, - "dependencies": { - "ps-tree": "^1.2.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/terser": { "version": "5.24.0", "resolved": "https://registry.npmjs.org/terser/-/terser-5.24.0.tgz", @@ -21744,16 +21544,6 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "node_modules/through2": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", - "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", - "dev": true, - "dependencies": { - "inherits": "^2.0.4", - "readable-stream": "2 || 3" - } - }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -22014,15 +21804,6 @@ "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", "dev": true }, - "node_modules/txml": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/txml/-/txml-3.2.5.tgz", - "integrity": "sha512-AtN8AgJLiDanttIXJaQlxH8/R0NOCNwto8kcO7BaxdLgsN9b7itM9lnTD7c2O3TadP+hHB9j7ra5XGFRPNnk/g==", - "dev": true, - "dependencies": { - "through2": "^3.0.1" - } - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -25962,74 +25743,6 @@ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.13.0.tgz", "integrity": "sha512-5dMOnVnefRsl4uRnAdoWjtVTdh8e6aZqgM4puy9nmEADH72ck+uXwzpJLEKE9Q6F8ZljNewLgmTfkxUrBdv4WA==" }, - "@replayio/cypress": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@replayio/cypress/-/cypress-1.7.6.tgz", - "integrity": "sha512-jWHh5Q2UcaGQ/ghe7RMJlR/vfpAW9995dohxIRTB/laywiB2Bfk/Y/D/ZR+0MYV1Kx8XsXkOQRYDCx1F2cp0Cw==", - "dev": true, - "requires": { - "@replayio/replay": "^0.19.4", - "@replayio/test-utils": "^1.3.6", - "chalk": "^4.1.2", - "debug": "^4.3.4", - "semver": "^7.5.2", - "terminate": "^2.6.1", - "txml": "^3.2.5", - "uuid": "^8.3.2", - "ws": "^8.14.2" - } - }, - "@replayio/replay": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@replayio/replay/-/replay-0.19.4.tgz", - "integrity": "sha512-T8XlT4jKVoQgPGNieYz3C++IowUVXWjqTMWNMcPrv0368h7MTTKrvnKCTTNmeDFXW819AeCRcCi+Xvgra2OzmQ==", - "dev": true, - "requires": { - "@replayio/sourcemap-upload": "^1.1.1", - "commander": "^7.2.0", - "debug": "^4.3.4", - "is-uuid": "^1.0.2", - "jsonata": "^1.8.6", - "node-fetch": "^2.6.8", - "p-map": "^4.0.0", - "superstruct": "^0.15.4", - "text-table": "^0.2.0", - "ws": "^7.5.0" - }, - "dependencies": { - "ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true - } - } - }, - "@replayio/sourcemap-upload": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@replayio/sourcemap-upload/-/sourcemap-upload-1.1.1.tgz", - "integrity": "sha512-XcJmyi2lxVUv/OuCC4GS7SFDrwViObw5czLy2pz7i2AAHFdFQJxTSqnNnw00m7ocUBdgcn/P0DzKHeRvTgPx4w==", - "dev": true, - "requires": { - "commander": "^7.2.0", - "debug": "^4.3.1", - "glob": "^7.1.6", - "node-fetch": "^2.6.1", - "string.prototype.matchall": "^4.0.5" - } - }, - "@replayio/test-utils": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/@replayio/test-utils/-/test-utils-1.3.6.tgz", - "integrity": "sha512-GBcMwLyqqPkODtgyyy5/j3BPqcUqquHgAszbUlbCwWvgBc1TfUgNg9yrBCa5cR5tcdLE9m/h1taxEAqs2MKO8Q==", - "dev": true, - "requires": { - "@replayio/replay": "^0.19.4", - "debug": "^4.3.4", - "node-fetch": "^2.6.7", - "uuid": "^8.3.2" - } - }, "@sentry/core": { "version": "6.19.7", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.7.tgz", @@ -31901,21 +31614,6 @@ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "dev": true }, - "event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==", - "dev": true, - "requires": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, "eventemitter2": { "version": "6.4.7", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.7.tgz", @@ -32531,12 +32229,6 @@ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", "dev": true }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==", - "dev": true - }, "fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", @@ -33712,12 +33404,6 @@ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", "dev": true }, - "is-uuid": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-uuid/-/is-uuid-1.0.2.tgz", - "integrity": "sha512-tCByphFcJgf2qmiMo5hMCgNAquNSagOetVetDvBXswGkNfoyEMvGH1yDlF8cbZbKnbVBr4Y5/rlpMz9umxyBkQ==", - "dev": true - }, "is-weakmap": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", @@ -34765,12 +34451,6 @@ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, - "jsonata": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/jsonata/-/jsonata-1.8.6.tgz", - "integrity": "sha512-ZH2TPYdNP2JecOl/HvrH47Xc+9imibEMQ4YqKy/F/FrM+2a6vfbGxeCX23dB9Fr6uvGwv+ghf1KxWB3iZk09wA==", - "dev": true - }, "jsonc-parser": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", @@ -35266,12 +34946,6 @@ "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", "dev": true }, - "map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==", - "dev": true - }, "map-values": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-values/-/map-values-1.0.1.tgz", @@ -36515,15 +36189,6 @@ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" }, - "pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", - "dev": true, - "requires": { - "through": "~2.3" - } - }, "pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -37227,15 +36892,6 @@ "integrity": "sha512-OPS9kEJYVmiO48u/B9qneqhkMvgCxT+Tm28VCEJpheTpl8cJ0ffZRRNgS5mrQRTrX5yRTpaJ+hRDeefXYmmorQ==", "dev": true }, - "ps-tree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", - "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", - "dev": true, - "requires": { - "event-stream": "=3.3.4" - } - }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -38847,15 +38503,6 @@ "jpeg-js": "^0.4.1" } }, - "split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", - "dev": true, - "requires": { - "through": "2" - } - }, "sprintf-js": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", @@ -38949,15 +38596,6 @@ "internal-slot": "^1.0.4" } }, - "stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==", - "dev": true, - "requires": { - "duplexer": "~0.1.1" - } - }, "streamx": { "version": "2.15.5", "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.5.tgz", @@ -39298,12 +38936,6 @@ } } }, - "superstruct": { - "version": "0.15.5", - "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.15.5.tgz", - "integrity": "sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==", - "dev": true - }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -39532,15 +39164,6 @@ "supports-hyperlinks": "^2.0.0" } }, - "terminate": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/terminate/-/terminate-2.6.1.tgz", - "integrity": "sha512-0kdr49oam98yvjkVY+gfUaT3SMaJI6Sc+yijJjU+qhat+0NQKQn60OsIZZeKyVgTO0/33nRa3HowRbpw3A7u9A==", - "dev": true, - "requires": { - "ps-tree": "^1.2.0" - } - }, "terser": { "version": "5.24.0", "resolved": "https://registry.npmjs.org/terser/-/terser-5.24.0.tgz", @@ -39670,16 +39293,6 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "through2": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", - "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", - "dev": true, - "requires": { - "inherits": "^2.0.4", - "readable-stream": "2 || 3" - } - }, "thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -39886,15 +39499,6 @@ "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", "dev": true }, - "txml": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/txml/-/txml-3.2.5.tgz", - "integrity": "sha512-AtN8AgJLiDanttIXJaQlxH8/R0NOCNwto8kcO7BaxdLgsN9b7itM9lnTD7c2O3TadP+hHB9j7ra5XGFRPNnk/g==", - "dev": true, - "requires": { - "through2": "^3.0.1" - } - }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/package.json b/package.json index 3272e947..71af3ed8 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,9 @@ "react-error-boundary": "^4.0.11", "react-router-dom": "^6.20.0", "react-use": "^17.4.1" - }, + }, "devDependencies": { "@automattic/babel-plugin-preserve-i18n": "^1.0.0", - "@replayio/cypress": "^1.7.6", "@tailwindcss/forms": "^0.5.7", "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^8.11.0", @@ -49,7 +48,6 @@ "create:dist": "rsync -r --include-from=.distinclude --exclude-from=.distignore . ./wp-plugin-hostgator", "create:zip": "cd ./wp-plugin-hostgator && zip -r -9 ../wp-plugin-hostgator.zip . && ls -lh ../wp-plugin-hostgator.zip", "cypress": "npm cypress open", - "cypress:record": "RECORD_ALL_CONTENT=1 RECORD_REPLAY_METADATA_FILE=$(mktemp) npx cypress run --browser 'Replay Chromium'", "develop": "npm run start", "develop:analyzer": "npm run start:analyzer", "format": "wp-scripts format ./src", @@ -77,4 +75,4 @@ "test:e2e": "npx cypress run", "test:unit": "wp-scripts test-unit-js" } -} +} \ No newline at end of file