Corrected href checks

This commit is contained in:
jhuerta
2026-10-22 16:25:16 -07:00
parent d2583998c8
commit ae97282f9a

View File

@@ -132,7 +132,7 @@ const steps = [
if (actualSrc && actualSrc === expectedSrc) { if (actualSrc && actualSrc === expectedSrc) {
console.log('Passed: ExACT by edgate logo src matched expected'); console.log('Passed: ExACT by edgate logo src matched expected');
} else { } else {
errors.push(`Expected: ExACT by edgate logo src: "${expectedSrc}"; but found "${actualSrc}"`); errors.push(`Expected: ExACT by edgate logo src: "${expectedSrc}"; actual: "${actualSrc}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -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}"; but found "${actualHref}"`); errors.push(`Expected: Help icon href to be "${expectedHref}"; 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}"; but found "${actualHref}"`); errors.push(`Expected: Dashboard Navigation href to be "${expectedHref}"; 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}"; but found "${actualHref}"`); errors.push(`Expected: Frameworks Navigation href to be "${expectedHref}"; 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}"; but found "${actualHref}"`); errors.push(`Expected: Align Navigation href to be "${expectedHref}"; 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}"; but found "${actualHref}"`); errors.push(`Expected: Upload Navigation href to be "${expectedHref}"; 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}"; but found "${actualHref}"`); errors.push(`Expected: Activity Report Navigation href to be "${expectedHref}"; 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}"; but found "${actualHref}"`); errors.push(`Expected: Report Navigation href to be "${expectedHref}"; 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}"; but found "${actualHref}"`); errors.push(`Expected: Approve Navigation href to be "${expectedHref}"; actual: "${actualHref}"`);
} }
//font-family //font-family
@@ -3367,7 +3367,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}"; but found "${actualHref}"`); errors.push(`Expected: See More button href to be "${expectedHref}"; actual: "${actualHref}"`);
} }
//font-family //font-family
@@ -4411,7 +4411,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}"; but found "${actualHref}"`); errors.push(`Expected: Manage Favorites button href to be "${expectedHref}"; actual: "${actualHref}"`);
} }
//font-family //font-family
@@ -4814,7 +4814,7 @@ const steps = [
if (url.pathname === expectedPath) { if (url.pathname === expectedPath) {
console.log('Passed: Run icon 1 href path matched as expected'); console.log('Passed: Run icon 1 href path matched as expected');
} else { } else {
errors.push(`Expected: Run icon 1 href path to be "${expectedPath}"; but found "${url.pathname}"`); errors.push(`Expected: Run icon 1 href path to be "${expectedPath}"; actual: "${url.pathname}"`);
} }
//href query parameters //href query parameters
@@ -4823,7 +4823,7 @@ const steps = [
if (actualValue === expectedValue) { if (actualValue === expectedValue) {
console.log('Passed: Run icon 1 href param matched as expected'); console.log('Passed: Run icon 1 href param matched as expected');
} else { } else {
errors.push(`Expected: Run icon 1 href param "${key}" to be "${expectedValue}"; but found "${actualValue}"`); errors.push(`Expected: Run icon 1 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`);
} }
} }
@@ -4865,7 +4865,7 @@ const steps = [
if (actualHref && actualHref.endsWith(expectedHref)) { if (actualHref && actualHref.endsWith(expectedHref)) {
console.log('Passed: Download icon 1 href matched expected'); console.log('Passed: Download icon 1 href matched expected');
} else { } else {
errors.push(`Expected: Download icon 1 href to end with "${expectedHref}"; but found "${actualHref}"`); errors.push(`Expected: Download icon 1 href to end with "${expectedHref}"; actual: "${actualHref}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -5001,7 +5001,7 @@ const steps = [
if (url.pathname === expectedPath) { if (url.pathname === expectedPath) {
console.log('Passed: Run icon 2 href path matched as expected'); console.log('Passed: Run icon 2 href path matched as expected');
} else { } else {
errors.push(`Expected: Run icon 2 href path to be "${expectedPath}"; but found "${url.pathname}"`); errors.push(`Expected: Run icon 2 href path to be "${expectedPath}"; actual: "${url.pathname}"`);
} }
//href query parameters //href query parameters
@@ -5010,7 +5010,7 @@ const steps = [
if (actualValue === expectedValue) { if (actualValue === expectedValue) {
console.log('Passed: Run icon 2 href param matched as expected'); console.log('Passed: Run icon 2 href param matched as expected');
} else { } else {
errors.push(`Expected: Run icon 2 href param "${key}" to be "${expectedValue}"; but found "${actualValue}"`); errors.push(`Expected: Run icon 2 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`);
} }
} }
@@ -5052,7 +5052,7 @@ const steps = [
if (actualHref && actualHref.endsWith(expectedHref)) { if (actualHref && actualHref.endsWith(expectedHref)) {
console.log('Passed: Download icon 2 href matched expected'); console.log('Passed: Download icon 2 href matched expected');
} else { } else {
errors.push(`Expected: Download icon 2 href to end with "${expectedHref}"; but found "${actualHref}"`); errors.push(`Expected: Download icon 2 href to end with "${expectedHref}"; actual: "${actualHref}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -5188,7 +5188,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}"; but found "${url.pathname}"`); errors.push(`Expected: Run icon 3 href path to be "${expectedPath}"; actual: "${url.pathname}"`);
} }
//href query parameters //href query parameters
@@ -5197,7 +5197,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}"; but found "${actualValue}"`); errors.push(`Expected: Run icon 3 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`);
} }
} }
@@ -5239,7 +5239,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}"; but found "${actualHref}"`); errors.push(`Expected: Download icon 3 href to end with "${expectedHref}"; actual: "${actualHref}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -5375,7 +5375,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}"; but found "${url.pathname}"`); errors.push(`Expected: Run icon 4 href path to be "${expectedPath}"; actual: "${url.pathname}"`);
} }
//href query parameters //href query parameters
@@ -5384,7 +5384,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}"; but found "${actualValue}"`); errors.push(`Expected: Run icon 4 href param "${key}" to be "${expectedValue}"; actual: "${actualValue}"`);
} }
} }
@@ -5426,7 +5426,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}"; but found "${actualHref}"`); errors.push(`Expected: Download icon 4 href to end with "${expectedHref}"; actual: "${actualHref}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed
@@ -5467,7 +5467,7 @@ const steps = [
if (actualSrc && actualSrc === expectedSrc) { if (actualSrc && actualSrc === expectedSrc) {
console.log('Passed: EdGate logo src matched expected'); console.log('Passed: EdGate logo src matched expected');
} else { } else {
errors.push(`Expected: EdGate logo src: "${expectedSrc}"; but found "${actualSrc}"`); errors.push(`Expected: EdGate logo src: "${expectedSrc}"; actual: "${actualSrc}"`);
} }
//Throw summary if any validation failed //Throw summary if any validation failed