Added LogOut and updated test results

This commit is contained in:
2025-05-09 10:24:10 -07:00
parent 7c399ee06d
commit 51314bc4a3

View File

@@ -4,7 +4,7 @@ import XLSX from 'xlsx';
import path from 'path'; import path from 'path';
const ExACT_alignConceptsPage = (req, res) => { const ExACT_alignConceptsPage = (req, res) => {
res.send('<h2>ExACT Automated Test Script - Align Concepts Page: Initiated</h2>'); res.send('<h2>ExACT Automated Test Script - Align Concepts Page(ExACT_alignConceptsPage): Initiated</h2>');
(async function example() { (async function example() {
let driver = await new Builder().forBrowser('chrome').build(); let driver = await new Builder().forBrowser('chrome').build();
let testStatus = 'Failed'; let testStatus = 'Failed';
@@ -3108,10 +3108,10 @@ try {
const loginButton = await driver.wait(until.elementLocated(By.css('.login')), 5000).catch(() => false); const loginButton = await driver.wait(until.elementLocated(By.css('.login')), 5000).catch(() => false);
if (loginButton && allStepsPassed) { if (loginButton && allStepsPassed) {
console.log('PASSED: System logged in as expected'); console.log('PASSED: Align Concepts Page(ExACT_alignConceptsPage); All test steps completed successfully');
testStatus = 'Passed'; testStatus = 'Passed';
} else { } else {
console.log('FAILED: Unable to log in'); console.log('FAILED: Align Concepts Page(ExACT_alignConceptsPage); One or more test steps failed');
testStatus = 'Failed'; testStatus = 'Failed';
} }