From 7717cb91ae0afa632efcdcb570653706bc434f5f Mon Sep 17 00:00:00 2001 From: Claudia Tejos Date: Wed, 4 Oct 2023 15:59:31 -0300 Subject: [PATCH] fix(cypress): fix in cypress job --- packages/react/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 3fdedf4a93..e1e76ce32a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -49,13 +49,13 @@ "test:engines": "check-node-version --node $(cat ../../.nvmrc) --yarn 1.x", "test:ci": "yarn test --ci --logHeapUsage --coverage", "test:e2e:update": "cypress-image-diff -u", - "test:e2e": "cross-env BABEL_ENV='e2e' NODE_ENV='e2e' cypress run-ct --browser=chrome --headed --config video=false,screenshotOnRunFailure=false", - "test:e2e:interactive": "cross-env BABEL_ENV='e2e' NODE_ENV='e2e' cypress open-ct --browser=chrome --config video=false,screenshotOnRunFailure=false", - "test:e2e:ci": "cross-env HEIGHT=1680 WIDTH=1680 BABEL_ENV='e2e' NODE_ENV='e2e' cypress run-ct --browser=chrome --config watchForFileChanges=false --record false video=false,screenshotOnRunFailure=false", + "test:e2e": "cross-env BABEL_ENV='e2e' NODE_ENV='e2e' NODE_OPTIONS=--openssl-legacy-provider cypress run-ct --browser=chrome --headed --config video=false,screenshotOnRunFailure=false", + "test:e2e:interactive": "cross-env BABEL_ENV='e2e' NODE_ENV='e2e' NODE_OPTIONS=--openssl-legacy-provider cypress open-ct --browser=chrome --config video=false,screenshotOnRunFailure=false", + "test:e2e:ci": "cross-env HEIGHT=1680 WIDTH=1680 BABEL_ENV='e2e' NODE_ENV='e2e' NODE_OPTIONS=--openssl-legacy-provider cypress run-ct --browser=chrome --config watchForFileChanges=false --record false video=false,screenshotOnRunFailure=false", "test:e2e:images": "cd ../.. && docker-compose run --no-deps --rm react-visual-regression-tests bash -c 'cd /@ai-apps/packages/react && pwd && yarn cypress install && yarn test:e2e:ci --record=false --config video=false,screenshotOnRunFailure=false'", "test:e2e:docker:build": "cd ../.. && docker-compose up --build", "test:e2e:docker:clean": "docker system prune", - "test:sandbox": "cypress run --spec cypress/integration/codesandbox.spec.js --config supportFile=cypress/support/codesandbox.js,testFiles=*.spec.js,chromeWebSecurity=false", + "test:sandbox": "cross-env NODE_OPTIONS=--openssl-legacy-provider cypress run --spec cypress/integration/codesandbox.spec.js --config supportFile=cypress/support/codesandbox.js,testFiles=*.spec.js,chromeWebSecurity=false", "reports:clean": "rimraf .nyc_output reports", "reports:copy": "mkdir reports || true && cp cypress/coverage/coverage-final.json reports/from-cypress.json && cp jest/coverage/coverage-final.json reports/from-jest.json", "reports:combine": "mkdir .nyc_output || true && npx nyc merge reports && mv coverage.json .nyc_output/out.json && npx nyc report --check-coverage --per-file --report-dir coverage",