Updated check for Login Button
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user