@@ -18,29 +18,29 @@ exports.config = {
18
18
// some of the APIs required to capture these metrics are currently only available in Chromium- based browsers
19
19
// (e.g. Chrome, Edge, Opera, Samsung Internet). - https://github.com/GoogleChrome/web-vitals -
20
20
multiCapabilities : [
21
- generateSauceLabsCapabilities ( 'internet explorer' , '11.103' , [ 'Windows 10' ] , { includedMetrics : [ ] } ) ,
22
- generateSauceLabsCapabilities ( 'MicrosoftEdge' , '14.14393' , [ 'Windows 10' ] , { includedMetrics : testTTFBmetrics } ) ,
23
- generateSauceLabsCapabilities ( 'safari' , '9.0' , [ 'OS X 10.11' ] , { includedMetrics : [ ] } ) ,
24
- generateSauceLabsCapabilities ( 'safari' , '10.1' , [ 'macOS 10.12' ] , { includedMetrics : [ ] } ) ,
25
- generateSauceLabsCapabilities ( 'safari' , '11.0' , [ 'macOS 10.12' ] , { includedMetrics : testTTFBmetrics } ) ,
26
- generateSauceLabsCapabilities ( 'safari' , '11.1' , [ 'macOS 10.13' ] , { includedMetrics : testTTFBmetrics } ) ,
27
- generateSauceLabsCapabilities ( 'firefox' , '78.0' , [ 'Windows 7' ] , { includedMetrics : testTTFBmetrics } ) ,
28
- generateSauceLabsCapabilities ( 'firefox' , '58.0' , [ 'Windows 11' ] , { includedMetrics : testTTFBmetrics } ) ,
29
- generateSauceLabsCapabilities ( 'chrome' , '67.0' , [ 'Windows 10' ] , { includedMetrics : testTTFBmetrics } ) ,
30
- generateSauceLabsCapabilities ( 'chrome' , '54.0' , [ 'OS X 10.11' ] , { includedMetrics : testTTFBmetrics } ) ,
31
- generateSauceLabsCapabilities ( 'chrome' , '65.0' , [ 'OS X 10.11' ] , { includedMetrics : testTTFBmetrics } ) ,
21
+ newSaucelabsCapability ( 'internet explorer' , '11.103' , [ 'Windows 10' ] , { includedMetrics : [ ] } ) ,
22
+ newSaucelabsCapability ( 'MicrosoftEdge' , '14.14393' , [ 'Windows 10' ] , { includedMetrics : testTTFBmetrics } ) ,
23
+ newSaucelabsCapability ( 'safari' , '9.0' , [ 'OS X 10.11' ] , { includedMetrics : [ ] } ) ,
24
+ newSaucelabsCapability ( 'safari' , '10.1' , [ 'macOS 10.12' ] , { includedMetrics : [ ] } ) ,
25
+ newSaucelabsCapability ( 'safari' , '11.0' , [ 'macOS 10.12' ] , { includedMetrics : testTTFBmetrics } ) ,
26
+ newSaucelabsCapability ( 'safari' , '11.1' , [ 'macOS 10.13' ] , { includedMetrics : testTTFBmetrics } ) ,
27
+ newSaucelabsCapability ( 'firefox' , '78.0' , [ 'Windows 7' ] , { includedMetrics : testTTFBmetrics } ) ,
28
+ newSaucelabsCapability ( 'firefox' , '58.0' , [ 'Windows 11' ] , { includedMetrics : testTTFBmetrics } ) ,
29
+ newSaucelabsCapability ( 'chrome' , '67.0' , [ 'Windows 10' ] , { includedMetrics : testTTFBmetrics } ) ,
30
+ newSaucelabsCapability ( 'chrome' , '54.0' , [ 'OS X 10.11' ] , { includedMetrics : testTTFBmetrics } ) ,
31
+ newSaucelabsCapability ( 'chrome' , '65.0' , [ 'OS X 10.11' ] , { includedMetrics : testTTFBmetrics } ) ,
32
32
33
- generateSauceLabsCapabilities ( 'chrome' , '85' , [ 'OS X 10.10' , 'macOS 10.12' , 'Windows 8' ] , { includedMetrics : webvitalMetricsWithoutINPandFCP } ) , // FCP should include, but it is inconsitent 509
34
- generateSauceLabsCapabilities ( 'chrome' , '96' , [ 'OS X 10.11' , 'macOS 12' , 'Windows 11' ] , { includedMetrics : webvitalMetricsWithoutFCP } ) , // FCP should include, but it is inconsitent 509
33
+ newSaucelabsCapability ( 'chrome' , '85' , [ 'OS X 10.10' , 'macOS 10.12' , 'Windows 8' ] , { includedMetrics : webvitalMetricsWithoutINPandFCP } ) , // FCP should include, but it is inconsitent 509
34
+ newSaucelabsCapability ( 'chrome' , '96' , [ 'OS X 10.11' , 'macOS 12' , 'Windows 11' ] , { includedMetrics : webvitalMetricsWithoutFCP } ) , // FCP should include, but it is inconsitent 509
35
35
36
- generateSauceLabsCapabilities ( 'firefox' , '90' , [ 'macOS 10.12' , 'Windows 7' ] , { includedMetrics : [ 'FID' , 'TTFB' , 'FCP' ] } ) , // 510 pass
37
- generateSauceLabsCapabilities ( 'firefox' , '122' , [ 'macOS 10.15' , 'Windows 10' ] , { includedMetrics : fireFox_supporting_wv_metrices } ) , // bit inconsistent, 510 failed, 511 passed
36
+ newSaucelabsCapability ( 'firefox' , '90' , [ 'macOS 10.12' , 'Windows 7' ] , { includedMetrics : [ 'FID' , 'TTFB' , 'FCP' ] } ) , // 510 pass
37
+ newSaucelabsCapability ( 'firefox' , '122' , [ 'macOS 10.15' , 'Windows 10' ] , { includedMetrics : fireFox_supporting_wv_metrices } ) , // bit inconsistent, 510 failed, 511 passed
38
38
39
- generateSauceLabsCapabilities ( 'MicrosoftEdge' , '13' , [ 'Windows 10' ] , { includedMetrics : testTTFBmetrics } ) ,
40
- generateSauceLabsCapabilities ( 'MicrosoftEdge' , '80' , [ 'OS X 10.10' , 'macOS 10.12' , 'Windows 10' ] , { includedMetrics : webvitalMetricsWithoutINP } ) , //pass 513
41
- generateSauceLabsCapabilities ( 'MicrosoftEdge' , '97' , [ 'macOS 10.12' , 'Windows 10' ] , { includedMetrics : webvitalMetrics } ) , //pass 513
39
+ newSaucelabsCapability ( 'MicrosoftEdge' , '13' , [ 'Windows 10' ] , { includedMetrics : testTTFBmetrics } ) ,
40
+ newSaucelabsCapability ( 'MicrosoftEdge' , '80' , [ 'OS X 10.10' , 'macOS 10.12' , 'Windows 10' ] , { includedMetrics : webvitalMetricsWithoutINP } ) , //pass 513
41
+ newSaucelabsCapability ( 'MicrosoftEdge' , '97' , [ 'macOS 10.12' , 'Windows 10' ] , { includedMetrics : webvitalMetrics } ) , //pass 513
42
42
43
- generateSauceLabsCapabilities ( 'safari' , '15' , [ 'macOS 12' ] , { includedMetrics : testFCPmetrics } ) ,
43
+ newSaucelabsCapability ( 'safari' , '15' , [ 'macOS 12' ] , { includedMetrics : testFCPmetrics } ) ,
44
44
] . flat ( ) ,
45
45
// Do not allow parallel test execution. Makes the test execution a lot
46
46
// slower, but the setup simpler.
@@ -52,13 +52,13 @@ exports.config = {
52
52
53
53
// Filter out the metrics that are in the excludes array, and generate capabilities for each platform.
54
54
// Note that not all web vital metrics are supported across all compatibilities.
55
- function generateSauceLabsCapabilities ( browserName , version , platforms , options ) {
55
+ function newSaucelabsCapability ( browserName , version , platforms , options ) {
56
56
return platforms . flatMap ( platform => {
57
- return newSaucelabsCapability ( browserName , version , platform , options . includedMetrics ) ;
57
+ return newSaucelabsCapabilityForSinglePlatform ( browserName , version , platform , options . includedMetrics ) ;
58
58
} ) ;
59
59
}
60
60
61
- function newSaucelabsCapability ( browserName , version , platform , metrics ) {
61
+ function newSaucelabsCapabilityForSinglePlatform ( browserName , version , platform , metrics ) {
62
62
return {
63
63
browserName,
64
64
version,
0 commit comments