Add dashboard and My Standards search tests; update existing tests and results
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,10 +55,11 @@ const steps = [
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('.e-heading'));
|
||||
|
||||
//Get text, color, and size
|
||||
//Get text, font, size, and color
|
||||
const elementText = await element.getText();
|
||||
const elementColor = await element.getCssValue('color');
|
||||
const elementFont = await element.getCssValue('font-family');
|
||||
const elementSize = await element.getCssValue('font-size');
|
||||
const elementColor = await element.getCssValue('color');
|
||||
|
||||
//Track all errors
|
||||
const errors = [];
|
||||
@@ -71,6 +72,14 @@ const steps = [
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font
|
||||
if (elementFont === 'Poppins, sans-serif') {
|
||||
console.log('Passed: Dashboard - Page title text font matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Page title text font "Poppins, sans-serif"; Actual: "${elementFont}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -navy blue
|
||||
if (elementColor === 'rgba(40, 39, 90, 1)') {
|
||||
console.log('Passed: Dashboard - Page title text color matched as expected');
|
||||
@@ -122,10 +131,11 @@ const steps = [
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('.standards-compare h2'));
|
||||
|
||||
//Get text, color, and size
|
||||
//Get text, font, size, and color
|
||||
const elementText = await element.getText();
|
||||
const elementColor = await element.getCssValue('color');
|
||||
const elementFont = await element.getCssValue('font-family');
|
||||
const elementSize = await element.getCssValue('font-size');
|
||||
const elementColor = await element.getCssValue('color');
|
||||
|
||||
//Track all errors
|
||||
const errors = [];
|
||||
@@ -138,6 +148,22 @@ const steps = [
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font
|
||||
if (elementFont === 'Poppins, sans-serif') {
|
||||
console.log('Passed: Dashboard - Semantic Standards Comparison Widget title font matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Semantic Standards Comparison Widget title font "Poppins, sans-serif"; Actual: "${elementFont}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate size
|
||||
if (elementSize === '18px') {
|
||||
console.log('Passed: Dashboard - Semantic Standards Comparison Widget title text font-size matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Semantic Standards Comparison Widget title text font-size "18px"; Actual: "${elementSize}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -navy blue
|
||||
if (elementColor === 'rgba(40, 39, 90, 1)') {
|
||||
console.log('Passed: Dashboard - Semantic Standards Comparison Widget title text color matched as expected');
|
||||
@@ -173,10 +199,11 @@ const steps = [
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('#sscMap-tab'));
|
||||
|
||||
//Get text, color, and size
|
||||
//Get text, font, size, and color
|
||||
const elementText = await element.getText();
|
||||
const elementColor = await element.getCssValue('color');
|
||||
const elementFont = await element.getCssValue('font-family');
|
||||
const elementSize = await element.getCssValue('font-size');
|
||||
const elementColor = await element.getCssValue('color');
|
||||
|
||||
//Track all errors
|
||||
const errors = [];
|
||||
@@ -189,6 +216,14 @@ const steps = [
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font
|
||||
if (elementFont === 'Poppins, sans-serif') {
|
||||
console.log('Passed: Dashboard - National Standards tab title font matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - National Standards tab title font "Poppins, sans-serif"; Actual: "${elementFont}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -navy blue
|
||||
if (elementColor === 'rgba(40, 39, 90, 1)') {
|
||||
console.log('Passed: Dashboard - National Standards tab title text color matched as expected');
|
||||
@@ -224,10 +259,11 @@ const steps = [
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('#sscFilterLaunch-tab'));
|
||||
|
||||
//Get text, color, and size
|
||||
//Get text, font, size, and color
|
||||
const elementText = await element.getText();
|
||||
const elementColor = await element.getCssValue('color');
|
||||
const elementFont = await element.getCssValue('font-family');
|
||||
const elementSize = await element.getCssValue('font-size');
|
||||
const elementColor = await element.getCssValue('color');
|
||||
|
||||
//Track all errors
|
||||
const errors = [];
|
||||
@@ -240,6 +276,14 @@ const steps = [
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font
|
||||
if (elementFont === 'Poppins, sans-serif') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title font matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Custom Comparison tab title font "Poppins, sans-serif"; Actual: "${elementFont}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -gray
|
||||
if (elementColor === 'rgba(182, 186, 181, 1)') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title color matched as expected');
|
||||
@@ -413,16 +457,17 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Dashboard - National Standards tab title, text, and font size (dimmed)
|
||||
//National Standards tab title, text, and font size (dimmed)
|
||||
{
|
||||
description: 'Validate Dashboard - National Standards tab title text, color, and size',
|
||||
description: 'Validate National Standards tab title text, color, and size',
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('#sscMap-tab'));
|
||||
|
||||
//Get text, color, and size
|
||||
//Get text, font, size, and color
|
||||
const elementText = await element.getText();
|
||||
const elementColor = await element.getCssValue('color');
|
||||
const elementFont = await element.getCssValue('font-family');
|
||||
const elementSize = await element.getCssValue('font-size');
|
||||
const elementColor = await element.getCssValue('color');
|
||||
|
||||
//Track all errors
|
||||
const errors = [];
|
||||
@@ -435,6 +480,14 @@ const steps = [
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font
|
||||
if (elementFont === 'Poppins, sans-serif') {
|
||||
console.log('Passed: Dashboard - National Standards tab title font matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - National Standards tab title font "Poppins, sans-serif"; Actual: "${elementFont}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -gray
|
||||
if (elementColor === 'rgba(182, 186, 181, 1)') {
|
||||
console.log('Passed: Dashboard - National Standards tab title text color matched as expected');
|
||||
@@ -464,41 +517,50 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Dashboard - Custom Comparison tab title and color (active)
|
||||
//Custom Comparison tab title and color (active)
|
||||
{
|
||||
description: 'Validate Dashboard - Custom Comparison tab title, text color, and size',
|
||||
description: 'Validate Custom Comparison tab title, text color, and size',
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('#sscFilterLaunch-tab'));
|
||||
|
||||
//Get text, color, and size
|
||||
//Get text, font, size, and color
|
||||
const elementText = await element.getText();
|
||||
const elementColor = await element.getCssValue('color');
|
||||
const elementFont = await element.getCssValue('font-family');
|
||||
const elementSize = await element.getCssValue('font-size');
|
||||
const elementColor = await element.getCssValue('color');
|
||||
|
||||
//Track all errors
|
||||
const errors = [];
|
||||
|
||||
//Validate text
|
||||
if (elementText === 'Custom Comparison') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title matched as expected');
|
||||
console.log('Passed: Custom Comparison tab title matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - "Custom Comparison" tab title; Actual: "${elementText}"`;
|
||||
const message = `Expected: "Custom Comparison" tab title; Actual: "${elementText}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font
|
||||
if (elementFont === 'Poppins, sans-serif') {
|
||||
console.log('Passed: Custom Comparison tab title font matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Custom Comparison tab title font "Poppins, sans-serif"; Actual: "${elementFont}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -navy blue
|
||||
if (elementColor === 'rgba(40, 39, 90, 1)') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title color matched as expected');
|
||||
console.log('Passed: Custom Comparison tab title color matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Custom Comparison tab title color "rgba(40, 39, 90, 1)"; Actual: "${elementColor}"`;
|
||||
const message = `Expected: Custom Comparison tab title color "rgba(40, 39, 90, 1)"; Actual: "${elementColor}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font size
|
||||
if (elementSize === '15px') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title font size matched as expected');
|
||||
console.log('Passed: Custom Comparison tab title font size matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Custom Comparison tab title font size "15px"; Actual: "${elementSize}"`;
|
||||
const message = `Expected: Custom Comparison tab title font size "15px"; Actual: "${elementSize}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
@@ -522,9 +584,9 @@ const steps = [
|
||||
const elementText = await driver.findElement(By.css('#sscFilterLaunchPane > div > div')).getText();
|
||||
|
||||
if (elementText === `EdGate's advanced analysis tool provides semantic similarities, differences, and gaps across different state or organizational standards. Our advanced text analysis calculates semantic matches and provides a comprehensive comparison dataset for your team to make informed decisions faster and more effectively.`) {
|
||||
console.log("Passed: Dashboard - Custom Comparison info text matched as expected");
|
||||
console.log("Passed: Custom Comparison - info text matched as expected");
|
||||
} else {
|
||||
throw new Error(`Expected: Dashboard - "Custom Comparison info text did not match"; Actual: "${elementText}"`);
|
||||
throw new Error(`Expected: Custom Comparison - "Custom Comparison info text did not match"; Actual: "${elementText}"`);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -558,25 +620,25 @@ const steps = [
|
||||
|
||||
//Validate text
|
||||
if (elementText === 'Get Started') {
|
||||
console.log('Passed: Dashboard - Get Started button text matched as expected');
|
||||
console.log('Passed: Custom Comparison - Get Started button text matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - "Get Started" button text; Actual: "${elementText}"`;
|
||||
const message = `Expected: Custom Comparison - "Get Started" button text; Actual: "${elementText}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -green
|
||||
if (elementColor === 'rgba(48, 200, 172, 1)') {
|
||||
console.log('Passed: Dashboard - Get Started button color matched as expected');
|
||||
console.log('Passed: Custom Comparison - Get Started button color matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Get Started button color "rgba(48, 200, 172, 1)"; Actual: "${elementColor}"`;
|
||||
const message = `Expected: Custom Comparison - Get Started button color "rgba(48, 200, 172, 1)"; Actual: "${elementColor}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate button icon is present
|
||||
if (icon) {
|
||||
console.log('Passed: Dashboard - Get Started button icon is present');
|
||||
console.log('Passed: Custom Comparison - Get Started button icon is present');
|
||||
} else {
|
||||
const message = 'Expected: Dashboard - Get Started button icon not found';
|
||||
const message = 'Expected: Custom Comparison - Get Started button icon not found';
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
@@ -621,9 +683,9 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Dashboard - National Standards tab title, text, and font size (active)
|
||||
//Custom Comparison - National Standards tab title, text, and font size (active)
|
||||
{
|
||||
description: 'Validate Dashboard - National Standards tab title text, color, and size',
|
||||
description: 'Validate Custom Comparison - National Standards tab title text, color, and size',
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('#sscMap-tab'));
|
||||
|
||||
@@ -637,25 +699,25 @@ const steps = [
|
||||
|
||||
//Validate text
|
||||
if (elementText === 'National Standards') {
|
||||
console.log('Passed: Dashboard - National Standards tab title matched as expected');
|
||||
console.log('Passed: Custom Comparison - National Standards tab title matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - "National Standards"; Actual: "${elementText}"`;
|
||||
const message = `Expected: Custom Comparison - "National Standards"; Actual: "${elementText}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -navy blue
|
||||
if (elementColor === 'rgba(40, 39, 90, 1)') {
|
||||
console.log('Passed: Dashboard - National Standards tab title text color matched as expected');
|
||||
console.log('Passed: Custom Comparison - National Standards tab title text color matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - National Standards tab title text color "rgba(40, 39, 90, 1)"'; Actual: "${elementColor}"`;
|
||||
const message = `Expected: Custom Comparison - National Standards tab title text color "rgba(40, 39, 90, 1)"'; Actual: "${elementColor}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font size
|
||||
if (elementSize === '15px') {
|
||||
console.log('Passed: Dashboard - National Standards tab title text font-size matched as expected');
|
||||
console.log('Passed: Custom Comparison - National Standards tab title text font-size matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - National Standards tab title text font-size "15px"; Actual: "${elementSize}"`;
|
||||
const message = `Expected: Custom Comparison - National Standards tab title text font-size "15px"; Actual: "${elementSize}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
@@ -672,9 +734,9 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Dashboard - Custom Comparison tab title and color (dimmed)
|
||||
//Custom Comparison - Custom Comparison tab title and color (dimmed)
|
||||
{
|
||||
description: 'Validate Dashboard - Custom Comparison tab title, text color, and size',
|
||||
description: 'Validate Custom Comparison - Custom Comparison tab title, text color, and size',
|
||||
action: async () => {
|
||||
const element = await driver.findElement(By.css('#sscFilterLaunch-tab'));
|
||||
|
||||
@@ -688,25 +750,25 @@ const steps = [
|
||||
|
||||
//Validate text
|
||||
if (elementText === 'Custom Comparison') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title matched as expected');
|
||||
console.log('Passed: Custom Comparison - Custom Comparison tab title matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - "Custom Comparison" tab title; Actual: "${elementText}"`;
|
||||
const message = `Expected: Custom Comparison - "Custom Comparison" tab title; Actual: "${elementText}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate color -gray
|
||||
if (elementColor === 'rgba(182, 186, 181, 1)') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title color matched as expected');
|
||||
console.log('Passed: Custom Comparison - Custom Comparison tab title color matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Custom Comparison tab title color "rgba(182, 186, 181, 1)"; Actual: "${elementColor}"`;
|
||||
const message = `Expected: Custom Comparison - Custom Comparison tab title color "rgba(182, 186, 181, 1)"; Actual: "${elementColor}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
//Validate font size
|
||||
if (elementSize === '15px') {
|
||||
console.log('Passed: Dashboard - Custom Comparison tab title font size matched as expected');
|
||||
console.log('Passed: Custom Comparison - Custom Comparison tab title font size matched as expected');
|
||||
} else {
|
||||
const message = `Expected: Dashboard - Custom Comparison tab title font size "15px"; Actual: "${elementSize}"`;
|
||||
const message = `Expected: Custom Comparison - Custom Comparison tab title font size "15px"; Actual: "${elementSize}"`;
|
||||
errors.push(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user