Skip to content

Commit f4458dc

Browse files
committed
fixup! ci: upgrade to Sauce Connect 5 to fix SC4 deprecation
1 parent d5912bf commit f4458dc

3 files changed

Lines changed: 58 additions & 90 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
with:
223223
username: ${{ vars.SAUCE_USERNAME }}
224224
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
225-
region: us-west
225+
region: us-west-1
226226
tunnelName: ${{ env.SAUCE_TUNNEL_IDENTIFIER }}
227227
- name: Run E2E Browser tests
228228
env:

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ jobs:
235235
with:
236236
username: ${{ vars.SAUCE_USERNAME }}
237237
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
238-
region: us-west
238+
region: us-west-1
239239
tunnelName: ${{ env.SAUCE_TUNNEL_IDENTIFIER }}
240240
- name: Run E2E Browser tests
241241
env:

tests/e2e/assets/protractor-saucelabs.conf.js

Lines changed: 56 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,49 @@ const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
77

88
const tunnelIdentifier = process.env['SAUCE_TUNNEL_IDENTIFIER'];
99

10+
const capabilities = [
11+
{
12+
browserName: 'chrome',
13+
version: '132',
14+
platform: 'Windows 11',
15+
},
16+
{
17+
browserName: 'chrome',
18+
version: '131',
19+
platform: 'Windows 11',
20+
},
21+
{
22+
browserName: 'firefox',
23+
version: '134',
24+
platform: 'Windows 11',
25+
},
26+
{
27+
browserName: 'firefox',
28+
version: '128', // Latest Firefox ESR version as of Jan 2025
29+
platform: 'Windows 11',
30+
},
31+
{
32+
browserName: 'safari',
33+
platform: 'macOS 13',
34+
version: '17',
35+
},
36+
{
37+
browserName: 'safari',
38+
platform: 'macOS 12',
39+
version: '16',
40+
},
41+
{
42+
browserName: 'MicrosoftEdge',
43+
platform: 'Windows 11',
44+
version: '132',
45+
},
46+
{
47+
browserName: 'MicrosoftEdge',
48+
platform: 'Windows 11',
49+
version: '131',
50+
},
51+
];
52+
1053
/**
1154
* @type { import("protractor").Config }
1255
*/
@@ -19,96 +62,21 @@ exports.config = {
1962
specs: ['./src/**/*.e2e-spec.ts'],
2063

2164
// NOTE: https://saucelabs.com/products/platform-configurator can be used to determine configuration values
22-
multiCapabilities: [
23-
{
24-
browserName: 'chrome',
25-
version: '132',
26-
platform: 'Windows 11',
27-
tunnelIdentifier,
28-
tunnelName: tunnelIdentifier,
29-
'sauce:options': {
30-
tunnelIdentifier,
31-
tunnelName: tunnelIdentifier,
32-
},
33-
},
34-
{
35-
browserName: 'chrome',
36-
version: '131',
37-
platform: 'Windows 11',
38-
tunnelIdentifier,
39-
tunnelName: tunnelIdentifier,
40-
'sauce:options': {
41-
tunnelIdentifier,
42-
tunnelName: tunnelIdentifier,
43-
},
44-
},
45-
{
46-
browserName: 'firefox',
47-
version: '134',
48-
platform: 'Windows 11',
49-
tunnelIdentifier,
50-
tunnelName: tunnelIdentifier,
51-
'sauce:options': {
65+
multiCapabilities: capabilities.map((caps) => {
66+
if (tunnelIdentifier) {
67+
return {
68+
...caps,
5269
tunnelIdentifier,
5370
tunnelName: tunnelIdentifier,
54-
},
55-
},
56-
{
57-
browserName: 'firefox',
58-
version: '128', // Latest Firefox ESR version as of Jan 2025
59-
platform: 'Windows 11',
60-
tunnelIdentifier,
61-
tunnelName: tunnelIdentifier,
62-
'sauce:options': {
63-
tunnelIdentifier,
64-
tunnelName: tunnelIdentifier,
65-
},
66-
},
67-
{
68-
browserName: 'safari',
69-
platform: 'macOS 13',
70-
version: '17',
71-
tunnelIdentifier,
72-
tunnelName: tunnelIdentifier,
73-
'sauce:options': {
74-
tunnelIdentifier,
75-
tunnelName: tunnelIdentifier,
76-
},
77-
},
78-
{
79-
browserName: 'safari',
80-
platform: 'macOS 12',
81-
version: '16',
82-
tunnelIdentifier,
83-
tunnelName: tunnelIdentifier,
84-
'sauce:options': {
85-
tunnelIdentifier,
86-
tunnelName: tunnelIdentifier,
87-
},
88-
},
89-
{
90-
browserName: 'MicrosoftEdge',
91-
platform: 'Windows 11',
92-
version: '132',
93-
tunnelIdentifier,
94-
tunnelName: tunnelIdentifier,
95-
'sauce:options': {
96-
tunnelIdentifier,
97-
tunnelName: tunnelIdentifier,
98-
},
99-
},
100-
{
101-
browserName: 'MicrosoftEdge',
102-
platform: 'Windows 11',
103-
version: '131',
104-
tunnelIdentifier,
105-
tunnelName: tunnelIdentifier,
106-
'sauce:options': {
107-
tunnelIdentifier,
108-
tunnelName: tunnelIdentifier,
109-
},
110-
},
111-
],
71+
'sauce:options': {
72+
tunnelIdentifier,
73+
tunnelName: tunnelIdentifier,
74+
},
75+
};
76+
}
77+
78+
return caps;
79+
}),
11280

11381
// Only allow one session at a time to prevent over saturation of Saucelabs sessions.
11482
maxSessions: 1,

0 commit comments

Comments
 (0)