From 5a3946ad747fd14e5f332b49c7a7eac0f7944a06 Mon Sep 17 00:00:00 2001 From: jhuerta Date: Mon, 26 Oct 2026 16:42:57 -0700 Subject: [PATCH] Cleaned upl href values --- correlationsDashboard.xlsx | Bin 35744 -> 35744 bytes tests/correlationsDashboard.js | 163 +++++++++++++++++---------------- 2 files changed, 82 insertions(+), 81 deletions(-) diff --git a/correlationsDashboard.xlsx b/correlationsDashboard.xlsx index a05d5e36f43efd294e04da11dcdf37aace57fdd2..3f39b2a5f2b031b8c51696bb0b3027d54330fb1a 100644 GIT binary patch delta 2369 zcmY*bO>7la6fRX4P({ILXDW-jz|hiO=H8jPGt(Bepsjr^6xt$c>radJm-e-fMq^xQ zu%<>Wa7;!{+vQlkyWw#+fMuM;b9 zz?oTl`=H1U9FW5n)XUS19n<)Ftq6G{LNe=H$Ob z3O@CV?x-wnh1FFZtVAT^7F+OM)d}_~ezLC9f{yBWRwshP6*dGlSwaqQIFb(kTXT+R z2STlM^0%#XjP4rx{G;^#0^wrKcu+rhEXQO#&osXOaoU|g_?}MqwYBs@0-?R+LW;M| zGMUho3H{nOUN-W~*nGd8%7j8<^YC6jeuBz`LYaYw%#+j&J{)b_G}N6ThYf{x;4kcN zY5fdw6NMT)-gkx^$Eo}nAnqk&@XpRtjIE^$F}uC_Gmb|=fk_dXnYoN z#LDNmk3hKzet$cef8>Ywykh?K_624pG-fV$Twq0Ut}q-=Kfgdw%y0O%s|4PEVSyO; zg~SYuQ+?pY^F$hPBi-~8rz?DMF}=K#472iu>l*x4CwW?kdk!v>F4|dN;4}HI%ZA)O zdPodu&+Hd?nY;&-2tB-W8wOvYJ@iEsuPJoW)ctnR?W|WCe%BAda(B~RE$P=vCG6f> z4x>HQ_5H?(N{meOSF;Kj0P$M7-fw&;qM zO(Vw%8P|j9<+YJ%21}FEi|=!=58LqI bDEXV>IwA<=+{~!|z@72GrMbVy&#n3oZBMIR delta 2352 zcmZ8jTWl3Y7;Y;O16pGubXPHAViSQf?Ck8$&bCzBBNVWur9u&D<=WEQIUIX28WKsX zc!3vM{t6LeID{I5hEi=yOVXG?UwlInV@X6{E#rL)Sh)EBs4!KaXW`x2a3~z8wl^vs~ zg26owd{y>AUK=%(7Z~lPwZnw2LTIdT;88Y2VFkCP1J~KN1ddTW>%iG{6PCDQUYv;c zd1Dq`F`sLPu!&zLbm1rT75)stgFqOM_k79^7w{Wm{IPsq6q7Jq=E4`jd2*?eCIRX2 zB7xC*V}%Rr1@>5EqJ5Edq=68P+;D}*j|d%5sVm6dd)2k=D3h5G7oLJkz%taPC?WmOKzazXoE zidu6nx8F9Folz^H^Q~8mn;RrVw3EV`b!o&U>*+)yQ5*0;GFvg7u${zTm*^wFWbJe z)B`N#e9DFEjU$8|da+S?_thyYNXbHBV&Ap>OA5!PXG?e3DUmGFCj5{CyZ6}x z7_nHw{x%n){dOPYvNfw|>48bBmP#)ytmT~pwh6@qhw6PU%pJU9RRLjiqHoN#+QXn2 z_Q~KL7ml>q`BNCVrhjh5g1a}Vz@qj#C~jR`$l+*aH4LAwH9~t>B}PERCaS+lqeIr8&PQGi~YOV}kQ~H#5ET z{@W#DXzW`7Hx7?lnZV~IdAUB#engH7Jg(cf=1sdSF%$T_X#Dw}9Falw!K@3v_l%Mo zSIVbhsyBYPCY$YV>xI918_203$xyn_`c@G!3l}a~)_)>zD)1SP)WleSxNMRBIGXtN I_|?My09%WwPyhe` diff --git a/tests/correlationsDashboard.js b/tests/correlationsDashboard.js index f837529..21030cd 100644 --- a/tests/correlationsDashboard.js +++ b/tests/correlationsDashboard.js @@ -24,7 +24,7 @@ const correlationsDashboard = (req, res) => { //CONSTANTS //My Content Widget -const myContentItemTotals = '5040 items'; +const myContentItemTotals = '5045 items'; const steps = [ { description: 'Navigate to ExACT Landing Page', action: async () => await driver.navigate().to('https://correlation.edgate.com/exact/login.php') }, @@ -282,7 +282,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Help icon href matched as expected'); } else { - errors.push(`Expected: Help icon href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Help icon href to be: "https://correlation.edgate.com/exact/help.php"; actual: "${actualHref}"`); } //Throw summary if any validation failed @@ -416,7 +416,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Dashboard Navigation href matched as expected'); } else { - errors.push(`Expected: Dashboard Navigation href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Dashboard Navigation href to be: "https://correlation.edgate.com/exact/"; actual: "${actualHref}"`); } //font-family @@ -499,7 +499,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Frameworks Navigation href matched as expected'); } else { - errors.push(`Expected: Frameworks Navigation href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Frameworks Navigation href to be: "https://correlation.edgate.com/exact/frameworks.php"; actual: "${actualHref}"`); } //font-family @@ -582,7 +582,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Align Navigation href matched as expected'); } else { - errors.push(`Expected: Align Navigation href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Align Navigation href to be: "https://correlation.edgate.com/exact/browse.php"; actual: "${actualHref}"`); } //font-family @@ -665,7 +665,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Upload Navigation href matched as expected'); } else { - errors.push(`Expected: Upload Navigation href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Upload Navigation href to be: "https://correlation.edgate.com/exact/submit.php"; actual: "${actualHref}"`); } //font-family @@ -748,7 +748,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Activity Report Navigation href matched as expected'); } else { - errors.push(`Expected: Activity Report Navigation href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Activity Report Navigation href to be: "https://correlation.edgate.com/exact/activity_reporting.php"; actual: "${actualHref}"`); } //font-family @@ -831,7 +831,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Report Navigation href matched as expected'); } else { - errors.push(`Expected: Report Navigation href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Report Navigation href to be: "https://correlation.edgate.com/exact/reports.php"; actual: "${actualHref}"`); } //font-family @@ -914,7 +914,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Approve Navigation href matched as expected'); } else { - errors.push(`Expected: Approve Navigation href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Approve Navigation href to be: "https://correlation.edgate.com/exact/approvecontent.php"; actual: "${actualHref}"`); } //font-family @@ -1387,9 +1387,10 @@ const steps = [ { position: 17, name: 'create me', count: '9', href: '/exact/contentset_edit_modal.php?id=1427607301' }, { position: 18, name: 'Illustrative Math Test 1', count: '5', href: '/exact/contentset_edit_modal.php?id=1473839901' }, { position: 19, name: 'Illustrative Math Test 2', count: '5', href: '/exact/contentset_edit_modal.php?id=1473840078' }, - { position: 20, name: 'webinar test', count: '5', href: '/exact/contentset_edit_modal.php?id=1476429225' }, - { position: 21, name: 'create import test', count: '3', href: '/exact/contentset_edit_modal.php?id=1478966441' }, - { position: 22, name: 'New One For Agust Post Night', count: '0', href: '/exact/contentset_edit_modal.php?id=1478966652' } + { position: 20, name: 'webinar test', count: '5', href: '/exact/contentset_edit_modal.php?id=1476429225' }, + { position: 21, name: 'Review Screen Open', count: '5', href: '/exact/contentset_edit_modal.php?id=1483698269' }, + { position: 22, name: 'create import test', count: '3', href: '/exact/contentset_edit_modal.php?id=1478966441' }, + { position: 23, name: 'New One For Agust Post Night', count: '0', href: '/exact/contentset_edit_modal.php?id=1478966652' } ]; for (const exp of expected) { @@ -3367,7 +3368,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: See More href matched as expected'); } else { - errors.push(`Expected: See More button href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: See More button href to be: "https://correlation.edgate.com/pic/standards-updates.html"; actual: "${actualHref}"`); } //font-family @@ -4411,7 +4412,7 @@ const steps = [ if (actualHref && actualHref === expectedHref) { console.log('Passed: Manage Favorites href matched as expected'); } else { - errors.push(`Expected: Manage Favorites button href to be "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Manage Favorites button href to be: "https://correlation.edgate.com/exact/add_favorite_report.php"; actual: "${actualHref}"`); } //font-family @@ -4707,9 +4708,9 @@ const steps = [ //icon present if (await element.isDisplayed()) { - console.log('Passed: Format - XLS button was displayed as expected'); + console.log('Passed: Format Row 1 - XLS button was displayed as expected'); } else { - errors.push('Expected: XLS button was not displayed'); + errors.push('Expected: Format Row 1 - XLS button was not displayed'); } //Throw summary if any validation failed @@ -4725,11 +4726,11 @@ const steps = [ } }, - //Favorite Reports - Report 1 column data + //Favorite Reports - Report Row 1 title { - description: 'Favorite Reports - Report column 1 data, text, and font size', + description: 'Favorite Reports - Report Row 1 title, text, and font size', action: async () => { - const multipleChecks = 'Favorite Reports - Report column 1 data'; + const multipleChecks = 'Favorite Reports - Report Row 1 title'; const element = await driver.findElement(By.css('.table:nth-child(1) tr:nth-child(1) > td:nth-child(2)')); @@ -4744,30 +4745,30 @@ const steps = [ //text if (elementText === 'SoDontLook') { - console.log('Passed: Favorite Reports - Report column 1 data matched as expected'); + console.log('Passed: Favorite Reports - Report Row 1 title matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report = "SoDontLook" column 1 data; Actual: "${elementText}"`); + errors.push(`Expected: Favorite Reports - Report Row 1 title to be: "SoDontLook"; Actual: "${elementText}"`); } //font if (elementFont === "Poppins, sans-serif") { - console.log('Passed: Favorite Reports - Report column 1 data font-family matched as expected'); + console.log('Passed: Favorite Reports - Report Row 1 title font-family matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report column 1 data font-family "Poppins, sans-serif"; Actual: ${elementFont}`); + errors.push(`Expected: Favorite Reports - Report Row 1 title font-family "Poppins, sans-serif"; Actual: ${elementFont}`); } //size if (elementSize === '14.3px') { - console.log('Passed: Favorite Reports - Report column 1 data font-size matched as expected'); + console.log('Passed: Favorite Reports - Report Row 1 title font-size matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report column 1 data font-size "14.3px"; Actual: "${elementSize}"`); + errors.push(`Expected: Favorite Reports - Report Row 1 title font-size "14.3px"; Actual: "${elementSize}"`); } //color if (elementColor === 'rgba(33, 37, 41, 1)') { - console.log('Passed: Favorite Reports - Report column 1 data text color matched as expected'); + console.log('Passed: Favorite Reports - Report Row 1 title color matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report column 1 data text color "rgba(33, 37, 41, 1)"'; Actual: "${elementColor}"`); + errors.push(`Expected: Favorite Reports - Report Row 1 title color "rgba(33, 37, 41, 1)"'; Actual: "${elementColor}"`); } //Throw summary if any validation failed @@ -4783,11 +4784,11 @@ const steps = [ } }, - //Favorite Reports - Run column 1 data + //Favorite Reports - Run Row 1 icon { - description: 'Favorite Reports - Run column 1 data', + description: 'Favorite Reports - Run Row 1 icon', action: async () => { - const multipleChecks = 'Favorite Reports - Run column 1 data'; + const multipleChecks = 'Favorite Reports - Run Row 1 icon'; const link = await driver.findElement(By.css('tr:nth-child(1) a.reportrun')); const element = await link.findElement(By.css('img')); @@ -4803,27 +4804,27 @@ const steps = [ //icon present if (await element.isDisplayed()) { - console.log('Passed: Run icon was displayed as expected'); + console.log('Passed: Run Row 1 icon was displayed as expected'); } else { - errors.push('Expected: Run icon was not displayed'); + errors.push('Expected: Run Row 1 icon was not displayed'); } //href path const actualHref = await link.getAttribute('href'); const url = new URL(actualHref); if (url.pathname === expectedPath) { - console.log('Passed: Run icon 1 href path matched as expected'); + console.log('Passed: Run Row 1 icon href path matched as expected'); } else { - errors.push(`Expected: Run icon 1 href path to be "${expectedPath}"; actual: "${url.pathname}"`); + errors.push(`Expected: Run Row 1 icon href path to be: "${expectedPath}"; actual: "${url.pathname}"`); } //href query parameters for (const [key, expectedValue] of Object.entries(expectedParams)) { const actualValue = url.searchParams.get(key); if (actualValue === expectedValue) { - console.log('Passed: Run icon 1 href param matched as expected'); + console.log('Passed: Run Row 1 icon href param matched as expected'); } else { - errors.push(`Expected: Run icon 1 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`); + errors.push(`Expected: Run Row 1 icon href param "${key}" to be: "${expectedValue}"; actual: "${actualValue}"`); } } @@ -4840,11 +4841,11 @@ const steps = [ } }, - //Favorite Reports - Download column 1 data + //Favorite Reports - Download Row 1 icon { - description: 'Favorite Reports - Download column 1 data', + description: 'Favorite Reports - Download Row 1 icon', action: async () => { - const multipleChecks = 'Favorite Reports - Download column 1 data'; + const multipleChecks = 'Favorite Reports - Download Row 1 icon'; const link = await driver.findElement(By.css('.table:nth-child(1) tr:nth-child(1) > .text-center a')); const element = await link.findElement(By.css('img')); @@ -4855,17 +4856,17 @@ const steps = [ //icon present if (await element.isDisplayed()) { - console.log('Passed: Download icon 1 was displayed as expected'); + console.log('Passed: Download Row 1 icon was displayed as expected'); } else { - errors.push('Expected: Download icon 1 was not displayed'); + errors.push('Expected: Download Row 1 icon was not displayed'); } //href const actualHref = await link.getAttribute('href'); if (actualHref && actualHref.endsWith(expectedHref)) { - console.log('Passed: Download icon 1 href matched expected'); + console.log('Passed: Download Row 1 icon href matched expected'); } else { - errors.push(`Expected: Download icon 1 href to end with "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Download Row 1 icon href to be: "https://correlation.edgate.com/exact/reports/exact_juan/ThisBeMyFile.xls"; actual: "${actualHref}"`); } //Throw summary if any validation failed @@ -4894,9 +4895,9 @@ const steps = [ //icon present if (await element.isDisplayed()) { - console.log('Passed: doc button was displayed as expected'); + console.log('Passed: Format Row 2 doc button was displayed as expected'); } else { - errors.push('Expected: doc button was not displayed'); + errors.push('Expected: Format Row 2 doc button was not displayed'); } //Throw summary if any validation failed @@ -4912,11 +4913,11 @@ const steps = [ } }, - //Favorite Reports - Report 2 column data + //Favorite Reports - Report Row 2 title { - description: 'Favorite Reports - Report column 2 data, text, and font size', + description: 'Favorite Reports - Report Row 2 title, text, and font size', action: async () => { - const multipleChecks = 'Favorite Reports - Report column 2 data'; + const multipleChecks = 'Favorite Reports - Report Row 2 title'; const element = await driver.findElement(By.css('.table:nth-child(1) tr:nth-child(2) > td:nth-child(2)')); @@ -4931,30 +4932,30 @@ const steps = [ //text if (elementText === 'Test Inc.') { - console.log('Passed: Favorite Reports - Report column 2 data matched as expected'); + console.log('Passed: Favorite Reports - Report Row 2 title matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report = "Test Inc." column 2 data; Actual: "${elementText}"`); + errors.push(`Expected: Favorite Reports - Report Row 2 title to be: "Test Inc."; Actual: "${elementText}"`); } //font if (elementFont === "Poppins, sans-serif") { - console.log('Passed: Favorite Reports - Report column 2 data font-family matched as expected'); + console.log('Passed: Favorite Reports - Report Report Row 2 title font-family matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report column 2 data font-family "Poppins, sans-serif"; Actual: ${elementFont}`); + errors.push(`Expected: Favorite Reports - Report Report Row 2 title font-family "Poppins, sans-serif"; Actual: ${elementFont}`); } //size if (elementSize === '14.3px') { - console.log('Passed: Favorite Reports - Report column 2 data font-size matched as expected'); + console.log('Passed: Favorite Reports - Report Report Row 2 title font-size matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report column 2 data font-size "14.3px"; Actual: "${elementSize}"`); + errors.push(`Expected: Favorite Reports - Report Report Row 2 title font-size "14.3px"; Actual: "${elementSize}"`); } //color if (elementColor === 'rgba(33, 37, 41, 1)') { - console.log('Passed: Favorite Reports - Report column 2 data text color matched as expected'); + console.log('Passed: Favorite Reports - Report Report Row 2 title text color matched as expected'); } else { - errors.push(`Expected: Favorite Reports - Report column 2 data text color "rgba(33, 37, 41, 1)"'; Actual: "${elementColor}"`); + errors.push(`Expected: Favorite Reports - Report Report Row 2 title text color "rgba(33, 37, 41, 1)"'; Actual: "${elementColor}"`); } //Throw summary if any validation failed @@ -4970,11 +4971,11 @@ const steps = [ } }, - //Favorite Reports - Run column 2 data + //Favorite Reports - Run Row 2 icon { - description: 'Favorite Reports - Run column 2 data', + description: 'Favorite Reports - Run Row 2 icon', action: async () => { - const multipleChecks = 'Favorite Reports - Run column 2 data'; + const multipleChecks = 'Favorite Reports - Run Row 2 icon'; const link = await driver.findElement(By.css('tr:nth-child(2) a.reportrun')); const element = await link.findElement(By.css('img')); @@ -4990,27 +4991,27 @@ const steps = [ //icon present if (await element.isDisplayed()) { - console.log('Passed: Run icon 2 was displayed as expected'); + console.log('Passed: Run Row 2 icon was displayed as expected'); } else { - errors.push('Expected: Run icon 2 was not displayed'); + errors.push('Expected: Run Row 2 icon was not displayed'); } //href path const actualHref = await link.getAttribute('href'); const url = new URL(actualHref); if (url.pathname === expectedPath) { - console.log('Passed: Run icon 2 href path matched as expected'); + console.log('Passed: Run Row 2 icon href path matched as expected'); } else { - errors.push(`Expected: Run icon 2 href path to be "${expectedPath}"; actual: "${url.pathname}"`); + errors.push(`Expected: Run Row 2 icon href path to be: "${expectedPath}"; actual: "${url.pathname}"`); } //href query parameters for (const [key, expectedValue] of Object.entries(expectedParams)) { const actualValue = url.searchParams.get(key); if (actualValue === expectedValue) { - console.log('Passed: Run icon 2 href param matched as expected'); + console.log('Passed: Run Row 2 icon href param matched as expected'); } else { - errors.push(`Expected: Run icon 2 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`); + errors.push(`Expected: Run Row 2 icon href param "${key}" to be: "${expectedValue}"; actual: "${actualValue}"`); } } @@ -5027,11 +5028,11 @@ const steps = [ } }, - //Favorite Reports - Download column 2 data + //Favorite Reports - Download Row 2 icon { - description: 'Favorite Reports - Download column 2 data', + description: 'Favorite Reports - Download Row 2 icon', action: async () => { - const multipleChecks = 'Favorite Reports - Download column 2 data'; + const multipleChecks = 'Favorite Reports - Download Row 2 icon'; const link = await driver.findElement(By.css('.table:nth-child(1) tr:nth-child(2) > .text-center a')); const element = await link.findElement(By.css('img')); @@ -5042,17 +5043,17 @@ const steps = [ //icon present if (await element.isDisplayed()) { - console.log('Passed: Download icon 2 was displayed as expected'); + console.log('Passed: Download Row 2 icon was displayed as expected'); } else { - errors.push('Expected: Download icon 2 was not displayed'); + errors.push('Expected: Download Row 2 icon was not displayed'); } //href const actualHref = await link.getAttribute('href'); if (actualHref && actualHref.endsWith(expectedHref)) { - console.log('Passed: Download icon 2 href matched expected'); + console.log('Passed: Download Row 2 icon href matched expected'); } else { - errors.push(`Expected: Download icon 2 href to end with "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Download Row 2 icon href to be: "/exact/reports/exact_juan/WordToYa.doc"; actual: "${actualHref}"`); } //Throw summary if any validation failed @@ -5188,7 +5189,7 @@ const steps = [ if (url.pathname === expectedPath) { console.log('Passed: Run icon 3 href path matched as expected'); } else { - errors.push(`Expected: Run icon 3 href path to be "${expectedPath}"; actual: "${url.pathname}"`); + errors.push(`Expected: Run icon 3 href path to be: "${expectedPath}"; actual: "${url.pathname}"`); } //href query parameters @@ -5197,7 +5198,7 @@ const steps = [ if (actualValue === expectedValue) { console.log('Passed: Run icon 3 href param matched as expected'); } else { - errors.push(`Expected: Run icon 3 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`); + errors.push(`Expected: Run icon 3 href param "${key}" to be: "${expectedValue}"; actual: "${actualValue}"`); } } @@ -5239,7 +5240,7 @@ const steps = [ if (actualHref && actualHref.endsWith(expectedHref)) { console.log('Passed: Download icon 3 href matched expected'); } else { - errors.push(`Expected: Download icon 3 href to end with "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Download icon 3 href to be: "/exact/reports/exact_juan/IDontThinkSo.pdf"; actual: "${actualHref}"`); } //Throw summary if any validation failed @@ -5375,7 +5376,7 @@ const steps = [ if (url.pathname === expectedPath) { console.log('Passed: Run icon 4 href path matched as expected'); } else { - errors.push(`Expected: Run icon 4 href path to be "${expectedPath}"; actual: "${url.pathname}"`); + errors.push(`Expected: Run icon 4 href path to be: "${expectedPath}"; actual: "${url.pathname}"`); } //href query parameters @@ -5384,7 +5385,7 @@ const steps = [ if (actualValue === expectedValue) { console.log('Passed: Run icon 4 href param matched as expected'); } else { - errors.push(`Expected: Run icon 4 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`); + errors.push(`Expected: Run icon 4 href param "${key}" to be: "${expectedValue}"; actual: "${actualValue}"`); } } @@ -5426,7 +5427,7 @@ const steps = [ if (actualHref && actualHref.endsWith(expectedHref)) { console.log('Passed: Download icon 4 href matched expected'); } else { - errors.push(`Expected: Download icon 4 href to end with "${expectedHref}"; actual: "${actualHref}"`); + errors.push(`Expected: Download icon 4 href to be: "/exact/reports/exact_juan/Checking.html"; actual: "${actualHref}"`); } //Throw summary if any validation failed @@ -5451,7 +5452,7 @@ const steps = [ const element = await driver.findElement(By.css('footer .pull-right > a')); const elementLogo = await element.findElement(By.css('img')); - const expectedHref = 'https://www.edgate.com'; + const expectedHref = 'https://www.edgate.com/'; //Track all errors const errors = []; @@ -5464,11 +5465,11 @@ const steps = [ } //href - browser resolves the link with a trailing slash, so remove it before comparing - const actualHref = await element.getDomAttribute('href'); + const actualHref = await element.getAttribute('href'); if (actualHref && actualHref === expectedHref) { console.log('Passed: EdGate Copyright Logo href matched as expected'); } else { - errors.push(`Expected: EdGate Copyright Logo href to be "https://www.edgate.com"; actual: "${actualHref}"`); + errors.push(`Expected: EdGate Copyright Logo href to be: "https://www.edgate.com/"; actual: "${actualHref}"`); } //Throw summary if any validation failed