Compare commits

..

2 Commits

Author SHA1 Message Date
jhuerta
5a3946ad74 Cleaned upl href values 2026-10-26 16:42:57 -07:00
jhuerta
1f9e03c530 Cleaned up scripts 2026-10-23 18:17:42 -07:00
5 changed files with 115 additions and 105 deletions

Binary file not shown.

View File

@@ -4,6 +4,7 @@ import ExACT_landingPage from './tests/ExACT_landingPage.js';
//import ExACT_login from './tests/ExACT_login.js'; //import ExACT_login from './tests/ExACT_login.js';
//Dashboard //Dashboard
import correlationsDashboard from './tests/correlationsDashboard.js'; import correlationsDashboard from './tests/correlationsDashboard.js';
import ExACT_dashboardMyContent from './tests/ExACT_dashboardMyContent.js'; import ExACT_dashboardMyContent from './tests/ExACT_dashboardMyContent.js';
import ExACT_dashboardSemanticStandardsComparison from './tests/ExACT_dashboardSemanticStandardsComparison.js'; import ExACT_dashboardSemanticStandardsComparison from './tests/ExACT_dashboardSemanticStandardsComparison.js';
import dashboardMyStandards from './tests/dashboardMyStandards.js'; import dashboardMyStandards from './tests/dashboardMyStandards.js';
@@ -15,6 +16,8 @@ import ExACT_editItem from './tests/ExACT_editItem.js';
//Align //Align
import alignContentPage from './tests/Align/alignContentPage.js'; import alignContentPage from './tests/Align/alignContentPage.js';
import alignStandardsPage from './tests/Align/alignContentPage.js'; import alignStandardsPage from './tests/Align/alignContentPage.js';
import alignAutoAlignPage from './tests/Align/alignAutoAlignPage.js';
import ExACT_editItemAddConcept from './tests/ExACT_editItemAddConcept.js'; import ExACT_editItemAddConcept from './tests/ExACT_editItemAddConcept.js';
import ExACT_alignConceptsPage from './tests/ExACT_alignConceptsPage.js'; import ExACT_alignConceptsPage from './tests/ExACT_alignConceptsPage.js';
//Framework //Framework
@@ -39,6 +42,7 @@ app.get('/', (req, res) => {
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">DASHBOARD</h1> <h1 style="text-align:center; color:#055a8c; font-size:20px; ">DASHBOARD</h1>
<div style="padding:3px;"><strong><a href='/correlationsDashboard' target='_blank'>Correlations Dashboard</a></strong></div> <div style="padding:3px;"><strong><a href='/correlationsDashboard' target='_blank'>Correlations Dashboard</a></strong></div>
<div style="padding:3px;"><strong><a href='/ExACT_dashboardMyContent' target='_blank'>My Content Widget</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_dashboardMyContent' target='_blank'>My Content Widget</a></strong></div>
<div style="padding:3px;"><strong><a href='/ExACT_dashboardSemanticStandardsComparison' target='_blank'>Semantic Standards Comparison Widget</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_dashboardSemanticStandardsComparison' target='_blank'>Semantic Standards Comparison Widget</a></strong></div>
<div style="padding:3px;"><strong><a href='/dashboardMyStandards' target='_blank'>My Standards Widget</a></strong></div> <div style="padding:3px;"><strong><a href='/dashboardMyStandards' target='_blank'>My Standards Widget</a></strong></div>
<div style="padding:3px;"><strong><a href='/myStandardsSearchAlignedContent' target='_blank'>My Standards Search - Aligned Content</a></strong></div> <div style="padding:3px;"><strong><a href='/myStandardsSearchAlignedContent' target='_blank'>My Standards Search - Aligned Content</a></strong></div>
@@ -49,13 +53,16 @@ app.get('/', (req, res) => {
<div style="padding:3px;"><strong><a href='/ExACT_editItem' target='_blank'>Edit Item</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_editItem' target='_blank'>Edit Item</a></strong></div>
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">ALIGN</h1> <h1 style="text-align:center; color:#055a8c; font-size:20px; ">ALIGN</h1>
<div style="padding:3px;"><strong><a href='/alignContentPage' target='_blank'>Align Content Page</a></strong></div> <div style="padding:3px;"><strong><a href='/alignContentPage' target='_blank'>Content Page</a></strong></div>
<div style="padding:3px;"><strong><a href='/alignStandardsPage' target='_blank'>Standards Page</a></strong></div>
<div style="padding:3px;"><strong><a href='/alignAutoAlignPage' target='_blank'>AutoAlign Page</a></strong></div>
<div style="padding:3px;"><strong><a href='/ExACT_editItemAddConcept' target='_blank'>Align - Edit Content and Align Concept</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_editItemAddConcept' target='_blank'>Align - Edit Content and Align Concept</a></strong></div>
<div style="padding:3px;"><strong><a href='/alignStandardsPage' target='_blank'>Align Standards Page</a></strong></div>
<div style="padding:3px;"><strong><a href='/ExACT_alignConceptsPage' target='_blank'>Align Concepts Page</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_alignConceptsPage' target='_blank'>Align Concepts Page</a></strong></div>
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">FRAMEWORKS</h1> <h1 style="text-align:center; color:#055a8c; font-size:20px; ">FRAMEWORKS</h1>
<div style="padding:3px;"><strong><a href='/frameworkManagementPage' target='_blank'>Framework Management Page</a></strong></div> <div style="padding:3px;"><strong><a href='/frameworkManagementPage' target='_blank'>Framework Management Page</a></strong></div>
<div style="padding:3px;"><strong><a href='/ExACT_frameworkPublishingPage' target='_blank'>Framework Publishing Page</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_frameworkPublishingPage' target='_blank'>Framework Publishing Page</a></strong></div>
<div style="padding:3px;"><strong><a href='/ExACT_frameworkPublishFrameworkDIV' target='_blank'>Publish Framework DIV</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_frameworkPublishFrameworkDIV' target='_blank'>Publish Framework DIV</a></strong></div>
<div style="padding:3px;"><strong><a href='/ExACT_frameworkFrameworkGroupsDIV' target='_blank'>Framework Groups DIV</a></strong></div> <div style="padding:3px;"><strong><a href='/ExACT_frameworkFrameworkGroupsDIV' target='_blank'>Framework Groups DIV</a></strong></div>
@@ -84,6 +91,8 @@ app.get('/', (req, res) => {
//Align //Align
app.get('/alignContentPage', alignContentPage); app.get('/alignContentPage', alignContentPage);
app.get('/alignStandardsPage', alignStandardsPage); app.get('/alignStandardsPage', alignStandardsPage);
app.get('/alignAutoAlignPage', alignAutoAlignPage);
app.get('/ExACT_editItemAddConcept', ExACT_editItemAddConcept); app.get('/ExACT_editItemAddConcept', ExACT_editItemAddConcept);
app.get('/ExACT_alignConceptsPage', ExACT_alignConceptsPage); app.get('/ExACT_alignConceptsPage', ExACT_alignConceptsPage);
//Framework //Framework

View File

@@ -5,7 +5,7 @@ import XLSX from 'xlsx';
import path from 'path'; import path from 'path';
const alignContentPage = (req, res) => { const alignContentPage = (req, res) => {
res.send('<h2>ExACT Automated Test Script: Align Content Page(alignContentPage); Initiated</h2>'); res.send('<h2>ExACT Automated Test Script: Align - Content Page(alignContentPage); Initiated</h2>');
(async function example() { (async function example() {
let driver = await new Builder() let driver = await new Builder()
.forBrowser('chrome') .forBrowser('chrome')
@@ -32,7 +32,7 @@ const steps = [
action: async () => { action: async () => {
const multipleChecks = 'Log In'; const multipleChecks = 'Log In';
console.log('------------->| ALIGN CONTENT PAGE |<-------------'); console.log('------------->| ALIGN - CONTENT PAGE |<-------------');
const errors = []; const errors = [];
await driver.findElement(By.css('.form-control:nth-child(2)')).sendKeys('exact_juan'); await driver.findElement(By.css('.form-control:nth-child(2)')).sendKeys('exact_juan');
@@ -172,7 +172,7 @@ const steps = [
await driver.wait(async () => { await driver.wait(async () => {
const readyState = await driver.executeScript('return document.readyState'); const readyState = await driver.executeScript('return document.readyState');
return readyState === 'complete'; return readyState === 'complete';
}, 30000, 'ExACT Dashboard did not fully load within 30 seconds'); }, 30000, 'Align page did not fully load within 30 seconds');
//Wait until the element exists in the DOM //Wait until the element exists in the DOM
const contentTab = await driver.wait( const contentTab = await driver.wait(
@@ -244,9 +244,9 @@ const steps = [
//element background color //element background color
if (elementBgColor === 'rgba(40, 39, 90, 1)') { if (elementBgColor === 'rgba(40, 39, 90, 1)') {
console.log('Passed: Content tab title active background color matched as expected'); console.log('Passed: Content tab title background color matched as expected');
} else { } else {
errors.push(`Expected: Content tab title active background color: "rgba(40, 39, 90, 1)"; Actual: "${elementBgColor}"`); errors.push(`Expected: Content tab title background color: "rgba(40, 39, 90, 1)"; Actual: "${elementBgColor}"`);
} }
//element tool-tip text //element tool-tip text
@@ -279,9 +279,9 @@ const steps = [
//element tool-tip background color //element tool-tip background color
if (elementTitleBgColor === 'rgba(40, 39, 90, 1)') { if (elementTitleBgColor === 'rgba(40, 39, 90, 1)') {
console.log('Passed: Content tab tool-tip active background color matched as expected'); console.log('Passed: Content tab tool-tip background color matched as expected');
} else { } else {
errors.push(`Expected: Content tab tool-tip active background color: "rgba(40, 39, 90, 1)"; Actual: "${elementTitleBgColor}"`); errors.push(`Expected: Content tab tool-tip background color: "rgba(40, 39, 90, 1)"; Actual: "${elementTitleBgColor}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -353,9 +353,9 @@ const steps = [
//element background color //element background color
if (elementBgColor === 'rgba(0, 0, 0, 0)') { if (elementBgColor === 'rgba(0, 0, 0, 0)') {
console.log('Passed: Standards tab title dimmed background color matched as expected'); console.log('Passed: Standards tab title background color matched as expected');
} else { } else {
errors.push(`Expected: Standards tab title dimmed background color: "rgba(0, 0, 0, 0)"; Actual: "${elementBgColor}"`); errors.push(`Expected: Standards tab title background color: "rgba(0, 0, 0, 0)"; Actual: "${elementBgColor}"`);
} }
//element tool-tip text //element tool-tip text
@@ -388,9 +388,9 @@ const steps = [
//element tool-tip background color //element tool-tip background color
if (elementTitleBgColor === 'rgba(0, 0, 0, 0)') { if (elementTitleBgColor === 'rgba(0, 0, 0, 0)') {
console.log('Passed: Standards tab tool-tip active background color matched as expected'); console.log('Passed: Standards tab tool-tip background color matched as expected');
} else { } else {
errors.push(`Expected: Standards tab tool-tip active background color: "rgba(0, 0, 0, 0)"; Actual: "${elementTitleBgColor}"`); errors.push(`Expected: Standards tab tool-tip background color: "rgba(0, 0, 0, 0)"; Actual: "${elementTitleBgColor}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -462,9 +462,9 @@ const steps = [
//element background color //element background color
if (elementBgColor === 'rgba(0, 0, 0, 0)') { if (elementBgColor === 'rgba(0, 0, 0, 0)') {
console.log('Passed: AutoAlign tab title dimmed background color matched as expected'); console.log('Passed: AutoAlign tab title background color matched as expected');
} else { } else {
errors.push(`Expected: AutoAlign tab title dimmed background color: "rgba(0, 0, 0, 0)"; Actual: "${elementBgColor}"`); errors.push(`Expected: AutoAlign tab title background color: "rgba(0, 0, 0, 0)"; Actual: "${elementBgColor}"`);
} }
//element tool-tip text //element tool-tip text
@@ -497,9 +497,9 @@ const steps = [
//element tool-tip background color //element tool-tip background color
if (elementTitleBgColor === 'rgba(0, 0, 0, 0)') { if (elementTitleBgColor === 'rgba(0, 0, 0, 0)') {
console.log('Passed: AutoAlign tab tool-tip active background color matched as expected'); console.log('Passed: AutoAlign tab tool-tip background color matched as expected');
} else { } else {
errors.push(`Expected: AutoAlign tab tool-tip active background color: "rgba(0, 0, 0, 0)"; Actual: "${elementTitleBgColor}"`); errors.push(`Expected: AutoAlign tab tool-tip background color: "rgba(0, 0, 0, 0)"; Actual: "${elementTitleBgColor}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -740,7 +740,7 @@ const steps = [
await driver.wait(async () => { await driver.wait(async () => {
const readyState = await driver.executeScript('return document.readyState'); const readyState = await driver.executeScript('return document.readyState');
return readyState === 'complete'; return readyState === 'complete';
}, 30000, 'ExACT Dashboard did not fully load within 30 seconds'); }, 30000, 'Align page did not fully load within 30 seconds');
//Wait until the element exists in the DOM //Wait until the element exists in the DOM
const element = await driver.wait( const element = await driver.wait(

View File

@@ -5,7 +5,7 @@ import XLSX from 'xlsx';
import path from 'path'; import path from 'path';
const alignStandardsPage = (req, res) => { const alignStandardsPage = (req, res) => {
res.send('<h2>ExACT Automated Test Script - Align Standards Page(alignStandardsPage): Initiated</h2>'); res.send('<h2>ExACT Automated Test Script: Align - Standards Page(alignStandardsPage): Initiated</h2>');
(async function example() { (async function example() {
let driver = await new Builder() let driver = await new Builder()
.forBrowser('chrome') .forBrowser('chrome')
@@ -32,7 +32,7 @@ const steps = [
action: async () => { action: async () => {
const multipleChecks = 'Log In'; const multipleChecks = 'Log In';
console.log('------------->| ALIGN STANDARDS PAGE |<-------------'); console.log('------------->| ALIGN - STANDARDS PAGE |<-------------');
const errors = []; const errors = [];
await driver.findElement(By.css('.form-control:nth-child(2)')).sendKeys('exact_juan'); await driver.findElement(By.css('.form-control:nth-child(2)')).sendKeys('exact_juan');
@@ -172,7 +172,7 @@ const steps = [
await driver.wait(async () => { await driver.wait(async () => {
const readyState = await driver.executeScript('return document.readyState'); const readyState = await driver.executeScript('return document.readyState');
return readyState === 'complete'; return readyState === 'complete';
}, 30000, 'ExACT Dashboard did not fully load within 30 seconds'); }, 30000, 'Align page did not fully load within 30 seconds');
//Wait until the element exists in the DOM //Wait until the element exists in the DOM
const contentTab = await driver.wait( const contentTab = await driver.wait(
@@ -517,16 +517,16 @@ const steps = [
//NEXT ACTION //NEXT ACTION
{ {
description: 'Click Standards navigation link', description: 'Click Standards tab',
action: async () => { action: async () => {
await driver.findElement(By.linkText('Standards')).click(); await driver.findElement(By.linkText('Standards')).click();
console.log('----->| NEXT ACTION: Clicked Standards navigation link'); console.log('----->| NEXT ACTION: Clicked Standards tab');
//Wait for page readyState //Wait for page readyState
await driver.wait(async () => { await driver.wait(async () => {
const readyState = await driver.executeScript('return document.readyState'); const readyState = await driver.executeScript('return document.readyState');
return readyState === 'complete'; return readyState === 'complete';
}, 30000, 'ExACT Dashboard did not fully load within 30 seconds'); }, 30000, 'Standards page did not fully load within 30 seconds');
//Wait until the element exists in the DOM //Wait until the element exists in the DOM
const browseStandardsTitle = await driver.wait( const browseStandardsTitle = await driver.wait(

View File

@@ -24,7 +24,7 @@ const correlationsDashboard = (req, res) => {
//CONSTANTS //CONSTANTS
//My Content Widget //My Content Widget
const myContentItemTotals = '5040 items'; const myContentItemTotals = '5045 items';
const steps = [ const steps = [
{ description: 'Navigate to ExACT Landing Page', action: async () => await driver.navigate().to('https://correlation.edgate.com/exact/login.php') }, { 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) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Help icon href matched as expected'); console.log('Passed: Help icon href matched as expected');
} else { } 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 //Throw summary if any validation failed
@@ -416,7 +416,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Dashboard Navigation href matched as expected'); console.log('Passed: Dashboard Navigation href matched as expected');
} else { } 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 //font-family
@@ -499,7 +499,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Frameworks Navigation href matched as expected'); console.log('Passed: Frameworks Navigation href matched as expected');
} else { } 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 //font-family
@@ -582,7 +582,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Align Navigation href matched as expected'); console.log('Passed: Align Navigation href matched as expected');
} else { } 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 //font-family
@@ -665,7 +665,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Upload Navigation href matched as expected'); console.log('Passed: Upload Navigation href matched as expected');
} else { } 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 //font-family
@@ -748,7 +748,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Activity Report Navigation href matched as expected'); console.log('Passed: Activity Report Navigation href matched as expected');
} else { } 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 //font-family
@@ -831,7 +831,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Report Navigation href matched as expected'); console.log('Passed: Report Navigation href matched as expected');
} else { } 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 //font-family
@@ -914,7 +914,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Approve Navigation href matched as expected'); console.log('Passed: Approve Navigation href matched as expected');
} else { } 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 //font-family
@@ -1387,9 +1387,10 @@ const steps = [
{ position: 17, name: 'create me', count: '9', href: '/exact/contentset_edit_modal.php?id=1427607301' }, { 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: 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: 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: 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: 21, name: 'Review Screen Open', count: '5', href: '/exact/contentset_edit_modal.php?id=1483698269' },
{ position: 22, name: 'New One For Agust Post Night', count: '0', href: '/exact/contentset_edit_modal.php?id=1478966652' } { 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) { for (const exp of expected) {
@@ -3367,7 +3368,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: See More href matched as expected'); console.log('Passed: See More href matched as expected');
} else { } 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 //font-family
@@ -4411,7 +4412,7 @@ const steps = [
if (actualHref && actualHref === expectedHref) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: Manage Favorites href matched as expected'); console.log('Passed: Manage Favorites href matched as expected');
} else { } 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 //font-family
@@ -4707,9 +4708,9 @@ const steps = [
//icon present //icon present
if (await element.isDisplayed()) { 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 { } 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 //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 () => { 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)')); 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 //text
if (elementText === 'SoDontLook') { 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 { } 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 //font
if (elementFont === "Poppins, sans-serif") { 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 { } 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 //size
if (elementSize === '14.3px') { 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 { } 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 //color
if (elementColor === 'rgba(33, 37, 41, 1)') { 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 { } 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 //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 () => { 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 link = await driver.findElement(By.css('tr:nth-child(1) a.reportrun'));
const element = await link.findElement(By.css('img')); const element = await link.findElement(By.css('img'));
@@ -4803,27 +4804,27 @@ const steps = [
//icon present //icon present
if (await element.isDisplayed()) { 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 { } else {
errors.push('Expected: Run icon was not displayed'); errors.push('Expected: Run Row 1 icon was not displayed');
} }
//href path //href path
const actualHref = await link.getAttribute('href'); const actualHref = await link.getAttribute('href');
const url = new URL(actualHref); const url = new URL(actualHref);
if (url.pathname === expectedPath) { 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 { } 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 //href query parameters
for (const [key, expectedValue] of Object.entries(expectedParams)) { for (const [key, expectedValue] of Object.entries(expectedParams)) {
const actualValue = url.searchParams.get(key); const actualValue = url.searchParams.get(key);
if (actualValue === expectedValue) { 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 { } 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 () => { 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 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')); const element = await link.findElement(By.css('img'));
@@ -4855,17 +4856,17 @@ const steps = [
//icon present //icon present
if (await element.isDisplayed()) { 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 { } else {
errors.push('Expected: Download icon 1 was not displayed'); errors.push('Expected: Download Row 1 icon was not displayed');
} }
//href //href
const actualHref = await link.getAttribute('href'); const actualHref = await link.getAttribute('href');
if (actualHref && actualHref.endsWith(expectedHref)) { 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 { } 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 //Throw summary if any validation failed
@@ -4894,9 +4895,9 @@ const steps = [
//icon present //icon present
if (await element.isDisplayed()) { 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 { } 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 //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 () => { 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)')); 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 //text
if (elementText === 'Test Inc.') { 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 { } 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 //font
if (elementFont === "Poppins, sans-serif") { 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 { } 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 //size
if (elementSize === '14.3px') { 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 { } 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 //color
if (elementColor === 'rgba(33, 37, 41, 1)') { 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 { } 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 //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 () => { 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 link = await driver.findElement(By.css('tr:nth-child(2) a.reportrun'));
const element = await link.findElement(By.css('img')); const element = await link.findElement(By.css('img'));
@@ -4990,27 +4991,27 @@ const steps = [
//icon present //icon present
if (await element.isDisplayed()) { 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 { } else {
errors.push('Expected: Run icon 2 was not displayed'); errors.push('Expected: Run Row 2 icon was not displayed');
} }
//href path //href path
const actualHref = await link.getAttribute('href'); const actualHref = await link.getAttribute('href');
const url = new URL(actualHref); const url = new URL(actualHref);
if (url.pathname === expectedPath) { 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 { } 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 //href query parameters
for (const [key, expectedValue] of Object.entries(expectedParams)) { for (const [key, expectedValue] of Object.entries(expectedParams)) {
const actualValue = url.searchParams.get(key); const actualValue = url.searchParams.get(key);
if (actualValue === expectedValue) { 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 { } 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 () => { 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 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')); const element = await link.findElement(By.css('img'));
@@ -5042,17 +5043,17 @@ const steps = [
//icon present //icon present
if (await element.isDisplayed()) { 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 { } else {
errors.push('Expected: Download icon 2 was not displayed'); errors.push('Expected: Download Row 2 icon was not displayed');
} }
//href //href
const actualHref = await link.getAttribute('href'); const actualHref = await link.getAttribute('href');
if (actualHref && actualHref.endsWith(expectedHref)) { 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 { } 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 //Throw summary if any validation failed
@@ -5188,7 +5189,7 @@ const steps = [
if (url.pathname === expectedPath) { if (url.pathname === expectedPath) {
console.log('Passed: Run icon 3 href path matched as expected'); console.log('Passed: Run icon 3 href path matched as expected');
} else { } 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 //href query parameters
@@ -5197,7 +5198,7 @@ const steps = [
if (actualValue === expectedValue) { if (actualValue === expectedValue) {
console.log('Passed: Run icon 3 href param matched as expected'); console.log('Passed: Run icon 3 href param matched as expected');
} else { } 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)) { if (actualHref && actualHref.endsWith(expectedHref)) {
console.log('Passed: Download icon 3 href matched expected'); console.log('Passed: Download icon 3 href matched expected');
} else { } 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 //Throw summary if any validation failed
@@ -5375,7 +5376,7 @@ const steps = [
if (url.pathname === expectedPath) { if (url.pathname === expectedPath) {
console.log('Passed: Run icon 4 href path matched as expected'); console.log('Passed: Run icon 4 href path matched as expected');
} else { } 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 //href query parameters
@@ -5384,7 +5385,7 @@ const steps = [
if (actualValue === expectedValue) { if (actualValue === expectedValue) {
console.log('Passed: Run icon 4 href param matched as expected'); console.log('Passed: Run icon 4 href param matched as expected');
} else { } 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)) { if (actualHref && actualHref.endsWith(expectedHref)) {
console.log('Passed: Download icon 4 href matched expected'); console.log('Passed: Download icon 4 href matched expected');
} else { } 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 //Throw summary if any validation failed
@@ -5451,7 +5452,7 @@ const steps = [
const element = await driver.findElement(By.css('footer .pull-right > a')); const element = await driver.findElement(By.css('footer .pull-right > a'));
const elementLogo = await element.findElement(By.css('img')); const elementLogo = await element.findElement(By.css('img'));
const expectedHref = 'https://www.edgate.com'; const expectedHref = 'https://www.edgate.com/';
//Track all errors //Track all errors
const errors = []; const errors = [];
@@ -5464,11 +5465,11 @@ const steps = [
} }
//href - browser resolves the link with a trailing slash, so remove it before comparing //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) { if (actualHref && actualHref === expectedHref) {
console.log('Passed: EdGate Copyright Logo href matched as expected'); console.log('Passed: EdGate Copyright Logo href matched as expected');
} else { } 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 //Throw summary if any validation failed