Added text size font checks to headers
This commit is contained in:
@@ -51,19 +51,19 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('.e-heading')).getCssValue('color');
|
const elementStyle = await driver.findElement(By.css('.e-heading')).getCssValue('color');
|
||||||
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
||||||
throw new Error(`Dashboard title text color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Dashboard title text color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Dashboard title text color matched as expected');
|
console.log('Passed: Dashboard title text color matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//Dashboard title text font
|
//Dashboard title text font size
|
||||||
{
|
{
|
||||||
description: 'Validate dashboard title text font size',
|
description: 'Validate dashboard title text font size',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('.e-heading')).getCssValue('font-size');
|
const elementStyle = await driver.findElement(By.css('.e-heading')).getCssValue('font-size');
|
||||||
if (elementStyle !== '32px') {
|
if (elementStyle !== '32px') {
|
||||||
throw new Error(`Dashboard title text font-size did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Dashboard title text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Dashboard title text font-size matched as expected');
|
console.log('Passed: Dashboard title text font-size matched as expected');
|
||||||
}
|
}
|
||||||
@@ -88,19 +88,19 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('.h-100 h2:nth-child(2)')).getCssValue('color');
|
const elementStyle = await driver.findElement(By.css('.h-100 h2:nth-child(2)')).getCssValue('color');
|
||||||
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
||||||
throw new Error(`Dashboard - My Content Widget title text color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Dashboard - My Content Widget title text color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Dashboard - My Content Widget title text color matched as expected');
|
console.log('Passed: Dashboard - My Content Widget title text color matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//Dashboard My Content Widget title text font
|
//Dashboard My Content Widget title text font size
|
||||||
{
|
{
|
||||||
description: 'Validate dashboard My Content widget title text font size',
|
description: 'Validate dashboard My Content widget title text font size',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('.h-100 h2:nth-child(2)')).getCssValue('font-size');
|
const elementStyle = await driver.findElement(By.css('.h-100 h2:nth-child(2)')).getCssValue('font-size');
|
||||||
if (elementStyle !== '18px') {
|
if (elementStyle !== '18px') {
|
||||||
throw new Error(`Dashboard - My Content Widget title text font-size did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Dashboard - My Content Widget title text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Dashboard - My Content Widget title text font-size matched as expected');
|
console.log('Passed: Dashboard - My Content Widget title text font-size matched as expected');
|
||||||
}
|
}
|
||||||
@@ -124,7 +124,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('#badge_content_total')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.css('#badge_content_total')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
||||||
throw new Error(`Dashboard - My Content Item Count button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Dashboard - My Content Item Count button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Dashboard - My Content Item Count button color matched as expected');
|
console.log('Passed: Dashboard - My Content Item Count button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -136,19 +136,31 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('#badge_content_total')).getCssValue('color');
|
const elementStyle = await driver.findElement(By.css('#badge_content_total')).getCssValue('color');
|
||||||
if (elementStyle !== 'rgba(255, 255, 255, 1)') {
|
if (elementStyle !== 'rgba(255, 255, 255, 1)') {
|
||||||
throw new Error(`Dashboard - My Content Item Count font color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Dashboard - My Content Item Count font color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Dashboard - My Content Item Count font color matched as expected');
|
console.log('Passed: Dashboard - My Content Item Count font color matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Dashboard My Content Item Count title text font size
|
||||||
|
{
|
||||||
|
description: 'Validate Dashboard My Content Item Count text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.css('#badge_content_total')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13.5px') {
|
||||||
|
throw new Error(`Expected: Dashboard - My Content Item Count text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Dashboard - My Content Item Count title text font-size matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//Ellipsis icon color -dark blue
|
//Ellipsis icon color -dark blue
|
||||||
{
|
{
|
||||||
description: 'Validate ellipsis icon color',
|
description: 'Validate ellipsis icon color',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('.fa-ellipsis-h')).getCssValue('color');
|
const elementStyle = await driver.findElement(By.css('.fa-ellipsis-h')).getCssValue('color');
|
||||||
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
||||||
throw new Error(`Ellipsis icon color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Ellipsis icon color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Ellipsis icon color matched as expected');
|
console.log('Passed: Ellipsis icon color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -160,7 +172,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('.col-12 > .fa')).getCssValue('color');
|
const elementStyle = await driver.findElement(By.css('.col-12 > .fa')).getCssValue('color');
|
||||||
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
||||||
throw new Error(`Search icon color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Search icon color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Search icon color matched as expected');
|
console.log('Passed: Search icon color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -220,7 +232,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('#mycontentlist > #content-org-list > .content-org .fa')).getCssValue('color');
|
const elementStyle = await driver.findElement(By.css('#mycontentlist > #content-org-list > .content-org .fa')).getCssValue('color');
|
||||||
if (elementStyle !== 'rgba(73, 80, 87, 1)') {
|
if (elementStyle !== 'rgba(73, 80, 87, 1)') {
|
||||||
throw new Error(`Biology-QA edit icon color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Biology-QA edit icon color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Bioloby-QA edit icon color matched as expected');
|
console.log('Passed: Bioloby-QA edit icon color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -238,6 +250,18 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Biology-QA Count text font size
|
||||||
|
{
|
||||||
|
description: 'Validate Biology-QA Count text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.css('#mycontentlist > #content-org-list > .content-org .badge')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '12.87px') {
|
||||||
|
throw new Error(`Expected: Dashboard - Biology-QA Count text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Dashboard - MBiology-QA Count title text font-size matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//NEXT ACTION - NAVIGATE TO CONTENT PAGE
|
//NEXT ACTION - NAVIGATE TO CONTENT PAGE
|
||||||
{ description: 'Click Biology - QA link', action: async () => await driver.findElement(By.linkText('Biology - QA')).click() },
|
{ description: 'Click Biology - QA link', action: async () => await driver.findElement(By.linkText('Biology - QA')).click() },
|
||||||
|
|
||||||
@@ -304,7 +328,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaorgobjectid873576067')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaorgobjectid873576067')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Biology - QA checkbox icon not found');
|
throw new Error('Expected: Biology - QA checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Biology - QA checkbox icon present');
|
console.log('Passed: Biology - QA checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -364,7 +388,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades49')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades49')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('9th grade checkbox icon not found');
|
throw new Error('Expected: 9th grade checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: 9th grade checkbox icon present');
|
console.log('Passed: 9th grade checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -388,7 +412,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades51')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades51')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('10th grade checkbox icon not found');
|
throw new Error('Expected: 10th grade checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: 10th grade checkbox icon present');
|
console.log('Passed: 10th grade checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -412,7 +436,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades52')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades52')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('11th grade checkbox icon not found');
|
throw new Error('Expected: 11th grade checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: 11th grade checkbox icon present');
|
console.log('Passed: 11th grade checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -436,7 +460,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades53')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades53')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('12th grade checkbox icon not found');
|
throw new Error('Expected: 12th grade checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: 12th grade checkbox icon present');
|
console.log('Passed: 12th grade checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -460,7 +484,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades48')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades48')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('8th grade checkbox icon not found');
|
throw new Error('Expected: 8th grade checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: 8th grade checkbox icon present');
|
console.log('Passed: 8th grade checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -520,7 +544,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metasubjectsScience')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metasubjectsScience')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Science checkbox icon not found');
|
throw new Error('Expected: Science checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Science checkbox icon present');
|
console.log('Passed: Science checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -544,7 +568,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metasubjectsMathematics')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metasubjectsMathematics')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Mathematics checkbox icon not found');
|
throw new Error('Expected: Mathematics checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Mathematics checkbox icon present');
|
console.log('Passed: Mathematics checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -568,7 +592,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.id('metasubjectsSocial and Emotional Learning')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.id('metasubjectsSocial and Emotional Learning')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Social and Emotional Learning checkbox icon not found');
|
throw new Error('Expected: Social and Emotional Learning checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Social and Emotional Learning checkbox icon present');
|
console.log('Passed: Social and Emotional Learning checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -616,7 +640,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusNot\\ Aligned')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusNot\\ Aligned')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Not Aligned checkbox icon not found');
|
throw new Error('Expected: Not Aligned checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Not Aligned checkbox icon present');
|
console.log('Passed: Not Aligned checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -640,7 +664,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusECS\\ Alignment')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusECS\\ Alignment')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('ECS Alignment checkbox icon not found');
|
throw new Error('Expected: ECS Alignment checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: ECS Alignment checkbox icon present');
|
console.log('Passed: ECS Alignment checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -664,7 +688,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusPending')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusPending')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Pending checkbox icon not found');
|
throw new Error('Expected: Pending checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Pending checkbox icon present');
|
console.log('Passed: Pending checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -688,7 +712,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusAligned')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metaAlignmentStatusAligned')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Aligned checkbox icon not found');
|
throw new Error('Expected: Aligned checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Aligned checkbox icon present');
|
console.log('Passed: Aligned checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -743,6 +767,18 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Content breadcrumb text color -green
|
||||||
|
{
|
||||||
|
description: 'Validate Content breadcrumb text color',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.css('.breadcrumb-item:nth-child(2)')).getCssValue('color');
|
||||||
|
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
||||||
|
throw new Error(`Expected: Content breadcrumb text color did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content breadcrumb text color matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//Detail View button
|
//Detail View button
|
||||||
{
|
{
|
||||||
description: 'Validate Detail View button text',
|
description: 'Validate Detail View button text',
|
||||||
@@ -761,7 +797,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Detail View')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.linkText('Detail View')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
||||||
throw new Error(`Detail View button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Detail View button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Detail View button color matched as expected');
|
console.log('Passed: Detail View button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -779,13 +815,13 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//Edit View button color -green
|
//Edit View button color -white
|
||||||
{
|
{
|
||||||
description: 'Validate Edit View button color',
|
description: 'Validate Edit View button color',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Edit View')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.linkText('Edit View')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(248, 249, 250, 1)') {
|
if (elementStyle !== 'rgba(248, 249, 250, 1)') {
|
||||||
throw new Error(`Edit View button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Edit View button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Edit View button color matched as expected');
|
console.log('Passed: Edit View button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -797,7 +833,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.float-right > a:nth-child(1) > img')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.float-right > a:nth-child(1) > img')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Save icon not found');
|
throw new Error('Expected: Save icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Save icon present');
|
console.log('Passed: Save icon present');
|
||||||
}
|
}
|
||||||
@@ -821,7 +857,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.icon-link > img')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.icon-link > img')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Print icon not found');
|
throw new Error('Expected: Print icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Print icon present');
|
console.log('Passed: Print icon present');
|
||||||
}
|
}
|
||||||
@@ -1002,7 +1038,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.linkText('...')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.linkText('...')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Pagination separator icon not found');
|
throw new Error('Expected: Pagination separator icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Pagination separator icon present');
|
console.log('Passed: Pagination separator icon present');
|
||||||
}
|
}
|
||||||
@@ -1065,7 +1101,19 @@ const steps = [
|
|||||||
if (elementText !== 'AAA My Test III') {
|
if (elementText !== 'AAA My Test III') {
|
||||||
throw new Error(`Expected: Content 1 item "AAA My Test III" title; Actual: "${elementText}"`);
|
throw new Error(`Expected: Content 1 item "AAA My Test III" title; Actual: "${elementText}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 1 item AAA My Test III tittle matched as expected');
|
console.log('Passed: Content 1 item AAA My Test III title matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
//Content 1 Title font size
|
||||||
|
{
|
||||||
|
description: 'Validate Content 1 item AAA My Test III title text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.linkText('AAA My Test III')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13px') {
|
||||||
|
throw new Error(`Expected: Content 1 item "AAA My Test III" text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content 1 item AAA My Test III title text font-size matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1075,7 +1123,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .lo-title .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .lo-title .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Content 1 edit icon not found');
|
throw new Error('Expected: Content 1 edit icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 1 edit icon present');
|
console.log('Passed: Content 1 edit icon present');
|
||||||
}
|
}
|
||||||
@@ -1153,13 +1201,25 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Content 1 alignment reset label font size
|
||||||
|
{
|
||||||
|
description: 'Validate Content 1 ECS Alignement reset label text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.css('#alignstatuslink874454004 b')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13px') {
|
||||||
|
throw new Error(`Expected: Content 1 ECS Alignement reset label text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content 1 ECS Alignement reset label text font-size matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//Content 1 view standards button icon
|
//Content 1 view standards button icon
|
||||||
{
|
{
|
||||||
description: 'Verify Content 1 View Standards button icon is present',
|
description: 'Verify Content 1 View Standards button icon is present',
|
||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .well .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .well .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Content 1 View Standards button icon not found');
|
throw new Error('Expected: Content 1 View Standards button icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 1 View Standards button icon present');
|
console.log('Passed: Content 1 View Standards button icon present');
|
||||||
}
|
}
|
||||||
@@ -1197,7 +1257,19 @@ const steps = [
|
|||||||
if (elementText !== 'Abrupt Climate Change') {
|
if (elementText !== 'Abrupt Climate Change') {
|
||||||
throw new Error(`Expected: Content 1 item "Abrupt Climate Change" title; Actual: "${elementText}"`);
|
throw new Error(`Expected: Content 1 item "Abrupt Climate Change" title; Actual: "${elementText}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 1 item Abrupt Climate Change tittle matched as expected');
|
console.log('Passed: Content 1 item Abrupt Climate Change title matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
//Content 1 Title font size
|
||||||
|
{
|
||||||
|
description: 'Validate Content 1 item Abrupt Climate Change title text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.linkText('Abrupt Climate Change')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13px') {
|
||||||
|
throw new Error(`Expected: Content 1 item "Abrupt Climate Change" text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content 1 item Abrupt Climate Change title text font-size matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1207,7 +1279,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .lo-title .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .lo-title .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Content 2 edit icon not found');
|
throw new Error('Expected: Content 2 edit icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 2 edit icon present');
|
console.log('Passed: Content 2 edit icon present');
|
||||||
}
|
}
|
||||||
@@ -1273,7 +1345,7 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//Content 2 alignment reset label
|
//Content 2 Alignment Pending reset label
|
||||||
{
|
{
|
||||||
description: 'Validate Content 2 Alignement Pending reset label',
|
description: 'Validate Content 2 Alignement Pending reset label',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
@@ -1285,13 +1357,25 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Content 2 Alignment Pending reset label font size
|
||||||
|
{
|
||||||
|
description: 'Validate Content 2 Alignment Pending reset label text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.css('#alignstatuslink873578650 b')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13px') {
|
||||||
|
throw new Error(`Expected: Content 2 Alignment Pending reset label text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content 2 Alignment Pending reset label text font-size matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//Content 2 view standards button icon
|
//Content 2 view standards button icon
|
||||||
{
|
{
|
||||||
description: 'Verify Content 2 View Standards button icon is present',
|
description: 'Verify Content 2 View Standards button icon is present',
|
||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .well .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .well .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Content 2 View Standards button icon not found');
|
throw new Error('Expected: Content 2 View Standards button icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 2 View Standards button icon present');
|
console.log('Passed: Content 2 View Standards button icon present');
|
||||||
}
|
}
|
||||||
@@ -1361,6 +1445,18 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Content breadcrumb text color -green
|
||||||
|
{
|
||||||
|
description: 'Validate Content breadcrumb text color',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.css('.breadcrumb-item:nth-child(2)')).getCssValue('color');
|
||||||
|
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
||||||
|
throw new Error(`Expected: Content breadcrumb text color did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content breadcrumb text color matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//Detail View button
|
//Detail View button
|
||||||
{
|
{
|
||||||
description: 'Validate Detail View button text',
|
description: 'Validate Detail View button text',
|
||||||
@@ -1379,7 +1475,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Detail View')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.linkText('Detail View')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
||||||
throw new Error(`Detail View button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Detail View button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Detail View button color matched as expected');
|
console.log('Passed: Detail View button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -1397,13 +1493,13 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//Edit View button color -green
|
//Edit View button color -white
|
||||||
{
|
{
|
||||||
description: 'Validate Edit View button color',
|
description: 'Validate Edit View button color',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Edit View')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.linkText('Edit View')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(248, 249, 250, 1)') {
|
if (elementStyle !== 'rgba(248, 249, 250, 1)') {
|
||||||
throw new Error(`Edit View button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Edit View button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Edit View button color matched as expected');
|
console.log('Passed: Edit View button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -1415,7 +1511,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.float-right > a:nth-child(1) > img')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.float-right > a:nth-child(1) > img')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Save icon not found');
|
throw new Error('Expected: Save icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Save icon present');
|
console.log('Passed: Save icon present');
|
||||||
}
|
}
|
||||||
@@ -1439,7 +1535,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.icon-link > img')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.icon-link > img')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Print icon not found');
|
throw new Error('Expected: Print icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Print icon present');
|
console.log('Passed: Print icon present');
|
||||||
}
|
}
|
||||||
@@ -1657,7 +1753,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.linkText('...')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.linkText('...')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Pagination separator icon not found');
|
throw new Error('Expected: Pagination separator icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Pagination separator icon present');
|
console.log('Passed: Pagination separator icon present');
|
||||||
}
|
}
|
||||||
@@ -1720,7 +1816,19 @@ const steps = [
|
|||||||
if (elementText !== 'All Species Inventory') {
|
if (elementText !== 'All Species Inventory') {
|
||||||
throw new Error(`Expected: Filtered Content 1 item "All Species Inventory" title; Actual: "${elementText}"`);
|
throw new Error(`Expected: Filtered Content 1 item "All Species Inventory" title; Actual: "${elementText}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Filtered Content 1 item All Species Inventory tittle matched as expected');
|
console.log('Passed: Filtered Content 1 item All Species Inventory title matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
//Filtered Content 1 Title font size
|
||||||
|
{
|
||||||
|
description: 'Validate Filtered Content 1 title text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.linkText('All Species Inventory')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13px') {
|
||||||
|
throw new Error(`Expected: Filtered content 1 item "All Species Inventory" tile text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content 1 item All Species Inventory title text font-size matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1730,7 +1838,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .lo-title .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .lo-title .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Filtered Content 1 edit icon not found');
|
throw new Error('Expected: Filtered Content 1 edit icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Filtered Content 1 edit icon present');
|
console.log('Passed: Filtered Content 1 edit icon present');
|
||||||
}
|
}
|
||||||
@@ -1808,13 +1916,25 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Filtered Content 1 Title font size
|
||||||
|
{
|
||||||
|
description: 'Validate Filtered Content 1 title text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.css('#alignstatuslink873578654 b')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13px') {
|
||||||
|
throw new Error(`Expected: Filtered content 1 item "All Species Inventory" reset link text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content 1 item All Species Inventory reset link text font-size matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//Filtered Content 1 view standards button icon
|
//Filtered Content 1 view standards button icon
|
||||||
{
|
{
|
||||||
description: 'Verify Content 1 View Standards button icon is present',
|
description: 'Verify Content 1 View Standards button icon is present',
|
||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .well .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(8) .well .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Content 1 View Standards button icon not found');
|
throw new Error('Expected: Content 1 View Standards button icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 1 View Standards button icon present');
|
console.log('Passed: Content 1 View Standards button icon present');
|
||||||
}
|
}
|
||||||
@@ -1852,7 +1972,19 @@ const steps = [
|
|||||||
if (elementText !== 'Altered Elephant Behavior') {
|
if (elementText !== 'Altered Elephant Behavior') {
|
||||||
throw new Error(`Expected: Filtered Content 2 item "Altered Elephant Behavior" title; Actual: "${elementText}"`);
|
throw new Error(`Expected: Filtered Content 2 item "Altered Elephant Behavior" title; Actual: "${elementText}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Filtered Content 2 item Altered Elephant Behavior tittle matched as expected');
|
console.log('Passed: Filtered Content 2 item Altered Elephant Behavior title matched as expected');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
//Filtered Content 2 Title font size
|
||||||
|
{
|
||||||
|
description: 'Validate Filtered Content 2 title text font size',
|
||||||
|
action: async () => {
|
||||||
|
const elementStyle = await driver.findElement(By.linkText('Altered Elephant Behavior')).getCssValue('font-size');
|
||||||
|
if (elementStyle !== '13px') {
|
||||||
|
throw new Error(`Expected: Filtered content 1 item "Altered Elephant Behavior" tile text font-size did not match; Actual: "${elementStyle}"`);
|
||||||
|
}
|
||||||
|
console.log('Passed: Content 1 item Altered Elephant Behavior title text font-size matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1862,7 +1994,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .lo-title .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .lo-title .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Content 2 edit icon not found');
|
throw new Error('Expected: Content 2 edit icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 2 edit icon present');
|
console.log('Passed: Content 2 edit icon present');
|
||||||
}
|
}
|
||||||
@@ -1934,7 +2066,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .well .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('.card:nth-child(9) .well .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Content 2 View Standards button icon not found');
|
throw new Error('Expected: Content 2 View Standards button icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Content 2 View Standards button icon present');
|
console.log('Passed: Content 2 View Standards button icon present');
|
||||||
}
|
}
|
||||||
@@ -1987,13 +2119,13 @@ const steps = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//Detail View button color -green
|
//Detail View button color -white
|
||||||
{
|
{
|
||||||
description: 'Validate Detail View button color',
|
description: 'Validate Detail View button color',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Detail View')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.linkText('Detail View')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(248, 249, 250, 1)') {
|
if (elementStyle !== 'rgba(248, 249, 250, 1)') {
|
||||||
throw new Error(`Detail View button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Detail View button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Detail View button color matched as expected');
|
console.log('Passed: Detail View button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -2017,7 +2149,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Edit View')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.linkText('Edit View')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
if (elementStyle !== 'rgba(40, 39, 90, 1)') {
|
||||||
throw new Error(`Edit View button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Edit View button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Edit View button color matched as expected');
|
console.log('Passed: Edit View button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -2029,7 +2161,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#selectToggle')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#selectToggle')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Select All checkbox icon not found');
|
throw new Error('Expected: Select All checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Select All checkbox icon present');
|
console.log('Passed: Select All checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -2065,7 +2197,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Actions')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.linkText('Actions')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
||||||
throw new Error(`Actions button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Actions button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Actions button color matched as expected');
|
console.log('Passed: Actions button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -2077,7 +2209,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#cu873578654')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#cu873578654')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('All Species Inventory alignment checkbox icon not found');
|
throw new Error('Expected: All Species Inventory alignment checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: All Species Inventory alignment checkbox icon present');
|
console.log('Passed: All Species Inventory alignment checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -2113,7 +2245,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('#\\38 73578654 .ml-3')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.css('#\\38 73578654 .ml-3')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
||||||
throw new Error(`All Species Inventory "Edit" button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: All Species Inventory "Edit" button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: All Species Inventory alignment "Edit" button color matched as expected');
|
console.log('Passed: All Species Inventory alignment "Edit" button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -2149,7 +2281,7 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#cu873578655')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#cu873578655')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Altered Elephant Behavior checkbox icon not found');
|
throw new Error('Expected: Altered Elephant Behavior checkbox icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Altered Elephant Behavior checkbox icon present');
|
console.log('Passed: Altered Elephant Behavior checkbox icon present');
|
||||||
}
|
}
|
||||||
@@ -2185,7 +2317,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.css('#\\38 73578655 .ml-3')).getCssValue('background-color');
|
const elementStyle = await driver.findElement(By.css('#\\38 73578655 .ml-3')).getCssValue('background-color');
|
||||||
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
if (elementStyle !== 'rgba(48, 200, 172, 1)') {
|
||||||
throw new Error(`Altered Elephant Behavior Edit button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Altered Elephant Behavior Edit button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Altered Elephant Behavior "Edit" button color matched as expected');
|
console.log('Passed: Altered Elephant Behavior "Edit" button color matched as expected');
|
||||||
}
|
}
|
||||||
@@ -2285,7 +2417,7 @@ const steps = [
|
|||||||
action: async () => {
|
action: async () => {
|
||||||
const elementStyle = await driver.findElement(By.linkText('Delete')).getCssValue('color');
|
const elementStyle = await driver.findElement(By.linkText('Delete')).getCssValue('color');
|
||||||
if (elementStyle !== 'rgba(220, 53, 69, 1)') {
|
if (elementStyle !== 'rgba(220, 53, 69, 1)') {
|
||||||
throw new Error(`Actions Delete text color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Expected: Actions Delete text color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Delete text color matched as expected');
|
console.log('Passed: Delete text color matched as expected');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user