From af4fa5f0405c546aaea9d05da800836259f51a0c Mon Sep 17 00:00:00 2001 From: Jeff Chew Date: Thu, 20 Jan 2022 16:45:50 -0500 Subject: [PATCH] chore(browserstack): add build names to browserstack automate runs (#8069) ### Related Ticket(s) No related issue ### Description Noticed that there was no way to differentiate between the `next` and `canary` Browserstack Automate runs. This will add the appropriate build names to the corresponding scripts. ### Changelog **Changed** - add `--build-name` flag to browserstack-cypress calls --- packages/react/package.json | 4 ++-- packages/web-components/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 544b3bb1a73..b459e068c85 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -47,8 +47,8 @@ "test:e2e-storybook:test:no-percy": "start-server-and-test 'yarn test:e2e-storybook:run' 8082 'cypress run --config video=false --config-file tests/e2e-storybook/cypress.json'", "test:e2e-storybook:test:no-percy:firefox": "start-server-and-test 'yarn test:e2e-storybook:run' 8082 'cypress run --config video=false --config-file tests/e2e-storybook/cypress.json'", "test:e2e-storybook:test:no-percy:with-video": "start-server-and-test 'yarn test:e2e-storybook:run' 8082 'cypress run --config-file tests/e2e-storybook/cypress.json'", - "test:e2e-storybook:browserstack:canary": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-canary.json --sync", - "test:e2e-storybook:browserstack:next": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-next.json --sync", + "test:e2e-storybook:browserstack:canary": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-canary.json --sync --build-name 'React Storybook Canary'", + "test:e2e-storybook:browserstack:next": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-next.json --sync --build-name 'React Storybook Next'", "test:unit": "jest", "test:unit:updateSnapshot": "jest -u", "test:a11y": "gulp test:a11y || true", diff --git a/packages/web-components/package.json b/packages/web-components/package.json index fbc7c74495c..59c48da161f 100644 --- a/packages/web-components/package.json +++ b/packages/web-components/package.json @@ -79,8 +79,8 @@ "test:e2e:test": "start-server-and-test 'yarn test:e2e:run' 8080 'percy exec --config tests/e2e/.percy.json -- cypress run --config video=false --config-file tests/e2e/cypress.json'", "test:e2e:test:no-percy": "start-server-and-test 'yarn test:e2e:run' 8080 'cypress run --config video=false --config-file tests/e2e/cypress.json'", "test:e2e:test:no-percy:with-video": "start-server-and-test 'yarn test:e2e:run' 8080 'cypress run --config-file tests/e2e/cypress.json'", - "test:e2e-storybook:browserstack:canary": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-canary.json --sync", - "test:e2e-storybook:browserstack:next": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-next.json --sync", + "test:e2e-storybook:browserstack:canary": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-canary.json --sync --build-name 'Web Components Storybook Canary'", + "test:e2e-storybook:browserstack:next": "browserstack-cypress run --cf tests/e2e-storybook/browserstack.json --ccf tests/e2e-storybook/cypress-next.json --sync --build-name 'Web Components Storybook Next'", "test:e2e-storybook:run": "http-server -c-1 storybook-static --silent -p 8081", "test:e2e-storybook:dev": "cypress open --config-file ./tests/e2e-storybook/cypress-local.json", "test:e2e-storybook:test": "start-server-and-test 'yarn test:e2e-storybook:run' 8081 'percy exec --config tests/e2e-storybook/.percy.json -- cypress run --config video=false --config-file tests/e2e-storybook/cypress.json'",