From 0416199bdb1c6d4a5bd2d8551ddf44838fb2039c Mon Sep 17 00:00:00 2001 From: jhuerta Date: Mon, 8 Sep 2025 17:44:50 -0700 Subject: [PATCH] Updated script due to prod releases --- tests/ExACT_dashboardMyContent.js | 304 +++++++++++++++++++++++++----- 1 file changed, 260 insertions(+), 44 deletions(-) diff --git a/tests/ExACT_dashboardMyContent.js b/tests/ExACT_dashboardMyContent.js index b063405..9cb5315 100644 --- a/tests/ExACT_dashboardMyContent.js +++ b/tests/ExACT_dashboardMyContent.js @@ -807,7 +807,7 @@ const steps = [ { description: 'Click My Contents Count DIV Close button', action: async () => await driver.findElement(By.css('#all_content_modal .btn-secondary')).click() }, { description: 'Wait for My Content Totals DIV to close', action: async () => await driver.sleep(2000) }, - //NEXT ACTION -EDIT BIOLOGY - QA CONTENT SET + //NEXT ACTION -Edit Biology - QA Content Set { description: 'Click Biology-QA edit icon', action: async () => await driver.findElement(By.css('#mycontentlist > #content-org-list > .content-org .fa')).click() }, { description: 'Wait for Edit Content DIV to open', action: async () => await driver.sleep(5000) }, @@ -979,7 +979,7 @@ const steps = [ { description: 'Click X icon', action: async () => await driver.findElement(By.css('.modal-lg .modal-header span')).click() }, { description: 'Driver sleep', action: async () => await driver.sleep(2000) }, - /*BIOLOGY - QA ITEM COUNT CHECK {DIV NOT OPENING - SELENIUM ISSUE} + /*Biology - QA Item Count Check {EDM-2972} //NEXT ACTION -Verify Biology - QA item Count { description: 'Click Biology-QA item Count link', action: async () => await driver.findElement(By.css('#mycontentlist > #content-org-list > .content-org .badge')).click() }, { description: 'Wait for My Content Totals DIV to open', action: async () => await driver.sleep(5000) }, @@ -1333,7 +1333,7 @@ const steps = [ } }, - //NEXT ACTION -CREATE CONTENT SET + //NEXT ACTION -Create Content Set { description: 'Click Create Content Set link', action: async () => await driver.findElement(By.linkText('Create Content Set')).click() }, { description: 'Driver sleep', action: async () => await driver.sleep(5000) }, @@ -1441,7 +1441,7 @@ const steps = [ } }, - //NEXT ACTION -Create Content Set Validation - No Name + //NEXT ACTION -Validation: Create Content Set - No Name { description: 'Click create button without content set name', action: async () => await driver.findElement(By.css('.modal-lg #modalop')).click() }, { description: 'Driver sleep', action: async () => await driver.sleep(2000) }, @@ -1469,7 +1469,7 @@ const steps = [ } }, - //NEXT ACTION -Create Content Set Validation - Existing Name + //NEXT ACTION -Validation: Create Content Set - Existing Name { description: 'Enter existing content set name', action: async () => await driver.findElement(By.css('#orgname')).sendKeys('Biology - QA') }, { description: 'Click create button', action: async () => await driver.findElement(By.css('.modal-lg #modalop')).click() }, { description: 'Driver sleep', action: async () => await driver.sleep(2000) }, @@ -1669,7 +1669,7 @@ const steps = [ } }, - //NEXT ACTION -NAVIGATE BACK TO DASHBOARD + //NEXT ACTION -Navigate Back To Dashboard { description: 'Click Dashboard navigation link', action: async () => await driver.findElement(By.linkText('Dashboard')).click() }, { description: 'Browser sleep', action: async () => await driver.sleep(10000) }, @@ -1681,7 +1681,7 @@ const steps = [ } }, - //NEXT ACTION -EXPORT CONTENT + //NEXT ACTION -Export Content { description: 'Click Ellipsis icon', action: async () => await driver.findElement(By.css('.fa-ellipsis-h')).click() }, { description: 'Driver sleep', action: async () => await driver.sleep(2000) }, @@ -2241,7 +2241,7 @@ const steps = [ } }, - //NEXT ACTION -NAVIGATE BACK TO DASHBOARD + //NEXT ACTION -Navigate Back To Dashboard { description: 'Click Dashboard navigation link', action: async () => await driver.findElement(By.linkText('Dashboard')).click() }, { description: 'Browser sleep', action: async () => await driver.sleep(10000) }, @@ -2258,6 +2258,18 @@ const steps = [ { description: 'Wait for content list to filter', action: async () => await driver.sleep(2000) }, //Validate sort order by applying filter QA + //Biology - QA (1st) + { + description: 'Validate by filter QA: Biology - QA label in 1st place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Biology - QA')]`)).getText(); + if (elementText !== 'Biology - QA') { + throw new Error(`Expected: Filtered by QA: Biology - QA label not sorted in 1st place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: Biology - QA label sorted in 1st place'); + } + }, + //Biology - QA = 1046 (1st) { description: 'Validate by filter QA: Biology - QA 1046 count in 1st place', @@ -2270,6 +2282,18 @@ const steps = [ } }, + //Geometry - QA (2nd) + { + description: 'Validate by filter QA: Geometry - QA label in 2nd place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Geometry - QA')]`)).getText(); + if (elementText !== 'Geometry - QA') { + throw new Error(`Expected: Filtered by QA: Geometry - QA label not sorted in 2nd place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: Geometry - QA label sorted in 2nd place'); + } + }, + //Geometry - QA = 981 (2nd) { description: 'Validate by filter QA: Geometry - QA 981 count in 2nd place', @@ -2282,6 +2306,18 @@ const steps = [ } }, + //English II - QA (3rd) + { + description: 'Validate by filter QA: English II - QA label in 3rd place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'English II - QA')]`)).getText(); + if (elementText !== 'English II - QA') { + throw new Error(`Expected: Filtered by QA: English II - QA label not sorted in 3rd place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: English II - QA label sorted in 3rd place'); + } + }, + //English II - QA = 409 (3rd) { description: 'Validate by filter QA: English II - QA 409 count in 3rd place', @@ -2294,6 +2330,18 @@ const steps = [ } }, + //Algebra - QA (4th) + { + description: 'Validate by filter QA: Algebra - QA label in 4th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Algebra - QA')]`)).getText(); + if (elementText !== 'Algebra - QA') { + throw new Error(`Expected: Filtered by QA: Algebra - QA label not sorted in 4th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: Algebra - QA label sorted in 4th place'); + } + }, + //Algebra - QA = 188 (4th) { description: 'Validate by filter QA: Algebra - QA 188 count in 4th place', @@ -2306,6 +2354,18 @@ const steps = [ } }, + //US History - QA (5th) + { + description: 'Validate by filter QA: US History - QA label in 5th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'US History - QA')]`)).getText(); + if (elementText !== 'US History - QA') { + throw new Error(`Expected: Filtered by QA: Biology - QA label not sorted in 5th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: US History - QA label sorted in 5th place'); + } + }, + //US History - QA = 62 (5th) { description: 'Validate by filter QA: US History - QA 162 count in 5th place', @@ -2318,11 +2378,23 @@ const steps = [ } }, + //Created Content Set (6th) + { + description: `Validate by filter QA: ${createContentSetName} label in 6th place`, + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Automated - QA Content Set - To be deleted')]`)).getText(); + if (elementText !== 'Automated - QA Content Set - To be deleted') { + throw new Error(`Expected: Filtered by QA: ${createContentSetName} label not sorted in 6th place; Actual: "${elementText}"`); + } + console.log(`Passed: Filtered by QA: ${createContentSetName} label sorted in 6th place`); + } + }, + //Created Content Set = 0 (6th) { description: `Validate by filter QA: ${createContentSetName} 0 count in 6th place`, action: async () => { - const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/li/div/span')).getText(); + const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/li/div/span')).getText(); if (elementText !== '0') { throw new Error(`Expected: Filtered by QA: ${createContentSetName} count "0" not sorted in 6th place; Actual: "${elementText}"`); } @@ -2334,15 +2406,39 @@ const steps = [ { description: 'Select filter sort order by Name', action: async () => await driver.findElement(By.css('#orgsort > option:nth-child(2)')).click() }, { description: 'Wait for content list to filter', action: async () => await driver.sleep(2000) }, + //Algebra - QA (1st) + { + description: 'Validate by filter name: Algebra - QA label in 1st place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Algebra - QA')]`)).getText(); + if (elementText !== 'Algebra - QA') { + throw new Error(`Expected: Filtered by name: Algebra - QA label not sorted in 1st place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by name: Algebra - QA label sorted in 1st place'); + } + }, + //Algebra - QA = 188 (1st) { description: 'Validate by filter name: Algebra - QA 188 count in 1st place', action: async () => { const elementText = await driver.findElement(By.xpath('//li/div/span')).getText(); if (elementText !== '188') { - throw new Error(`Expected: Filtered by Name: Algebra - QA count "188" not sorted in 1st place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by name: Algebra - QA count "188" not sorted in 1st place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by Name: Algebra - QA count 188 sorted in 1st place'); + console.log('Passed: Filtered by name: Algebra - QA count 188 sorted in 1st place'); + } + }, + + //Created Content Set (2nd) + { + description: `Validate by filter name: ${createContentSetName} label in 2nd place`, + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Automated - QA Content Set - To be deleted')]`)).getText(); + if (elementText !== 'Automated - QA Content Set - To be deleted') { + throw new Error(`Expected: Filtered by name: ${createContentSetName} label not sorted in 2nd place; Actual: "${elementText}"`); + } + console.log(`Passed: Filtered by name: ${createContentSetName} label sorted in 2nd place`); } }, @@ -2352,9 +2448,21 @@ const steps = [ action: async () => { const elementText = await driver.findElement(By.xpath('//ul/ul/li/div/span')).getText(); if (elementText !== '0') { - throw new Error(`Expected: Filtered by Name: ${createContentSetName} count "0" not sorted in 2nd place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by name: ${createContentSetName} count "0" not sorted in 2nd place; Actual: "${elementText}"`); } - console.log(`Passed: Filtered by Name: ${createContentSetName} count 0 sorted in 2nd place`); + console.log(`Passed: Filtered by name: ${createContentSetName} count 0 sorted in 2nd place`); + } + }, + + //Biology - QA (3rd) + { + description: 'Validate by filter name: Biology - QA label in 3rd place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Biology - QA')]`)).getText(); + if (elementText !== 'Biology - QA') { + throw new Error(`Expected: Filtered by name: Biology - QA label not sorted in 3rd place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by name: Biology - QA label sorted in 3rd place'); } }, @@ -2364,9 +2472,21 @@ const steps = [ action: async () => { const elementText = await driver.findElement(By.xpath('//ul/ul/ul/li/div/span')).getText(); if (elementText !== '1046') { - throw new Error(`Expected: Filtered by Name: Biology - QA count "1046" not sorted in 3rd place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by name: Biology - QA count "1046" not sorted in 3rd place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by Name: Biology - QA count 1046 sorted in 3rd place'); + console.log('Passed: Filtered by name: Biology - QA count 1046 sorted in 3rd place'); + } + }, + + //Demo - User Submitted Content (4th) + { + description: 'Validate by filter name: Demo - User Submitted Content label in 4th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Demo - User Submitted Content')]`)).getText(); + if (elementText !== 'Demo - User Submitted Content') { + throw new Error(`Expected: Filtered by name: Biology - QA label not sorted in 4th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by name: Biology - QA label sorted in 4th place'); } }, @@ -2376,33 +2496,57 @@ const steps = [ action: async () => { const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/li/div/span')).getText(); if (elementText !== '17') { - throw new Error(`Expected: Filtered by Name: Demo - User Submitted ContentA count "17" not sorted in 4th place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by name: Demo - User Submitted ContentA count "17" not sorted in 4th place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by Name: Demo - User Submitted Content count 17 sorted in 4th place'); + console.log('Passed: Filtered by name: Demo - User Submitted Content count 17 sorted in 4th place'); } }, - //English II - QA = 409 (5th) + //ECS-2952 Test = 25 (5th) { - description: 'Validate by filter name: English II - QA 409 count in 5th place', + description: 'Validate by filter name: ECS-2952 Test label in 4th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'ECS-2952 Test')]`)).getText(); + if (elementText !== 'ECS-2952 Test') { + throw new Error(`Expected: Filtered by name: ECS-2952 Test label not sorted in 4th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by name:ECS-2952 Test label sorted in 4th place'); + } + }, + + //ECS-2952 Test = 25 (5th) + { + description: `Validate by filter name: ECS-2952 Test 25 count in 5th place`, action: async () => { const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/li/div/span')).getText(); - if (elementText !== '409') { - throw new Error(`Expected: Filtered by Name: English II - QA count "409" not sorted in 5th place; Actual: "${elementText}"`); + if (elementText !== '25') { + throw new Error(`Expected: Filtered by name: ECS-2952 Test count "25" not sorted in 5th place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by Name: English II - QA 409 count 409 sorted in 5th place'); + console.log(`Passed: Filtered by name: ECS-2952 Test count 25 sorted in 5th place`); } }, - //Exploring - Access = 0 (6th) + //English II - QA (6th) { - description: `Validate by filter name: Exploring - Access 0 count in 6th place`, + description: 'Validate by filter QA: English II - QA label in 6th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'English II - QA')]`)).getText(); + if (elementText !== 'English II - QA') { + throw new Error(`Expected: Filtered by QA: English II - QA label not sorted in 6th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: English II - QA label sorted in 6th place'); + } + }, + + //English II - QA = 409 (6th) + { + description: 'Validate by filter name: English II - QA 409 count in 6th place', action: async () => { const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/li/div/span')).getText(); - if (elementText !== '0') { - throw new Error(`Expected: Filtered by Name: Exploring - Access count "0" not sorted in 6th place; Actual: "${elementText}"`); + if (elementText !== '409') { + throw new Error(`Expected: Filtered by name: English II - QA count "409" not sorted in 6th place; Actual: "${elementText}"`); } - console.log(`Passed: Filtered by Name: Exploring - Access count 0 sorted in 6th place`); + console.log('Passed: Filtered by name: English II - QA 409 count 409 sorted in 6th place'); } }, @@ -2410,15 +2554,39 @@ const steps = [ { description: 'Enter content set name', action: async () => await driver.findElement(By.css('#content-org-filter')).sendKeys('QA') }, { description: 'Wait for content list to filter', action: async () => await driver.sleep(2000) }, + //Algebra - QA (1st) + { + description: 'Validate by filter name: Algebra - QA label in 1st place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Algebra - QA')]`)).getText(); + if (elementText !== 'Algebra - QA') { + throw new Error(`Expected: Filtered by name: Algebra - QA label not sorted in 1st place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by name: Algebra - QA label sorted in 1st place'); + } + }, + //Algebra - QA = 188 (1st) { description: 'Validate by filter QA and sorted by name: Algebra - QA 188 count in 1st place', action: async () => { const elementText = await driver.findElement(By.xpath('//li/div/span')).getText(); if (elementText !== '188') { - throw new Error(`Expected: Filtered by QA and sorted by Name: Algebra - QA count "188" not sorted in 1st place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by QA and sorted by name: Algebra - QA count "188" not sorted in 1st place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by QA and sorted by Name: Algebra - QA count 188 sorted in 1st place'); + console.log('Passed: Filtered by QA and sorted by name: Algebra - QA count 188 sorted in 1st place'); + } + }, + + //Created Content Set (2nd) + { + description: `Validate by filter name: ${createContentSetName} label in 2nd place`, + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Automated - QA Content Set - To be deleted')]`)).getText(); + if (elementText !== 'Automated - QA Content Set - To be deleted') { + throw new Error(`Expected: Filtered by name: ${createContentSetName} label not sorted in 2nd place; Actual: "${elementText}"`); + } + console.log(`Passed: Filtered by name: ${createContentSetName} label sorted in 2nd place`); } }, @@ -2428,9 +2596,21 @@ const steps = [ action: async () => { const elementText = await driver.findElement(By.xpath('//ul/ul/li/div/span')).getText(); if (elementText !== '0') { - throw new Error(`Expected: Filtered by QA and sorted by Name: ${createContentSetName} count "0" not sorted in 2nd place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by QA and sorted by name: ${createContentSetName} count "0" not sorted in 2nd place; Actual: "${elementText}"`); } - console.log(`Passed: Filtered by QA and sorted by Name: ${createContentSetName} count 0 sorted in 2nd place`); + console.log(`Passed: Filtered by QA and sorted by name: ${createContentSetName} count 0 sorted in 2nd place`); + } + }, + + //Biology - QA (3rd) + { + description: 'Validate by filter name: Biology - QA label in 3rd place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Biology - QA')]`)).getText(); + if (elementText !== 'Biology - QA') { + throw new Error(`Expected: Filtered by name: Biology - QA label not sorted in 3rd place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by name: Biology - QA label sorted in 3rd place'); } }, @@ -2440,9 +2620,21 @@ const steps = [ action: async () => { const elementText = await driver.findElement(By.xpath('//ul/ul/ul/li/div/span')).getText(); if (elementText !== '1046') { - throw new Error(`Expected: Filtered by QA and sorted by Name: Biology - QA count "1046" not sorted in 3rd place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by QA and sorted by name: Biology - QA count "1046" not sorted in 3rd place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by QA and sorted by Name: Biology - QA count 1046 sorted in 3rd place'); + console.log('Passed: Filtered by QA and sorted by name: Biology - QA count 1046 sorted in 3rd place'); + } + }, + + //English II - QA (4th) + { + description: 'Validate by filter QA: English II - QA label in 4th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'English II - QA')]`)).getText(); + if (elementText !== 'English II - QA') { + throw new Error(`Expected: Filtered by QA: English II - QA label not sorted in 4th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: English II - QA label sorted in 4th place'); } }, @@ -2450,11 +2642,23 @@ const steps = [ { description: 'Validate by filter QA and sorted by name: English II - QA 409 count in 4th place', action: async () => { - const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/li/div/span')).getText(); + const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/li/div/span')).getText(); if (elementText !== '409') { - throw new Error(`Expected: Filtered by QA and sorted by Name: English II - QA count "409" not sorted in 4th place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by QA and sorted by name: English II - QA count "409" not sorted in 4th place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by QA and sorted by Name: English II - QA 409 count 409 sorted in 4th place'); + console.log('Passed: Filtered by QA and sorted by name: English II - QA 409 count 409 sorted in 4th place'); + } + }, + + //Geometry - QA (5th) + { + description: 'Validate by filter QA: Geometry - QA label in 5th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'Geometry - QA')]`)).getText(); + if (elementText !== 'Geometry - QA') { + throw new Error(`Expected: Filtered by QA: Geometry - QA label not sorted in 5th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: Geometry - QA label sorted in 5th place'); } }, @@ -2462,11 +2666,23 @@ const steps = [ { description: 'Validate by filter QA and sorted by name: Geometry - QA 981 count in 5th place', action: async () => { - const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/ul/ul/ul/li/div/span')).getText(); + const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/li/div/span')).getText(); if (elementText !== '981') { - throw new Error(`Expected: Filtered by QA and sorted by Name: Geometry - QA count "981" not sorted in 5th place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by QA and sorted by name: Geometry - QA count "981" not sorted in 5th place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by QA and sorted by Name: Geometry - QA count 981 sorted in 5th place'); + console.log('Passed: Filtered by QA and sorted by name: Geometry - QA count 981 sorted in 5th place'); + } + }, + + //US History - QA (6th) + { + description: 'Validate by filter QA: US History - QA label in 6th place', + action: async () => { + const elementText = await driver.findElement(By.xpath(`//a[contains(.,'US History - QA')]`)).getText(); + if (elementText !== 'US History - QA') { + throw new Error(`Expected: Filtered by QA: Biology - QA label not sorted in 6th place; Actual: "${elementText}"`); + } + console.log('Passed: Filtered by QA: US History - QA label sorted in 6th place'); } }, @@ -2474,11 +2690,11 @@ const steps = [ { description: 'Validate by filter QA and sorted by name: US History - QA 162 count in 6th place', action: async () => { - const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/li/div/span')).getText(); + const elementText = await driver.findElement(By.xpath('//ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/ul/li/div/span')).getText(); if (elementText !== '62') { - throw new Error(`Expected: Filtered by QA and sorted by Name: US History - QA count "62" not sorted in 6th place; Actual: "${elementText}"`); + throw new Error(`Expected: Filtered by QA and sorted by name: US History - QA count "62" not sorted in 6th place; Actual: "${elementText}"`); } - console.log('Passed: Filtered by QA and sorted by Name: US History - QA count 62 sorted in 6th place'); + console.log('Passed: Filtered by QA and sorted by name: US History - QA count 62 sorted in 6th place'); } }, @@ -2805,10 +3021,10 @@ try { const loginButton = await driver.wait(until.elementLocated(By.css('.login')), 5000).catch(() => false); if (loginButton && allStepsPassed) { - console.log('PASSED: My Content widget(ExACT_dashboardMyContent); All test steps completed successfully'); + console.log('PASSED: EDM-2972 | My Content widget(ExACT_dashboardMyContent); All test steps completed successfully'); testStatus = 'Passed'; } else { - console.log('FAILED: My Content widget(ExACT_dashboardMyContent); One or more test steps failed'); + console.log('FAILED: EDM-2972 | My Content widget(ExACT_dashboardMyContent); One or more test steps failed'); testStatus = 'Failed'; }