Skip to content

Commit

Permalink
Configure Sauce Labs extended debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Nov 22, 2023
1 parent 9bdb9f2 commit 7d09129
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions test/wdio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,55 @@ const sauceConfig = {
capabilities: [
{
browserName: 'chrome',
browserVersion: 'latest',
platformName: 'Windows 10',

// Configure Sauce Labs with extended debugging
'sauce:options': {
build: buildNumber
build: buildNumber,
extendedDebugging: true
}
},
{
browserName: 'firefox',
browserVersion: '55',
platformName: 'Windows 10',

// Configure Firefox profile for extended debugging
'mozz:firefoxOptions': {
'profile': SAUCE_BUILD_NUMBER,
'args': [
'-start-debugger-server',
'9222'
],
prefs: {
'devtools.debugger.remote-enabled': true,
'devtools.debugger.prompt-connection': false,
'devtools.chrome.enabled': true
}
},

// Configure Sauce Labs with extended debugging
'sauce:options': {
build: buildNumber
build: buildNumber,
extendedDebugging: true
}
},
{
browserName: 'internet explorer',
browserVersion: '11.285',
browserVersion: 'latest',
platformName: 'Windows 10',

// Configure Sauce Labs with extended debugging
'sauce:options': {
build: buildNumber
build: buildNumber,
extendedDebugging: true
}
}
],
services: services.concat([['sauce', { sauceConnect: true }]])

// Add Sauce Labs service
services: services.concat('sauce')
}

const puppeteerConfig = {
Expand Down

0 comments on commit 7d09129

Please sign in to comment.