Updated Mathematics count label

This commit is contained in:
2025-08-11 13:30:13 -07:00
parent b810f1fc30
commit dfa257dc70

View File

@@ -708,15 +708,15 @@ const steps = [
} }
}, },
//Subject: Mathematics (2012) label //Subject: Mathematics (2011) label
{ {
description: 'Validate Subject Mathematics (2012) label', description: 'Validate Subject Mathematics (2011) label',
action: async () => { action: async () => {
const elementText = await driver.findElement(By.css('.show > li:nth-child(3) .checkbox')).getText(); const elementText = await driver.findElement(By.css('.show > li:nth-child(3) .checkbox')).getText();
if (elementText !== 'Mathematics (2012)') { if (elementText !== 'Mathematics (2011)') {
throw new Error(`Expected: Subject: "Mathematics (2012)" checkbox label; Actual: "${elementText}"`); throw new Error(`Expected: Subject: "Mathematics (2011)" checkbox label; Actual: "${elementText}"`);
} }
console.log('Passed: Subject Mathematics (2012) checkbox label matched as expected'); console.log('Passed: Subject Mathematics (2011) checkbox label matched as expected');
} }
}, },