Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix browserstack session name #812

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading