From 003edf2fbb963b540d0f7fa9caee8556514c10ed Mon Sep 17 00:00:00 2001 From: jhuerta Date: Mon, 13 Jan 2025 13:00:04 -0800 Subject: [PATCH] Corrected breadcrumb order --- tests/ExACT_contentPage.js | 85 +++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 48 deletions(-) diff --git a/tests/ExACT_contentPage.js b/tests/ExACT_contentPage.js index 4ab46a3..437f9ac 100644 --- a/tests/ExACT_contentPage.js +++ b/tests/ExACT_contentPage.js @@ -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',