Skip to content

Commit

Permalink
Fix browserstack build names (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwood-moz authored Jan 2, 2025
1 parent cec89e8 commit f005395
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ jobs:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
project-name: 'Thunderbird Appointment'
build-name: 'Production Deployment Tests: BUILD_INFO'

- name: Run Playwright Tests on Browserstack
run: |
cd ./test/e2e
cp .env.example .env
npm run prod-sanity-test-browserstack
npm run prod-sanity-test-browserstack-gha
3 changes: 2 additions & 1 deletion .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ jobs:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
project-name: 'Thunderbird Appointment'
build-name: 'Nightly Tests: BUILD_INFO'

- name: Run Playwright Tests on Browserstack
run: |
cd ./test/e2e
cp .env.example .env
npm run prod-sanity-test-browserstack
npm run prod-sanity-test-browserstack-gha
2 changes: 1 addition & 1 deletion test/e2e/browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildName: Build
# ${BUILD_NUMBER} (Default): Generates an incremental counter with every execution
# ${DATE_TIME}: Generates a Timestamp with every execution. Eg. 05-Nov-19:30
# Read more about buildIdentifiers here -> https://www.browserstack.com/docs/automate/selenium/organize-tests
buildIdentifier: '#${BUILD_NUMBER}' # Supports strings along with either/both ${expression}
buildIdentifier: '${DATE_TIME}'

# =======================================
# Platforms (Browsers / Devices to test)
Expand Down
1 change: 1 addition & 0 deletions test/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"prod-sanity-test-ui": "npx playwright test --grep prod-sanity --project=firefox --headed",
"prod-sanity-test-debug": "npx playwright test --grep prod-sanity --project=firefox --headed --ui",
"prod-sanity-test-browserstack": "npx browserstack-node-sdk playwright test --grep prod-sanity --browserstack.buildName 'Production Sanity Test'",
"prod-sanity-test-browserstack-gha": "npx browserstack-node-sdk playwright test --grep prod-sanity",
"postinstall": "npm update browserstack-node-sdk"
},
"keywords": [],
Expand Down

0 comments on commit f005395

Please sign in to comment.