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