Updated script due to recent changes

This commit is contained in:
2025-09-12 11:56:19 -07:00
parent aa68d97527
commit a90b63d48e

View File

@@ -1533,10 +1533,10 @@ const steps = [
description: 'Validate parent standard title',
action: async () => {
const elementText = await driver.findElement(By.css('.card:nth-child(8) > .card-header')).getText();
if (elementText !== 'CCSS.Math.Practice Mathematical Practices') {
throw new Error(`Expected: "CCSS.Math.Practice Mathematical Practices" title; Actual: "${elementText}"`);
if (elementText !== 'CCSS.Math.Practice Mathematical Practices (Grade 8)') {
throw new Error(`Expected: "CCSS.Math.Practice Mathematical Practices (Grade 8)" title; Actual: "${elementText}"`);
}
console.log('Passed: CCSS.Math.Practice Mathematical Practices title matched as expected');
console.log('Passed: CCSS.Math.Practice Mathematical Practices (Grade 8) title matched as expected');
}
},
@@ -2030,19 +2030,19 @@ const steps = [
}
},
//ECS Aligned label 2
//Not Aligned label 2
{
description: 'Validate Not Aligned label',
action: async () => {
const elementText = await driver.findElement(By.css('#lsn-id-873598488 span')).getText();
if (elementText !== 'ECS Aligned') {
throw new Error(`Expected: "ECS Aligned" label; Actual: "${elementText}"`);
if (elementText !== 'Not Aligned') {
throw new Error(`Expected: "Not Aligned" label; Actual: "${elementText}"`);
}
console.log('Passed: ECS Aligned label matched as expected');
console.log('Passed: Not Aligned label matched as expected');
}
},
//ECS Aligned checkbox icon 2
//Not Aligned checkbox icon 2
{
description: 'Verify Not Aligned checkbox icon is present',
action: async () =>
@@ -3210,7 +3210,7 @@ const steps = [
{
description: 'Validate Instruction text',
action: async () => {
const elementText = await driver.findElement(By.css('em')).getText();
const elementText = await driver.findElement(By.css('small:nth-child(3) > em')).getText();
if (elementText !== 'Uncheck any concepts you do not wish to tag to this resource.') {
throw new Error(`Expected: "Uncheck any concepts you do not wish to tag to this resource." label; Actual: "${elementText}"`);
}
@@ -3749,7 +3749,6 @@ const steps = [
}
},
//Aligned Content 1 Inversions remove concept DIV OK text
{
description: 'Validate Aligned Content 1 Inversions remove concept DIV OK text',