-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from DEFRA/BAU-move-flaky-tests-to-own-test-runs
BAU: move iOS tests into their own run
- Loading branch information
Showing
6 changed files
with
92 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Browserstack extended tests (desktop) | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ "Publish" ] | ||
types: | ||
- completed | ||
|
||
env: | ||
AWS_REGION: eu-west-2 | ||
AWS_ACCOUNT_ID: "094954420758" | ||
|
||
concurrency: | ||
group: browserstack-extended-tests-desktop | ||
|
||
jobs: | ||
build: | ||
name: CDP-build-workflow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Start docker compose | ||
run: | | ||
docker compose up --wait-timeout 300 -d --quiet-pull | ||
- name: Browserstack tests | ||
run: | | ||
npm ci | ||
npm run user-journey-test:bs-extended-desktop | ||
env: | ||
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }} | ||
BROWSERSTACK_KEY: ${{ secrets.BROWSERSTACK_KEY }} | ||
|
||
- name: cleanup | ||
if: always() | ||
run: docker compose down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
user-journey-tests/wdio.browserstack.extended-desktop.conf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { config as browserstackBaseConfig } from './wdio.browserstack.conf.js' | ||
|
||
// These capabilities should run as an extended test after publishing | ||
export const config = { | ||
...browserstackBaseConfig, | ||
maxInstances: 4, | ||
capabilities: [ | ||
{ | ||
browserName: 'Chrome', | ||
'bstack:options': { | ||
browserVersion: 'latest', | ||
os: 'Windows', | ||
osVersion: '10', | ||
sessionName: 'windows-chrome' | ||
} | ||
}, | ||
{ | ||
browserName: 'Firefox', | ||
'bstack:options': { | ||
browserVersion: 'latest', | ||
os: 'Windows', | ||
osVersion: '10', | ||
sessionName: 'windows-firefox' | ||
} | ||
}, | ||
{ | ||
browserName: 'Chrome', | ||
'bstack:options': { | ||
browserVersion: 'latest', | ||
os: 'OS X', | ||
osVersion: 'Monterey', | ||
sessionName: 'osx-chrome' | ||
} | ||
}, | ||
{ | ||
browserName: 'Firefox', | ||
'bstack:options': { | ||
browserVersion: 'latest', | ||
os: 'OS X', | ||
osVersion: 'Monterey', | ||
sessionName: 'osx-firefox' | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters