Skip to content

Commit

Permalink
Fix dev workflow unit and functional test settings (#1187)
Browse files Browse the repository at this point in the history
* Fix dev workflow unit and functional test settings
  • Loading branch information
shammowla authored Sep 19, 2024
1 parent 86fb704 commit dbed51a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 27 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
SAUCE_CAPABILITIES_OVERRIDES_PATH: "sauceLabsCapabilities.json"
EDGE_BASE_PATH: ee-pre-prd
ALLOY_ENV: int
SAUCE_TUNNEL_ID: github-action-tunnel

jobs:
linting:
Expand Down
16 changes: 1 addition & 15 deletions .sauce/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ testcafe:
version: 3.6.0
nodeVersion: "22"
speed: 1
pageLoadTimeout: 3000
pageLoadTimeout: 5000
disablePageCaching: true
timeZone: New_York
npm:
Expand All @@ -26,22 +26,8 @@ npm:
- "@adobe/reactor-cookie"
- "@adobe/reactor-query-string"
suites:
- name: "Edge"
browserName: "microsoftedge"
headless: true
browserVersion: "119"
src:
- "test/functional/specs/**/*.js"
platformName: "Windows 11"
excludedTestFiles:
[
"test/functional/specs/Personalization/C782718.js",
"test/functional/specs/Privacy/C5594870.js",
"test/functional/specs/Personalization/C8631577.js",
]
- name: "Safari"
browserName: "safari"
headless: true
browserVersion: "latest"
src:
- "test/functional/specs/**/*.js"
Expand Down
30 changes: 18 additions & 12 deletions karma.saucelabs.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,32 @@ module.exports = (config) => {
base: "SauceLabs",
browserName: "chrome",
browserVersion: "latest",
platform: "Windows 11",
platformName: "Windows 11",
"sauce:options": {
tunnelIdentifier: process.env.SAUCE_TUNNEL_ID,
headless: true,
},
},
sl_safariW3C: {
base: "SauceLabs",
browserName: "safari",
browserVersion: "latest",
platform: "macOS 13",
platformName: "macOS 13",
"sauce:options": {
tunnelIdentifier: process.env.SAUCE_TUNNEL_ID,
headless: true,
},
},
sl_firefoxW3C: {
base: "SauceLabs",
browserName: "firefox",
platformName: "Windows 11",
browserVersion: "latest",
platformName: "Windows 11",
"sauce:options": {
geckodriverVersion: "0.34.0",
tunnelIdentifier: process.env.SAUCE_TUNNEL_ID,
headless: true,
},
},
sl_edgeW3C: {
base: "SauceLabs",
browserName: "microsoftedge",
browserVersion: "latest",
platform: "Windows 11",
},
};

config.set({
Expand All @@ -50,9 +53,12 @@ module.exports = (config) => {
concurrency: 10,
colors: true,
sauceLabs: {
screenResolution: "800x600",
testName: "Alloy Unit Tests",
build: `GH #${process.env.BUILD_NUMBER} (${process.env.BUILD_ID})`,
tunnelIdentifier: process.env.JOB_NUMBER,
tunnelIdentifier: process.env.SAUCE_TUNNEL_ID,
screenResolution: "1280x1024",
recordVideo: false,
recordScreenshots: false,
},
plugins: [
"karma-jasmine",
Expand Down

0 comments on commit dbed51a

Please sign in to comment.