Correcrted script name and cleaned script
This commit is contained in:
@@ -4,7 +4,7 @@ import XLSX from 'xlsx';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
const ExACT_alignStandardsPage = (req, res) => {
|
const ExACT_alignStandardsPage = (req, res) => {
|
||||||
res.send('<h2>ExACT Automated Test Script - Align Content Page: Initiated</h2>');
|
res.send('<h2>ExACT Automated Test Script - Align Standards Page: Initiated</h2>');
|
||||||
(async function example() {
|
(async function example() {
|
||||||
let driver = await new Builder().forBrowser('chrome').build();
|
let driver = await new Builder().forBrowser('chrome').build();
|
||||||
let testStatus = 'Failed';
|
let testStatus = 'Failed';
|
||||||
@@ -3633,9 +3633,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#concept-873599009-599773300-168638762 label')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#concept-873599009-599773300-168638762 label')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 Inversions primary toggle icon not found');
|
throw new Error('Alginged Content 1 Inversions primary toggle icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 Inversions primary toggle icon present');
|
console.log('Passed: Alginged Content 1 Inversions primary toggle icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3738,9 +3738,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#concept-873599009-599773300-168638762 > td:nth-child(3) > span > i')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#concept-873599009-599773300-168638762 > td:nth-child(3) > span > i')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 Inversions remove concepts icon not found');
|
throw new Error('Alginged Content 1 Inversions remove concepts icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 Inversions remove concepts icon present');
|
console.log('Passed: Alginged Content 1 Inversions remove concepts icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3750,9 +3750,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 1_599772973_873599009 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 1_599772973_873599009 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 grade 3 check icon not found');
|
throw new Error('Alginged Content 1 grade 3 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 grade 3 check icon present');
|
console.log('Passed: Alginged Content 1 grade 3 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3762,9 +3762,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 3_599773035_873599009 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 3_599773035_873599009 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 grade 4 check icon not found');
|
throw new Error('Alginged Content 1 grade 4 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 grade 4 check icon present');
|
console.log('Passed: Alginged Content 1 grade 4 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3774,9 +3774,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 4_599773098_873599009 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 4_599773098_873599009 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 grade 5 check icon not found');
|
throw new Error('Alginged Content 1 grade 5 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 grade 5 check icon present');
|
console.log('Passed: Alginged Content 1 grade 5 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3786,9 +3786,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 5_599773163_873599009 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 5_599773163_873599009 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 grade 6 check icon not found');
|
throw new Error('Alginged Content 1 grade 6 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 grade 6 check icon present');
|
console.log('Passed: Alginged Content 1 grade 6 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3798,9 +3798,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 7_599773234_873599009 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 7_599773234_873599009 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 grade 7 check icon not found');
|
throw new Error('Alginged Content 1 grade 7 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 grade 7 check icon present');
|
console.log('Passed: Alginged Content 1 grade 7 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3810,9 +3810,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 8_599773300_873599009 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 8_599773300_873599009 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 1 grade 8 check icon not found');
|
throw new Error('Alginged Content 1 grade 8 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 1 grade 8 check icon present');
|
console.log('Passed: Alginged Content 1 grade 8 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3860,7 +3860,7 @@ const steps = [
|
|||||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||||
throw new Error(`Aligned Content 1 clear button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Aligned Content 1 clear button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Aligned Content 1 clear button color matched as expected');
|
console.log('Passed: Aligned Content 1 Clear button color matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3942,9 +3942,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\33 8_599772826_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\33 8_599772826_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade K check icon not found');
|
throw new Error('Alginged Content 2 grade K check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade K check icon present');
|
console.log('Passed: Alginged Content 2 grade K check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3954,9 +3954,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\33 9_599772874_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\33 9_599772874_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 1 check icon not found');
|
throw new Error('Alginged Content 2 grade 1 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 1 check icon present');
|
console.log('Passed: Alginged Content 2 grade 1 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3966,9 +3966,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\33 9_599772874_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\33 9_599772874_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 2 check icon not found');
|
throw new Error('Alginged Content 2 grade 2 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 2 check icon present');
|
console.log('Passed: Alginged Content 2 grade 2 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3978,9 +3978,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 1_599772973_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 1_599772973_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 3 check icon not found');
|
throw new Error('Alginged Content 2 grade 3 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 3 check icon present');
|
console.log('Passed: Alginged Content 2 grade 3 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -3990,9 +3990,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 3_599773035_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 3_599773035_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 4 check icon not found');
|
throw new Error('Alginged Content 2 grade 4 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 4 check icon present');
|
console.log('Passed: Alginged Content 2 grade 4 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -4002,9 +4002,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 4_599773098_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 4_599773098_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 5 check icon not found');
|
throw new Error('Alginged Content 2 grade 5 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 5 check icon present');
|
console.log('Passed: Alginged Content 2 grade 5 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -4014,9 +4014,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 5_599773163_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 5_599773163_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 6 check icon not found');
|
throw new Error('Alginged Content 2 grade 6 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 6 check icon present');
|
console.log('Passed: Alginged Content 2 grade 6 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -4026,9 +4026,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 7_599773234_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 7_599773234_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 7 check icon not found');
|
throw new Error('Alginged Content 2 grade 7 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 7 check icon present');
|
console.log('Passed: Alginged Content 2 grade 7 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -4038,9 +4038,9 @@ const steps = [
|
|||||||
action: async () =>
|
action: async () =>
|
||||||
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 8_599773300_873599383 .fa')), 5000).catch(() => false);
|
{ const expectedIcon = await driver.wait(until.elementLocated(By.css('#\\34 8_599773300_873599383 .fa')), 5000).catch(() => false);
|
||||||
if (!expectedIcon) {
|
if (!expectedIcon) {
|
||||||
throw new Error('Alginged content 2 grade 8 check icon not found');
|
throw new Error('Alginged Content 2 grade 8 check icon not found');
|
||||||
}
|
}
|
||||||
console.log('Passed: Alginged content 2 grade 8 check icon present');
|
console.log('Passed: Alginged Content 2 grade 8 check icon present');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -4088,7 +4088,7 @@ const steps = [
|
|||||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||||
throw new Error(`Aligned Content 2 clear button color did not match; Actual: "${elementStyle}"`);
|
throw new Error(`Aligned Content 2 clear button color did not match; Actual: "${elementStyle}"`);
|
||||||
}
|
}
|
||||||
console.log('Passed: Aligned Content 2 clear button color matched as expected');
|
console.log('Passed: Aligned Content 2 Clear button color matched as expected');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user