Skip to content

Commit

Permalink
chrome-web vital
Browse files Browse the repository at this point in the history
  • Loading branch information
SETHULAKSHMI-PM committed Jul 3, 2024
1 parent 1141225 commit 6fc9c5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protractor.saucelabs.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-env node */
const webvitalMetrics = ['LCP', 'FID', 'CLS', 'INP', 'TTFB', 'FCP'];
const webvitalMetricsWithoutINPandFCP = webvitalMetrics.filter(metric => metric !== 'INP' && metric !== 'FCP');
const webvitalMetricsWithoutFCP = webvitalMetrics.filter(metric => metric !== 'FCP');
const testFCPmetrics = ['FCP'];
const testTTFBmetrics = ['TTFB'];
const fireFox_supporting_wv_metrices = ['LCP', 'FID', 'TTFB', 'FCP'];
Expand Down Expand Up @@ -30,7 +31,7 @@ exports.config = {
// ...generateSauceLabsCapabilities('chrome', '65.0', ['OS X 10.11'], { includedMetrics: testTTFBmetrics }),

...generateSauceLabsCapabilities('chrome', '85', ['OS X 10.10', 'macOS 10.12', 'Windows 8'], { includedMetrics: webvitalMetricsWithoutINPandFCP }), // FCP should include, but it is inconsitent
...generateSauceLabsCapabilities('chrome', '96', ['OS X 10.11', 'macOS 12', 'Windows 11'], { includedMetrics: webvitalMetrics }),
...generateSauceLabsCapabilities('chrome', '96', ['OS X 10.11', 'macOS 12', 'Windows 11'], { includedMetrics: webvitalMetricsWithoutFCP }), // FCP should include, but it is inconsitent

// ...generateSauceLabsCapabilities('firefox', '35', ['OS X 10.10', 'macOS 10.12', 'Windows 7'], { includedMetrics: testTTFBmetrics }),
// ...generateSauceLabsCapabilities('firefox', '90', ['macOS 10.12', 'Windows 7'], { includedMetrics: ['FID', 'TTFB', 'FCP'] }),
Expand Down

0 comments on commit 6fc9c5d

Please sign in to comment.