diff --git a/.circleci/config.yml b/.circleci/config.yml index b5259168ea40..445608a1fc38 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -198,7 +198,7 @@ jobs: command: yarn test:e2e-framework --clean --all --skip angular11 --skip angular --skip vue3 --skip web_components_typescript --skip cra no_output_timeout: 5m - store_artifacts: - path: /tmp/storybook/cypress + path: /tmp/cypress-record destination: cypress e2e-tests-core: executor: @@ -224,7 +224,7 @@ jobs: command: yarn test:e2e-framework vue3 angular angular11 web_components_typescript web_components_lit2 no_output_timeout: 5m - store_artifacts: - path: /tmp/storybook/cypress + path: /tmp/cypress-record destination: cypress cra-bench: executor: @@ -271,7 +271,7 @@ jobs: name: run e2e tests command: yarn test:e2e-framework --pnp sfcVue cra - store_artifacts: - path: /tmp/storybook/cypress + path: /tmp/cypress-record destination: cypress e2e-tests-examples: executor: @@ -293,7 +293,7 @@ jobs: name: cypress run command: yarn test:e2e-examples - store_artifacts: - path: /tmp/storybook/cypress + path: /tmp/cypress-record destination: cypress smoke-tests: executor: diff --git a/scripts/run-e2e.ts b/scripts/run-e2e.ts index 1148b68e1682..ad69a4917573 100644 --- a/scripts/run-e2e.ts +++ b/scripts/run-e2e.ts @@ -53,10 +53,10 @@ const serveStorybook = async ({ cwd }: Options, port: string) => { return serve(staticDirectory, port); }; -const runCypress = async (location: string) => { +const runCypress = async (location: string, name: string) => { const cypressCommand = openCypressInUIMode ? 'open' : 'run'; await exec( - `yarn cypress ${cypressCommand} --config pageLoadTimeout=4000,execTimeout=4000,taskTimeout=4000,responseTimeout=4000,integrationFolder="cypress/generated" --env location="${location}"`, + `yarn cypress ${cypressCommand} --config pageLoadTimeout=4000,execTimeout=4000,taskTimeout=4000,responseTimeout=4000,defaultCommandTimeout=4000,integrationFolder="cypress/generated",videosFolder="/tmp/cypress-record/${name}" --env location="${location}"`, { cwd: rootDir }, { startMessage: `🤖 Running Cypress tests`, @@ -115,7 +115,7 @@ const runTests = async ({ name, ...rest }: Parameters) => { logger.log(); try { - await runCypress('http://localhost:4000'); + await runCypress('http://localhost:4000', name); logger.info(`🎉 Storybook is working great with ${name}!`); } catch (e) { logger.info(`🥺 Storybook has some issues with ${name}!`);