From 2e0333d18551af7a24a368eb535d14618940e676 Mon Sep 17 00:00:00 2001 From: Ben Teichman Date: Mon, 25 Mar 2024 12:10:44 -0400 Subject: [PATCH] feat: add federated e2e test job (DX-1592) --- src/jobs/e2e/run-federated-e2e-tests.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/jobs/e2e/run-federated-e2e-tests.yml diff --git a/src/jobs/e2e/run-federated-e2e-tests.yml b/src/jobs/e2e/run-federated-e2e-tests.yml new file mode 100644 index 00000000..28670b23 --- /dev/null +++ b/src/jobs/e2e/run-federated-e2e-tests.yml @@ -0,0 +1,38 @@ +executor: smoke-executor +parallelism: 4 + +parameters: + e2e-env-name: + type: string + default: "" + target-url: + type: string + default: "" + description: "use this to override the e2e-env-name and set the full creator-app URL" +steps: + # in the future this will be driven by a configuration file likely in some github repo + # for now we are just executing the `test:e2e` job on `creator-app + + - clone_repo: + github_repo_name: creator-app + github_commit: master + path_to_clone: ~/project + - install_node_modules: + avoid_post_install_scripts: false + cache_prefix: e2e-test + - run: + name: Run E2E Tests + environment: + CREATOR_APP_URL: << parameters.target-url >><<^ parameters.target-url >>https://creator-<< parameters.e2e-env-name >>.br.development.voiceflow.com<> + command: yarn test:e2e + - store_test_results: + path: test/e2e-test/cypress/results + - store_artifacts: + path: test/e2e-test/cypress/downloads + destination: downloads + - store_artifacts: + path: test/e2e-test/cypress/videos + destination: videos + - store_artifacts: + path: test/e2e-test/cypress/screenshots + destination: screenshots