Updated check for Login Button

This commit is contained in:
2024-10-02 14:39:49 -07:00
parent c9186192cd
commit 10ffc73fcf
4 changed files with 244 additions and 121 deletions

View File

@@ -85,13 +85,13 @@ const ExACT_landingPage = (req, res) => {
}
// Check if landing page test was successful
const logoutButton = await driver.wait(until.elementLocated(By.id('headerContainer')), 5000).catch(() => false);
const loginButton = await driver.wait(until.elementLocated(By.css('.login')), 5000).catch(() => false);
if (logoutButton) {
console.log('Login successful');
if (loginButton) {
console.log('Login button present');
testStatus = 'Passed';
} else {
console.log('Login failed');
console.log('Login button not found');
}
// Log test end time