Updated Mathematics count label
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user