Updated aligned status

This commit is contained in:
2025-08-13 10:12:17 -07:00
parent fd7f59da06
commit 3a37a3d9ba

View File

@@ -213,22 +213,22 @@ const steps = [
description: 'Validate Content 1 ECS Alignement label', description: 'Validate Content 1 ECS Alignement label',
action: async () => { action: async () => {
const elementText = await driver.findElement(By.css('#alignstatuslink874454004 > .display-alignment')).getText(); const elementText = await driver.findElement(By.css('#alignstatuslink874454004 > .display-alignment')).getText();
if (elementText !== 'Alignment Pending (reset)') { if (elementText !== 'Aligned (reset)') {
throw new Error(`Expected: Content 1 "ECS Alignement" label did not match; Actual: "${elementText}"`); throw new Error(`Expected: Content 1 "Aligned (reset)" label did not match; Actual: "${elementText}"`);
} }
console.log('Passed: Content 1 ECS Alignement label matched as expected'); console.log('Passed: Content 1 Aligned (reset) label matched as expected');
} }
}, },
//Content 1 alignment reset label //Content 1 alignment reset link
{ {
description: 'Validate Content 1 ECS Alignement reset label', description: 'Validate Content 1 Aligned (reset) reset link',
action: async () => { action: async () => {
const elementText = await driver.findElement(By.css('#alignstatuslink874454004 b')).getText(); const elementText = await driver.findElement(By.css('#alignstatuslink874454004 b')).getText();
if (elementText !== 'reset') { if (elementText !== 'reset') {
throw new Error(`Expected: Content 1 "ECS Alignement" reset label did not match; Actual: "${elementText}"`); throw new Error(`Expected: Content 1 "Aligned (reset)" reset liink did not match; Actual: "${elementText}"`);
} }
console.log('Passed: Content 1 ECS Alignement reset label matched as expected'); console.log('Passed: Content 1 Aligned (reset) reset link matched as expected');
} }
}, },
@@ -1250,7 +1250,7 @@ const steps = [
{ {
description: 'Validate Alignment title', description: 'Validate Alignment title',
action: async () => { action: async () => {
const elementText = await driver.findElement(By.css('#m7bc870b69c573f14118976177fc3fee7 > td:nth-child(1)')).getText(); const elementText = await driver.findElement(By.xpath('//tr[2]/td')).getText();
if (elementText !== 'Alignment Status') { if (elementText !== 'Alignment Status') {
throw new Error(`Expected: "Alignment Status" title did not match; Actual: "${elementText}"`); throw new Error(`Expected: "Alignment Status" title did not match; Actual: "${elementText}"`);
} }
@@ -1263,10 +1263,10 @@ const steps = [
description: 'Validate textbox value', description: 'Validate textbox value',
action: async () => { action: async () => {
const elementValue = await driver.findElement(By.css('td > .form-control')).getAttribute('value'); const elementValue = await driver.findElement(By.css('td > .form-control')).getAttribute('value');
if (elementValue !== 'Pending') { if (elementValue !== 'Aligned') {
throw new Error(`Expected: Alignment Status value "Pending"; Actual: "${elementValue}"`); throw new Error(`Expected: Alignment Status value "Aligned"; Actual: "${elementValue}"`);
} }
console.log('Passed: Alignment Status value Pending text matched as expected'); console.log('Passed: Alignment Status value Aligned text matched as expected');
} }
}, },