From eae07800dc8e4de1deaec539dffd9c784d0277b5 Mon Sep 17 00:00:00 2001 From: SETHULAKSHMI-PM Date: Wed, 12 Jun 2024 14:55:49 +0530 Subject: [PATCH] MicrosoftEdge, 14.14393, Windows 10 - in LCP --- protractor.saucelabs.config.js | 6 ++--- .../webvitalsAsCustomEvent.spec.js | 26 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/protractor.saucelabs.config.js b/protractor.saucelabs.config.js index 36da324f6..fba907b44 100644 --- a/protractor.saucelabs.config.js +++ b/protractor.saucelabs.config.js @@ -8,8 +8,8 @@ exports.config = { sauceBuild: process.env.GITHUB_RUN_NUMBER, // See https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/ multiCapabilities: [ - newSaucelabsCapability('internet explorer', '11.103', 'Windows 10'), - // newSaucelabsCapability('MicrosoftEdge', '14.14393', 'Windows 10'), + // newSaucelabsCapability('internet explorer', '11.103', 'Windows 10'), + newSaucelabsCapability('MicrosoftEdge', '14.14393', 'Windows 10'), // newSaucelabsCapability('safari', '9.0', 'OS X 10.11'), // newSaucelabsCapability('safari', '10.1', 'macOS 10.12'), // newSaucelabsCapability('safari', '11.0', 'macOS 10.12'), @@ -33,7 +33,7 @@ function newSaucelabsCapability(browserName, version, platform) { browserName, version, platform, - name: 'internet explorer, 11.103, Windows 10 - in INP', + name: 'MicrosoftEdge, 14.14393, Windows 10 - in LCP', '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 8968cada7..7fed8c2ce 100644 --- a/test/e2e/12_webvitalsAsCustomEvent/webvitalsAsCustomEvent.spec.js +++ b/test/e2e/12_webvitalsAsCustomEvent/webvitalsAsCustomEvent.spec.js @@ -38,11 +38,20 @@ 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(parseFloat(beacon.d)).to.be.above(3000); - // cexpect(beacon.n).to.equal('instana-webvitals-LCP'); + // 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+)+$/); @@ -51,7 +60,7 @@ describe('12_webvitalsAsCustomEvent', () => { // 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.n).to.equal('instana-webvitals-CLS'); // cexpect(beacon.l).to.be.a('string'); // cexpect(beacon.pl).to.equal(pageLoadBeacon.t); // cexpect(beacon.m_id).to.match(/^v\d+(-\d+)+$/); @@ -60,20 +69,11 @@ describe('12_webvitalsAsCustomEvent', () => { // expectOneMatching(beacons, beacon => { // cexpect(beacon.ty).to.equal('cus'); // cexpect(beacon.ts).to.be.a('string'); - // cexpect(beacon.n).to.equal('instana-webvitals-CLS'); + // cexpect(beacon.n).to.equal('instana-webvitals-INP'); // 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-INP'); - cexpect(beacon.l).to.be.a('string'); - cexpect(beacon.pl).to.equal(pageLoadBeacon.t); - cexpect(beacon.m_id).to.match(/^v\d+(-\d+)+$/); - }); }); }); });