Skip to content

Commit

Permalink
updated config and workflow files
Browse files Browse the repository at this point in the history
updated config and workflow files
  • Loading branch information
amauch-adobe committed Dec 17, 2023
1 parent 22b4e95 commit 761925b
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 55 deletions.
1 change: 1 addition & 0 deletions .github/workflows/saucelabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
IMS_EMAIL: ${{ secrets.IMS_EMAIL }}
IMS_PASS: ${{ secrets.IMS_PASS }}
HLX_TKN: ${{ secrets.HLX_TKN }}
SLACK_WH: ${{ secrets.SLACK_WH }}
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
- name: Persist JSON Artifact
Expand Down
128 changes: 73 additions & 55 deletions .sauce/milo-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,105 +2,123 @@ apiVersion: v1alpha
kind: playwright
showConsoleLog: true
defaults:
timeout: 30m
timeout: 60m
sauce:
region: us-west-1
concurrency: 10 # Controls how many suites are executed at the same time.
concurrency: 6 # Controls how many suites are executed at the same time.
retries: 2
metadata:
tags:
- e2e
- nala
- milo
sauceignore: .sauceignore
tunnel:
name: sso-acs-mauchley_tunnel_name
owner: sso-acs-mauchley
# tunnel:
# name: sso-acs-mauchley_tunnel_name
# owner: sso-acs-mauchley
playwright:
version: package.json # See https://docs.saucelabs.com/web-apps/automated-testing/playwright/#supported-testing-platforms for a list of supported versions.
configFile: configs/milo.config.js # See https://docs.saucelabs.com/web-apps/automated-testing/playwright/yaml/#configfile for a list of supported configuration files.
# Send in specific environment variables to your tests by adding them here.
configFile: ./configs/milo.config.js # See https://docs.saucelabs.com/web-apps/automated-testing/playwright/yaml/#configfile for a list of supported configuration files.
# Send in specific environment variables to your tests by adding them here. These parameters are only neccessary if running locally.
#env:
# my_var: $MY_VAR
# IMS_EMAIL: $IMS_EMAIL_LOCAL
# IMS_PASS: $IMS_PASS_LOCAL
# HLX_TKN: $HLX_TKN_LOCAL
# Controls what files are available in the context of a test run (unless explicitly excluded by .sauceignore).
rootDir: ./
npm:
registry: https://registry.npmjs.org
registries:
- url: https://registry.npmjs.org
packages:
"@axe-core/playwright": "^4.7.0"
"axe-html-reporter": "^2.2.3"
"axios": "^1.3.4"
"css": "^3.0.0"
"js-yaml": "^4.1.0"
"@babel/core": "7.21.3"
"@babel/eslint-parser": "7.21.3"
"eslint": "8.37.0"
"eslint-config-airbnb-base": "15.0.0"
"eslint-plugin-import": "2.27.5"
"saucectl": "0.168.0"
suites:
- name: Firefox Win
platformName: Windows 11
screenResolution: 1440x900
testMatch:
- .*.test.js
- name: "Firefox Win"
platformName: "Windows 11"
screenResolution: "1440x900"
testMatch: ['.*.js']
smartRetry:
failedOnly: true
params:
browserName: firefox
project: milo-live-firefox # Runs the project that's defined in `configs/milo.config.js`
browserName: "firefox"
project: "milo-live-firefox" # Runs the project that's defined in `configs/milo.config.js`
headless: true
- name: Chromium Win
platformName: Windows 11
screenResolution: 1440x900
testMatch:
- .*.test.js
grep: "@smoke"
- name: "Chromium Win"
platformName: "Windows 11"
screenResolution: "1440x900"
testMatch: ['.*.js']
smartRetry:
failedOnly: true
params:
browserName: chromium
project: milo-live-chrome
browserName: "chromium"
project: "milo-live-chrome"
headless: true
- name: Webkit Win
platformName: Windows 11
screenResolution: 1440x900
testMatch:
- .*.test.js
grep: "@smoke"
- name: "Webkit Win"
platformName: "Windows 11"
screenResolution: "1440x900"
testMatch: ['.*.js']
smartRetry:
failedOnly: true
params:
browserName: webkit
project: milo-live-webkit
browserName: "webkit"
project: "milo-live-webkit"
headless: true
- name: Firefox Mac
platformName: macOS 13
screenResolution: 1440x900
testMatch:
- .*.test.js
grep: "@smoke"
- name: "Firefox Mac"
platformName: "macOS 13"
screenResolution: "1440x900"
testMatch: ['.*.js']
smartRetry:
failedOnly: true
params:
browserName: firefox
project: milo-live-firefox
browserName: "firefox"
project: "milo-live-firefox"
headless: true
- name: Chromium Mac
platformName: macOS 13
screenResolution: 1440x900
testMatch:
- .*.test.js
grep: "@smoke"
- name: "Chromium Mac"
platformName: "macOS 13"
screenResolution: "1440x900"
testMatch: ['.*.js']
smartRetry:
failedOnly: true
params:
browserName: chromium
project: milo-live-chrome
browserName: "chromium"
project: "milo-live-chrome"
headless: true
- name: Webkit Mac
platformName: macOS 13
screenResolution: 1440x900
testMatch:
- .*.test.js
grep: "@smoke"
- name: "Webkit Mac"
platformName: "macOS 13"
screenResolution: "1440x900"
testMatch: ['.*.js']
smartRetry:
failedOnly: true
params:
browserName: webkit
project: milo-live-webkit
browserName: "webkit"
project: "milo-live-webkit"
headless: true
# Controls what files are available in the context of a test run (unless explicitly excluded by .sauceignore).
rootDir: .
grep: "@smoke"
reporters:
json:
enabled: true
filename: saucectl-report.json
#webhookURL: url # Slack webhook URL can come here for test reports
# webhookURL: $SLACK_WH # Slack webhook URL can come here for test reports
# Controls what artifacts to fetch when the suites have finished.
artifacts:
cleanup: true
download:
when: always
match:
- '*'
- "*.log"
- "*.json"
directory: ./artifacts/

0 comments on commit 761925b

Please sign in to comment.