Updated EdGate footer
This commit is contained in:
@@ -5443,31 +5443,32 @@ const steps = [
|
||||
},
|
||||
|
||||
//FOOTER
|
||||
//EdGate Footer Logo
|
||||
//EdGate Copyright Logo
|
||||
{
|
||||
description: 'EdGate Footer Logo',
|
||||
description: 'EdGate Copyright Logo',
|
||||
action: async () => {
|
||||
const multipleChecks = 'EdGate Footer Logo';
|
||||
const multipleChecks = 'EdGate Copyright Logo';
|
||||
|
||||
const element = await driver.findElement(By.css('.pull-right img'));
|
||||
const expectedSrc = 'https://correlation.edgate.com/exact/images/edgate_logo_new.png';
|
||||
const element = await driver.findElement(By.css('footer .pull-right > a'));
|
||||
const elementLogo = await element.findElement(By.css('img'));
|
||||
const expectedHref = 'https://www.edgate.com';
|
||||
|
||||
//Track all errors
|
||||
const errors = [];
|
||||
|
||||
//icon present
|
||||
if (await element.isDisplayed()) {
|
||||
console.log('Passed: EdGate logo was displayed as expected');
|
||||
if (await elementLogo.isDisplayed()) {
|
||||
console.log('Passed: EdGate Copyright Logo was displayed as expected');
|
||||
} else {
|
||||
errors.push('Expected: EdGate logo was not displayed');
|
||||
errors.push('Expected: EdGate Copyright Logo was not displayed');
|
||||
}
|
||||
|
||||
//image src
|
||||
const actualSrc = await element.getAttribute('src');
|
||||
if (actualSrc && actualSrc === expectedSrc) {
|
||||
console.log('Passed: EdGate logo src matched expected');
|
||||
//href - browser resolves the link with a trailing slash, so remove it before comparing
|
||||
const actualHref = await element.getDomAttribute('href');
|
||||
if (actualHref && actualHref === expectedHref) {
|
||||
console.log('Passed: EdGate Copyright Logo href matched as expected');
|
||||
} else {
|
||||
errors.push(`Expected: EdGate logo src: "${expectedSrc}"; actual: "${actualSrc}"`);
|
||||
errors.push(`Expected: EdGate Copyright Logo href to be "https://www.edgate.com"; actual: "${actualHref}"`);
|
||||
}
|
||||
|
||||
//Throw summary if any validation failed
|
||||
|
||||
Reference in New Issue
Block a user