Added Alignment Status filter checks
This commit is contained in:
@@ -472,7 +472,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 9 checkbox not found');
|
||||
}
|
||||
console.log('Passed: Grade: 9 checkbox present');
|
||||
console.log('Passed: Grade 9 checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -496,7 +496,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 10 checkbox not found');
|
||||
}
|
||||
console.log('Passed: Grade: 10 checkbox present');
|
||||
console.log('Passed: Grade 10 checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -520,7 +520,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 12 checkbox not found');
|
||||
}
|
||||
console.log('Passed: Grade: 12 checkbox present');
|
||||
console.log('Passed: Grade 12 checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -544,7 +544,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 11 checkbox not found');
|
||||
}
|
||||
console.log('Passed: Grade: 11 checkbox present');
|
||||
console.log('Passed: Grade 11 checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -635,7 +635,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Subject: Mathematics checkbox not found');
|
||||
}
|
||||
console.log('Passed: Subject: Mathematics checkbox present');
|
||||
console.log('Passed: Subject Mathematics checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -647,7 +647,7 @@ const steps = [
|
||||
if (elementText !== 'Mathematics (2011)') {
|
||||
throw new Error(`Expected: Subject: "Mathematics (2011)" checkbox label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Mathematics (2011) checkbox label matched as expected');
|
||||
console.log('Passed: Subject Mathematics (2011) checkbox label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -659,7 +659,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Subject: Science checkbox not found');
|
||||
}
|
||||
console.log('Passed: Subject: Science checkbox present');
|
||||
console.log('Passed: Subject Science checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -683,7 +683,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Subject: Language Arts checkbox not found');
|
||||
}
|
||||
console.log('Passed: Subject: Language Arts checkbox present');
|
||||
console.log('Passed: Subject Language Arts checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -707,7 +707,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Subject: Social Studies checkbox not found');
|
||||
}
|
||||
console.log('Passed: Subject: Social Studies checkbox present');
|
||||
console.log('Passed: Subject Social Studies checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -723,9 +723,9 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//NEXT ACTION - Select subject Mathematics and Language Arts
|
||||
{ description: 'Select subject Mathematics', action: async () => await driver.findElement(By.css('.show > li:nth-child(4) input')).click() },
|
||||
{ description: 'Select subject Language Arts', action: async () => await driver.findElement(By.css('.show > li:nth-child(6) input')).click() },
|
||||
//NEXT ACTION - Select subject Science and Social Studies
|
||||
{ description: 'Select subject Science', action: async () => await driver.findElement(By.css('.show > li:nth-child(4) input')).click() },
|
||||
{ description: 'Select subject Social Studies', action: async () => await driver.findElement(By.css('.show > li:nth-child(6) input')).click() },
|
||||
{ description: 'Wait for action to complete', action: async () => await driver.sleep(1000) },
|
||||
//NEXT ACTION - CLick alignment status dropdown
|
||||
{ description: 'Click Alignment Status dropdown', action: async () => await driver.findElement(By.css('.list-group-item:nth-child(3) .multiselect-selected-text')).click() },
|
||||
@@ -799,19 +799,19 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Alignment Status: Not Aligned checkbox not found');
|
||||
}
|
||||
console.log('Passed: Alignment Status: Not Aligned checkbox present');
|
||||
console.log('Passed: Alignment Status Not Aligned checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
//Alignment Status:Not Aligned (3259) label
|
||||
//Alignment Status:Not Aligned (3260) label
|
||||
{
|
||||
description: 'Validate Alignment Status Not Aligned (3259) label',
|
||||
description: 'Validate Alignment Status Not Aligned (3260) label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.show > li:nth-child(3) .checkbox')).getText();
|
||||
if (elementText !== 'Not Aligned (3259)') {
|
||||
throw new Error(`Expected: Alignment Status: "Not Aligned (3259)" checkbox label; Actual: "${elementText}"`);
|
||||
if (elementText !== 'Not Aligned (3260)') {
|
||||
throw new Error(`Expected: Alignment Status: "Not Aligned (3260)" checkbox label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status: Not Aligned (3259) checkbox label matched as expected');
|
||||
console.log('Passed: Alignment Status Not Aligned (3260) checkbox label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -823,7 +823,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Alignment Status: ECS Alignment checkbox not found');
|
||||
}
|
||||
console.log('Passed: Alignment Status: ECS Alignment checkbox present');
|
||||
console.log('Passed: Alignment Status ECS Alignment checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -847,19 +847,19 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Alignment Status: Pending checkbox not found');
|
||||
}
|
||||
console.log('Passed: Alignment Status: Pending checkbox present');
|
||||
console.log('Passed: Alignment Status Pending checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
//Alignment Status: Pending (17) label
|
||||
//Alignment Status: Pending (16) label
|
||||
{
|
||||
description: 'Validate Alignment Status Pending (17) label',
|
||||
description: 'Validate Alignment Status Pending (16) label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.show > li:nth-child(5) .checkbox')).getText();
|
||||
if (elementText !== 'Pending (17)') {
|
||||
throw new Error(`Expected: Alignment Status: "Pending (17)" checkbox label; Actual: "${elementText}"`);
|
||||
if (elementText !== 'Pending (16)') {
|
||||
throw new Error(`Expected: Alignment Status: "Pending (16)" checkbox label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status Pending (17) checkbox label matched as expected');
|
||||
console.log('Passed: Alignment Status Pending (16) checkbox label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -871,7 +871,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Alignment Status: Aligned checkbox not found');
|
||||
}
|
||||
console.log('Passed: Alignment Status: Aligned checkbox present');
|
||||
console.log('Passed: Alignment Status Aligned checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -895,7 +895,7 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Alignment Status: Needs Review checkbox not found');
|
||||
}
|
||||
console.log('Passed: Alignment Status: Needs Review checkbox present');
|
||||
console.log('Passed: Alignment Status Needs Review checkbox present');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -979,6 +979,18 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Filter Results title font size
|
||||
{
|
||||
description: 'Validate Filter Results title font size',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.well > b')).getCssValue('font-size');
|
||||
if (elementText !== '13px') {
|
||||
throw new Error(`Expected: Filter Results title font size to be "13px"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Filter Results title font size matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Content Set title
|
||||
{
|
||||
description: 'Validate Content Set title',
|
||||
@@ -991,6 +1003,18 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Content Set title font size
|
||||
{
|
||||
description: 'Validate Content Set title font size',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(1) > b')).getCssValue('font-size');
|
||||
if (elementText !== '13px') {
|
||||
throw new Error(`Expected: Content Set title font size to be "13px"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Content Set title font size matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Biology - QA checkbox
|
||||
{
|
||||
description: 'Verify Biology - QA checkbox icon is present',
|
||||
@@ -1027,6 +1051,18 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Grade title font size
|
||||
{
|
||||
description: 'Validate Grade title font size',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(3) > b')).getCssValue('font-size');
|
||||
if (elementText !== '13px') {
|
||||
throw new Error(`Expected: Grade title font size to be "13px"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade title font size matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade: Clear link text
|
||||
{
|
||||
description: 'Validate Grade: Clear link text',
|
||||
@@ -1035,7 +1071,7 @@ const steps = [
|
||||
if (elementText !== 'Clear') {
|
||||
throw new Error(`Expected: Grade: "Clear"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: Clear link text matched as expected');
|
||||
console.log('Passed: Grade Clear link text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1047,7 +1083,7 @@ const steps = [
|
||||
if (elementText !== 'See All>>') {
|
||||
throw new Error(`Expected: Grade: "See All>>"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: See All>> link text matched as expected');
|
||||
console.log('Passed: Grade See All>> link text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1059,19 +1095,19 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 6 checkbox icon not found');
|
||||
}
|
||||
console.log('Passed: Grade: 6 checkbox icon present');
|
||||
console.log('Passed: Grade 6 checkbox icon present');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade: 6 count
|
||||
//Grade: 6 label
|
||||
{
|
||||
description: 'Validate Grade: 6 count',
|
||||
description: 'Validate Grade: 6 label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(3) > label:nth-child(6)')).getText();
|
||||
if (elementText !== '6') {
|
||||
throw new Error(`Expected: Grade: "6"; Actual: "${elementText}"`);
|
||||
throw new Error(`Expected: Grade: "6" label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 6 label matched as expected');
|
||||
console.log('Passed: Grade 6 label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1083,43 +1119,43 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 7 checkbox icon not found');
|
||||
}
|
||||
console.log('Passed: Grade: 7 checkbox icon present');
|
||||
console.log('Passed: Grade 7 checkbox icon present');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade: 7 count
|
||||
//Grade: 7 label
|
||||
{
|
||||
description: 'Validate Grade: 7 count',
|
||||
description: 'Validate Grade: 7 label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('label:nth-child(9)')).getText();
|
||||
if (elementText !== '7') {
|
||||
throw new Error(`Expected: Grade: "7"; Actual: "${elementText}"`);
|
||||
throw new Error(`Expected: Grade: "7" label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 7 label matched as expected');
|
||||
console.log('Passed: Grade 7 label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade: 8 checkbox
|
||||
//Grade: 8 checkbox -active
|
||||
{
|
||||
description: 'Verify Grade: 8 checkbox icon is present',
|
||||
action: async () =>
|
||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metagrades48')), 5000).catch(() => false);
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 8 checkbox icon not found');
|
||||
description: 'Validate Grade: 8 checkbox option enabled',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.css('#metagrades48')).getAttribute('checked');
|
||||
if (elementStyle !== 'true') {
|
||||
throw new Error(`Grade: 8 checkbox option value checked did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 8 checkbox icon present');
|
||||
console.log('Passed: Grade 8 checkbox option value matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade: 8 count
|
||||
//Grade: 8 label
|
||||
{
|
||||
description: 'Validate Grade: 8 count',
|
||||
description: 'Validate Grade: 8 label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('label:nth-child(12)')).getText();
|
||||
if (elementText !== '8') {
|
||||
throw new Error(`Expected: Grade: "8"; Actual: "${elementText}"`);
|
||||
throw new Error(`Expected: Grade: "8" label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 8 label matched as expected');
|
||||
console.log('Passed: Grade 8 label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1131,19 +1167,19 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 9 checkbox icon not found');
|
||||
}
|
||||
console.log('Passed: Grade: 9 checkbox icon present');
|
||||
console.log('Passed: Grade 9 checkbox icon present');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade: 9 count
|
||||
//Grade: 9 label
|
||||
{
|
||||
description: 'Validate Grade: 9 count',
|
||||
description: 'Validate Grade: 9 label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('label:nth-child(15)')).getText();
|
||||
if (elementText !== '9') {
|
||||
throw new Error(`Expected: Grade: "9"; Actual: "${elementText}"`);
|
||||
throw new Error(`Expected: Grade: "9" label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 9 label matched as expected');
|
||||
console.log('Passed: Grade 9 label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1155,19 +1191,19 @@ const steps = [
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Grade: 10 checkbox icon not found');
|
||||
}
|
||||
console.log('Passed: Grade: 10 checkbox icon present');
|
||||
console.log('Passed: Grade 10 checkbox icon present');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade: 10 count
|
||||
//Grade: 10 label
|
||||
{
|
||||
description: 'Validate Grade: 10 count',
|
||||
description: 'Validate Grade: 10 label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('label:nth-child(18)')).getText();
|
||||
if (elementText !== '10') {
|
||||
throw new Error(`Expected: Grade: "10"; Actual: "${elementText}"`);
|
||||
throw new Error(`Expected: Grade: "10" label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 10 label matched as expected');
|
||||
console.log('Passed: Grade 10 label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1195,6 +1231,18 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Subject title font size
|
||||
{
|
||||
description: 'Validate Subject title font size',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(6) > b')).getCssValue('font-size');
|
||||
if (elementText !== '13px') {
|
||||
throw new Error(`Expected: Subject title font size to be "13px"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Subject title font size matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Subject: Clear link text
|
||||
{
|
||||
description: 'Validate Subject: Clear link text',
|
||||
@@ -1203,7 +1251,7 @@ const steps = [
|
||||
if (elementText !== 'Clear') {
|
||||
throw new Error(`Expected: Subject: "Clear"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Clear link text matched as expected');
|
||||
console.log('Passed: Subject Clear link text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1215,31 +1263,103 @@ const steps = [
|
||||
if (elementText !== 'See All>>') {
|
||||
throw new Error(`Expected: Subject: "See All>>"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Subject: See All>> link text matched as expected');
|
||||
console.log('Passed: Subject See All>> link text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Subject: Science checkbox
|
||||
//Subject: Science checkbox -active
|
||||
{
|
||||
description: 'Verify Subject: Science checkbox icon is present',
|
||||
action: async () =>
|
||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#metasubjectsScience')), 5000).catch(() => false);
|
||||
if (!expectedIcon) {
|
||||
throw new Error('Subject: Science checkbox icon not found');
|
||||
description: 'Validate Subject: Science checkbox option enabled',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.css('#metasubjectsScience')).getAttribute('checked');
|
||||
if (elementStyle !== 'true') {
|
||||
throw new Error(`Subject: Science checkbox option value checked did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Science checkbox icon present');
|
||||
console.log('Passed: Subject Science checkbox option value matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Subject: Science count
|
||||
//Subject: Science label
|
||||
{
|
||||
description: 'Validate Subject: Science count',
|
||||
description: 'Validate Subject: Science label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(6) > label')).getText();
|
||||
if (elementText !== 'Science') {
|
||||
throw new Error(`Expected: Subject: "Science"; Actual: "${elementText}"`);
|
||||
throw new Error(`Expected: Subject: "Science" label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Science label matched as expected');
|
||||
console.log('Passed: Subject Science label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Alignment Status title
|
||||
{
|
||||
description: 'Validate Alignment Status title',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(8) > b')).getText();
|
||||
if (elementText !== 'Alignment Status') {
|
||||
throw new Error(`Expected: "Alignment Status" title; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status title matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Alignment Status title font size
|
||||
{
|
||||
description: 'Validate Alignment Status title font size',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(8) > b')).getCssValue('font-size');
|
||||
if (elementText !== '13px') {
|
||||
throw new Error(`Expected: Alignment Status title font size to be "13px"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status title font size matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Alignment Status: Clear link text
|
||||
{
|
||||
description: 'Validate Alignment Status: Clear link text',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(8) > small > a')).getText();
|
||||
if (elementText !== 'Clear') {
|
||||
throw new Error(`Expected: Alignment Status: "Clear"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status Clear link text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Alignment Status: See All link text
|
||||
{
|
||||
description: 'Validate Alignment Status: See All link text',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(8) .modalink')).getText();
|
||||
if (elementText !== 'See All>>') {
|
||||
throw new Error(`Expected: Alignment Status: "See All>>"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status See All>> link text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Alignment Status: Pending checkbox -active
|
||||
{
|
||||
description: 'Validate Alignment Status: Pending checkbox option enabled',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.css('#metaAlignmentStatusPending')).getAttribute('checked');
|
||||
if (elementStyle !== 'true') {
|
||||
throw new Error(`Alignment Status: Pending checkbox option value checked did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status Pending checkbox option value matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Pending label
|
||||
{
|
||||
description: 'Validate Pending label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.form-group:nth-child(8) > label')).getText();
|
||||
if (elementText !== 'Pending') {
|
||||
throw new Error(`Expected: "Pending"; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Pending label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1385,7 +1505,7 @@ const steps = [
|
||||
if (elementText !== 'Grade: 8') {
|
||||
throw new Error(`Expected: "Grade: 8" text did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 8 text matched as expected');
|
||||
console.log('Passed: Grade 8 text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1397,7 +1517,7 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||
throw new Error(`Expected: Grade: 8 button color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 8 button color matched as expected');
|
||||
console.log('Passed: Grade 8 button color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1409,11 +1529,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(255, 0, 0, 1)') {
|
||||
throw new Error(`Expected: Grade: 8 button close icon color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 8 button close icon color matched as expected');
|
||||
console.log('Passed: Grade 8 button close icon color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//SubjectScience filter button
|
||||
//Subject Science filter button
|
||||
{
|
||||
description: 'Validate Subject Science filter button text',
|
||||
action: async () => {
|
||||
@@ -1421,11 +1541,11 @@ const steps = [
|
||||
if (elementText !== 'Subject: Science') {
|
||||
throw new Error(`Expected: "Subject: Science" text did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Science text matched as expected');
|
||||
console.log('Passed: Subject Science text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//SubjectScience filter button color -dark gray
|
||||
//Subject Science filter button color -dark gray
|
||||
{
|
||||
description: 'Verify Subject Science filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1433,11 +1553,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||
throw new Error(`Expected: Subject: Science button color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Science button color matched as expected');
|
||||
console.log('Passed: Subject Science button color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//SubjectScience button close icon color -red
|
||||
//Subject Science button close icon color -red
|
||||
{
|
||||
description: 'Verify Subject Science filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1445,11 +1565,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(255, 0, 0, 1)') {
|
||||
throw new Error(`Expected: Subject: Science button close icon color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Science button close icon color matched as expected');
|
||||
console.log('Passed: Subject Science button close icon color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//SubjectSocialStudies filter button
|
||||
//Subject Social Studies filter button
|
||||
{
|
||||
description: 'Validate Subject Social Studies filter button text',
|
||||
action: async () => {
|
||||
@@ -1457,11 +1577,11 @@ const steps = [
|
||||
if (elementText !== 'Subject: Social Studies') {
|
||||
throw new Error(`Expected: "Subject: Social Studies" text did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Social Studies text matched as expected');
|
||||
console.log('Passed: Subject Social Studies text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//SubjectSocialStudies filter button color -dark gray
|
||||
//Subject Social Studies filter button color -dark gray
|
||||
{
|
||||
description: 'Verify Subject Social Studies filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1469,11 +1589,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||
throw new Error(`Expected: Subject: Social Studies button color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Social Studies button color matched as expected');
|
||||
console.log('Passed: Subject Social Studies button color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//SubjectSocialStudies button close icon color -red
|
||||
//Subject Social Studies button close icon color -red
|
||||
{
|
||||
description: 'Verify Subject Social Studies filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1481,11 +1601,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(255, 0, 0, 1)') {
|
||||
throw new Error(`Expected: Subject: Social Studies button close icon color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Subject: Social Studies button close icon color matched as expected');
|
||||
console.log('Passed: Subject Social Studies button close icon color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AlignmentStatusPending filter button
|
||||
//Alignment Status Pending filter button
|
||||
{
|
||||
description: 'Validate Alignment Status Pending filter button text',
|
||||
action: async () => {
|
||||
@@ -1493,11 +1613,11 @@ const steps = [
|
||||
if (elementText !== 'Alignment Status: Pending') {
|
||||
throw new Error(`Expected: "Alignment Status: Pending" text did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status: Pending text matched as expected');
|
||||
console.log('Passed: Alignment Status Pending text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AlignmentStatusPending filter button color -dark gray
|
||||
//Alignment Status Pending filter button color -dark gray
|
||||
{
|
||||
description: 'Verify Alignment Status Pending filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1505,11 +1625,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||
throw new Error(`Expected: Alignment Status: Pending button color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status: Pending button color matched as expected');
|
||||
console.log('Passed: Alignment Status Pending button color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AlignmentStatusPending button close icon color -red
|
||||
//Alignment Status Pending button close icon color -red
|
||||
{
|
||||
description: 'Verify Alignment Status Pending filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1517,11 +1637,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(255, 0, 0, 1)') {
|
||||
throw new Error(`Expected: Alignment Status: Pending button close icon color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status: Pending button close icon color matched as expected');
|
||||
console.log('Passed: Alignment Status Pending button close icon color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AlignmentStatusAligned filter button
|
||||
//Alignment Status Aligned filter button
|
||||
{
|
||||
description: 'Validate Alignment Status Aligned filter button text',
|
||||
action: async () => {
|
||||
@@ -1529,11 +1649,11 @@ const steps = [
|
||||
if (elementText !== 'Alignment Status: Aligned') {
|
||||
throw new Error(`Expected: "Alignment Status: Aligned" text did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status: Aligned text matched as expected');
|
||||
console.log('Passed: Alignment Status Aligned text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AlignmentStatusAligned filter button color -dark gray
|
||||
//Alignment Status Aligned filter button color -dark gray
|
||||
{
|
||||
description: 'Verify Alignment Status Aligned filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1541,11 +1661,11 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||
throw new Error(`Expected: Alignment Status: Aligned button color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status: Aligned button color matched as expected');
|
||||
console.log('Passed: Alignment Status Aligned button color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AlignmentStatusAligned button close icon color -red
|
||||
//Alignment Status Aligned button close icon color -red
|
||||
{
|
||||
description: 'Verify Alignment Status Aligned filter buttion close icon color',
|
||||
action: async () => {
|
||||
@@ -1553,7 +1673,7 @@ const steps = [
|
||||
if (elementStyle !== 'rgba(255, 0, 0, 1)') {
|
||||
throw new Error(`Expected: Alignment Status: Aligned button close icon color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Alignment Status: Aligned button close icon color matched as expected');
|
||||
console.log('Passed: Alignment Status Aligned button close icon color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1647,10 +1767,10 @@ const steps = [
|
||||
description: 'Validate Filtered Content 1 Alignment Pending label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('#alignstatuslink873578654 > .display-alignment')).getText();
|
||||
if (elementText !== 'Alignment Pending') {
|
||||
throw new Error(`Expected: Filtered Content 1 Alignment Pending label did not match; Actual: "${elementText}"`);
|
||||
if (elementText !== 'Alignment Pending (reset)') {
|
||||
throw new Error(`Expected: Filtered Content 1 Alignment Pending (reset) label did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Filtered Content 1 Alignment Pending label matched as expected');
|
||||
console.log('Passed: Filtered Content 1 Alignment Pending (reset) label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1779,10 +1899,10 @@ const steps = [
|
||||
description: 'Validate Filtered Content 2 Alignment Pending label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('#alignstatuslink873578658 > .display-alignment')).getText();
|
||||
if (elementText !== 'Alignment Pending') {
|
||||
throw new Error(`Expected: Filtered Content 2 Alignment Pending label did not match; Actual: "${elementText}"`);
|
||||
if (elementText !== 'Alignment Pending (reset)') {
|
||||
throw new Error(`Expected: Filtered Content 2 Alignment Pending (reset) label did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Filtered Content 2 Alignment Pending label matched as expected');
|
||||
console.log('Passed: Filtered Content 2 Alignment Pending (reset) label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user