From 60124c14abcbd153b6011ea6994dd32ad390e5de Mon Sep 17 00:00:00 2001 From: SETHULAKSHMI-PM Date: Thu, 13 Jun 2024 09:52:56 +0530 Subject: [PATCH] firefox, 58.0, Windows 11 - in FID --- protractor.saucelabs.config.js | 2 +- .../webvitalsAsCustomEvent.spec.js | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/protractor.saucelabs.config.js b/protractor.saucelabs.config.js index 9cc96ccd8..7afa4fa25 100644 --- a/protractor.saucelabs.config.js +++ b/protractor.saucelabs.config.js @@ -33,7 +33,7 @@ function newSaucelabsCapability(browserName, version, platform) { browserName, version, platform, - name: 'firefox, 58.0, Windows 11 - in LCP', + name: 'firefox, 58.0, Windows 11 - in FID', 'tunnel-identifier': 'github-action-tunnel', build: process.env.GITHUB_RUN_NUMBER }; diff --git a/test/e2e/12_webvitalsAsCustomEvent/webvitalsAsCustomEvent.spec.js b/test/e2e/12_webvitalsAsCustomEvent/webvitalsAsCustomEvent.spec.js index 7fed8c2ce..b8f6ebfd4 100644 --- a/test/e2e/12_webvitalsAsCustomEvent/webvitalsAsCustomEvent.spec.js +++ b/test/e2e/12_webvitalsAsCustomEvent/webvitalsAsCustomEvent.spec.js @@ -38,25 +38,25 @@ describe('12_webvitalsAsCustomEvent', () => { cexpect(beacon.ty).to.equal('pl'); }); - expectOneMatching(beacons, beacon => { - cexpect(beacon.ty).to.equal('cus'); - cexpect(beacon.ts).to.be.a('string'); - cexpect(parseFloat(beacon.d)).to.be.above(3000); - cexpect(beacon.n).to.equal('instana-webvitals-LCP'); - cexpect(beacon.l).to.be.a('string'); - cexpect(beacon.pl).to.equal(pageLoadBeacon.t); - cexpect(beacon.m_id).to.match(/^v\d+(-\d+)+$/); - }); - // expectOneMatching(beacons, beacon => { // cexpect(beacon.ty).to.equal('cus'); // cexpect(beacon.ts).to.be.a('string'); - // cexpect(beacon.n).to.equal('instana-webvitals-FID'); + // cexpect(parseFloat(beacon.d)).to.be.above(3000); + // cexpect(beacon.n).to.equal('instana-webvitals-LCP'); // cexpect(beacon.l).to.be.a('string'); // cexpect(beacon.pl).to.equal(pageLoadBeacon.t); // cexpect(beacon.m_id).to.match(/^v\d+(-\d+)+$/); // }); + expectOneMatching(beacons, beacon => { + cexpect(beacon.ty).to.equal('cus'); + cexpect(beacon.ts).to.be.a('string'); + cexpect(beacon.n).to.equal('instana-webvitals-FID'); + cexpect(beacon.l).to.be.a('string'); + cexpect(beacon.pl).to.equal(pageLoadBeacon.t); + cexpect(beacon.m_id).to.match(/^v\d+(-\d+)+$/); + }); + // expectOneMatching(beacons, beacon => { // cexpect(beacon.ty).to.equal('cus'); // cexpect(beacon.ts).to.be.a('string');