Corrected breadcrumb order
This commit is contained in:
@@ -1169,54 +1169,6 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Grade8 filter button
|
||||
{
|
||||
description: 'Validate Grade 8 filter button text',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.badge')).getText();
|
||||
if (elementText !== 'Grade: 8') {
|
||||
throw new Error(`Expected: "Grade: 8" text did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 8 text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade8 filter button color -dark gray
|
||||
{
|
||||
description: 'Verify grade 8 filter buttion close icon color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.css('.badge')).getCssValue('background-color');
|
||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||
throw new Error(`Expected: Grade 8 button color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Grade 8 button color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade8 filter button close icon color -red
|
||||
{
|
||||
description: 'Verify grade 8 filter buttion close icon color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.css('.glyphicon')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(255, 0, 0, 1)') {
|
||||
throw new Error(`Expected: Grade 8 button close icon color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Grade 8 button close icon color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Filtered Results 1-25 of 667 label
|
||||
{
|
||||
description: 'Validate Filtered Results 1-25 of 667 label',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.float-left:nth-child(6)')).getText();
|
||||
if (elementText !== 'Results 1 - 25 of 667') {
|
||||
throw new Error(`Expected: Filtered "Results 1 - 25 of 667" label; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Filtered Results 1 - 25 of 667 label matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Home link
|
||||
{
|
||||
description: 'Validate Home link',
|
||||
@@ -1337,6 +1289,43 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//APPLIED FILTER
|
||||
//Grade8 filter button
|
||||
{
|
||||
description: 'Validate Grade 8 filter button text',
|
||||
action: async () => {
|
||||
const elementText = await driver.findElement(By.css('.badge')).getText();
|
||||
if (elementText !== 'Grade: 8') {
|
||||
throw new Error(`Expected: "Grade: 8" text did not match; Actual: "${elementText}"`);
|
||||
}
|
||||
console.log('Passed: Grade: 8 text matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade8 filter button color -dark gray
|
||||
{
|
||||
description: 'Verify grade 8 filter buttion close icon color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.css('.badge')).getCssValue('background-color');
|
||||
if (elementStyle !== 'rgba(108, 117, 125, 1)') {
|
||||
throw new Error(`Expected: Grade 8 button color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Grade 8 button color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Grade8 filter button close icon color -red
|
||||
{
|
||||
description: 'Verify grade 8 filter buttion close icon color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.css('.glyphicon')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(255, 0, 0, 1)') {
|
||||
throw new Error(`Expected: Grade 8 button close icon color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Grade 8 button close icon color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Filtered esults 1-25 of 667 label
|
||||
{
|
||||
description: 'Validate Filtered Results 1-25 of 6676 label',
|
||||
|
||||
Reference in New Issue
Block a user