Skip to content

Commit

Permalink
fixed: update the saucelabs tests meta
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jan 26, 2024
1 parent d5949de commit f93cdd9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions wdio.conf.js
Expand Up @@ -13,10 +13,6 @@ export const config = {
'sauce',
{
sauceConnect: true,
sauceConnectOpts: {
build: `GITHUB_RUN_NUMBER #${process.env.GITHUB_RUN_NUMBER} (${process.env.GITHUB_RUN_NUMBER})`,
name: 'riot',
},
},
],
],
Expand Down Expand Up @@ -62,7 +58,7 @@ export const config = {
// Sauce Labs platform configurator - a great tool to configure your capabilities:
// https://saucelabs.com/platform/platform-configurator
//
capabilities: process.env.SAUCELABS
capabilities: process.env.GITHUB_RUN_NUMBER
? [
{
// capabilities for local browser web tests
Expand All @@ -81,7 +77,13 @@ export const config = {
{
browserName: 'MicrosoftEdge',
},
]
].map((capabilities) => ({
...capabilities,
'sauce:options': {
build: `GITHUB_RUN_NUMBER #${process.env.GITHUB_RUN_NUMBER} (${process.env.GITHUB_RUN_NUMBER})`,
name: 'riot',
},
}))
: [
{
browserName: 'chrome',
Expand Down

0 comments on commit f93cdd9

Please sign in to comment.