Skip to content

Commit

Permalink
TTFB - MicrosoftEdge 13, Windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
SETHULAKSHMI-PM committed Jun 25, 2024
1 parent e4149de commit 990bbf1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protractor.saucelabs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ exports.config = {
// // TTFB
// // TTFB - MicrosoftEdge - ???
// newSaucelabsCapability('MicrosoftEdge', '80', 'macOS 10.12', 'TTFB'), // passed - ???
// newSaucelabsCapability('MicrosoftEdge', '80', 'Windows 10', 'TTFB'), // passed - ???
newSaucelabsCapability('MicrosoftEdge', '79', 'OS X 10.10', 'TTFB'), // passed - ???
newSaucelabsCapability('MicrosoftEdge', '13', 'Windows 10', 'TTFB'), // passed - ???
// newSaucelabsCapability('MicrosoftEdge', '79', 'OS X 10.10', 'TTFB'), // passed - 383

// // TTFB - Chrome - PASSED
// newSaucelabsCapability('chrome', '44', 'macOS 10.12', 'TTFB'), // passed - 362
Expand Down Expand Up @@ -116,7 +116,7 @@ function newSaucelabsCapability(browserName, version, platform, metricName = '')
version,
platform,
metricName,
name: isWebVitalsTest ? `${metricName} MicrosoftEdge 79, OS X 10.10` : 'weasel e2e',
name: isWebVitalsTest ? `${metricName} MicrosoftEdge 13, Windows 10` : 'weasel e2e',
'tunnel-identifier': 'github-action-tunnel',
build: process.env.GITHUB_RUN_NUMBER,
specs: ['test/e2e/12_webvitalsAsCustomEvent/*.spec.js'],
Expand Down
10 changes: 10 additions & 0 deletions test/e2e/12_webvitalsAsCustomEvent/webvitalsAsCustomEvent.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ describe('12_webvitalsAsCustomEvent', () => {
cexpect(beacon.pl).to.equal(pageLoadBeacon.t);
});
}

if (capabilities.metricName === 'FCP') {
expectOneMatching(beacons, beacon => {
cexpect(beacon.ty).to.equal('pl');
cexpect(beacon.ts).to.be.a('string');
cexpect(beacon.t_fcp).to.be.a('string');
cexpect(beacon.l).to.be.a('string');
cexpect(beacon.pl).to.equal(pageLoadBeacon.t);
});
}
});
});
});
Expand Down

0 comments on commit 990bbf1

Please sign in to comment.