From a90b63d48e81b0927526d91975af18cdb2890642 Mon Sep 17 00:00:00 2001 From: jhuerta Date: Fri, 12 Sep 2025 11:56:19 -0700 Subject: [PATCH] Updated script due to recent changes --- tests/ExACT_alignStandardsPage.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tests/ExACT_alignStandardsPage.js b/tests/ExACT_alignStandardsPage.js index ca275d0..34d7379 100644 --- a/tests/ExACT_alignStandardsPage.js +++ b/tests/ExACT_alignStandardsPage.js @@ -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',