diff --git a/tests/ExACT_alignConceptsPage.js b/tests/ExACT_alignConceptsPage.js index 39f8861..b7160f0 100644 --- a/tests/ExACT_alignConceptsPage.js +++ b/tests/ExACT_alignConceptsPage.js @@ -221,6 +221,18 @@ const steps = [ } }, + //Available Content header font size + { + description: 'Validate Available Content header font size', + action: async () => { + const elementText = await driver.findElement(By.css('#content form > p')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Available Content header font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Available Content header font size matched as expected'); + } + }, + //NEXT ACTION - Click Concetps tab { description: 'Click Concepts tab', action: async () => await driver.findElement(By.linkText('Concepts')).click() }, @@ -376,15 +388,27 @@ const steps = [ } }, - //Browse the list of curricular concepts label + //Browse the list of curricular concepts header { - description: 'Validate Browse the list of curricular concepts label', + description: 'Validate Browse the list of curricular concepts header', action: async () => { const elementText = await driver.findElement(By.css('.card-body > p')).getText(); if (elementText !== 'Browse the list of curricular concepts') { - throw new Error(`Expected: "Browse the list of curricular concepts"; Actual: "${elementText}"`); + throw new Error(`Expected: "Browse the list of curricular concepts" header; Actual: "${elementText}"`); } - console.log('Passed: Browse the list of curricular concepts label matched as expected'); + console.log('Passed: Browse the list of curricular concepts header matched as expected'); + } + }, + + //Browse the list of curricular concepts header font size + { + description: 'Validate Browse the list of curricular concepts header font size', + action: async () => { + const elementText = await driver.findElement(By.css('.card-body > p')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Browse the list of curricular concepts header font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Browse the list of curricular concepts header font size matched as expected'); } }, @@ -776,15 +800,27 @@ const steps = [ } }, - //Browse the list of curricular concepts label + //Browse the list of curricular concepts header { - description: 'Validate Browse the list of curricular concepts label', + description: 'Validate Browse the list of curricular concepts header', action: async () => { const elementText = await driver.findElement(By.css('.card-body > p')).getText(); if (elementText !== 'Browse the list of curricular concepts') { - throw new Error(`Expected: "Browse the list of curricular concepts"; Actual: "${elementText}"`); + throw new Error(`Expected: "Browse the list of curricular concepts" header; Actual: "${elementText}"`); } - console.log('Passed: Browse the list of curricular concepts label matched as expected'); + console.log('Passed: Browse the list of curricular concepts header matched as expected'); + } + }, + + //Browse the list of curricular concepts header font size + { + description: 'Validate Browse the list of curricular concepts header font size', + action: async () => { + const elementText = await driver.findElement(By.css('.card-body > p')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Browse the list of curricular concepts header font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Browse the list of curricular concepts header font size matched as expected'); } }, @@ -1036,7 +1072,7 @@ const steps = [ if (elementText !== 'Geometry') { throw new Error(`Expected: "Geometry"; Actual: "${elementText}"`); } - console.log('Passed: Geometry label matched as expected'); + console.log('Passed: Geometry label matched as expected'); } }, @@ -1572,15 +1608,27 @@ const steps = [ } }, - //Browse the list of curricular concepts label + //Browse the list of curricular concepts header { - description: 'Validate Browse the list of curricular concepts label', + description: 'Validate Browse the list of curricular concepts header', action: async () => { const elementText = await driver.findElement(By.css('.card-body > p')).getText(); if (elementText !== 'Browse the list of curricular concepts') { - throw new Error(`Expected: "Browse the list of curricular concepts"; Actual: "${elementText}"`); + throw new Error(`Expected: "Browse the list of curricular concepts" header; Actual: "${elementText}"`); } - console.log('Passed: Browse the list of curricular concepts label matched as expected'); + console.log('Passed: Browse the list of curricular concepts header matched as expected'); + } + }, + + //Browse the list of curricular concepts header font size + { + description: 'Validate Browse the list of curricular concepts header font size', + action: async () => { + const elementText = await driver.findElement(By.css('.card-body > p')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Browse the list of curricular concepts header font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Browse the list of curricular concepts header font size matched as expected'); } }, @@ -1984,15 +2032,27 @@ const steps = [ } }, - //Browse the list of curricular concepts label + //Browse the list of curricular concepts header { - description: 'Validate Browse the list of curricular concepts label', + description: 'Validate Browse the list of curricular concepts header', action: async () => { const elementText = await driver.findElement(By.css('.card-body > p')).getText(); if (elementText !== 'Browse the list of curricular concepts') { - throw new Error(`Expected: "Browse the list of curricular concepts"; Actual: "${elementText}"`); + throw new Error(`Expected: "Browse the list of curricular concepts" header; Actual: "${elementText}"`); } - console.log('Passed: Browse the list of curricular concepts label matched as expected'); + console.log('Passed: Browse the list of curricular concepts header matched as expected'); + } + }, + + //Browse the list of curricular concepts header font size + { + description: 'Validate Browse the list of curricular concepts header font size', + action: async () => { + const elementText = await driver.findElement(By.css('.card-body > p')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Browse the list of curricular concepts header font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Browse the list of curricular concepts header font size matched as expected'); } }, @@ -2240,15 +2300,27 @@ const steps = [ } }, - //Browse the list of curricular concepts label + //Browse the list of curricular concepts header { - description: 'Validate Browse the list of curricular concepts label', + description: 'Validate Browse the list of curricular concepts header', action: async () => { const elementText = await driver.findElement(By.css('.card-body > p')).getText(); if (elementText !== 'Browse the list of curricular concepts') { - throw new Error(`Expected: "Browse the list of curricular concepts"; Actual: "${elementText}"`); + throw new Error(`Expected: "Browse the list of curricular concepts" header; Actual: "${elementText}"`); } - console.log('Passed: Browse the list of curricular concepts label matched as expected'); + console.log('Passed: Browse the list of curricular concepts header matched as expected'); + } + }, + + //Browse the list of curricular concepts header font size + { + description: 'Validate Browse the list of curricular concepts header font size', + action: async () => { + const elementText = await driver.findElement(By.css('.card-body > p')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Browse the list of curricular concepts header font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Browse the list of curricular concepts header font size matched as expected'); } }, @@ -2501,8 +2573,8 @@ const steps = [ description: 'Validate Items Related path label font size', action: async () => { const elementText = await driver.findElement(By.css('div > b')).getCssValue('font-size'); - if (elementText !== '14.3px') { - throw new Error(`Expected: Items Related path label font size to be "14.3px"; Actual: "${elementText}"`); + if (elementText !== '13px') { + throw new Error(`Expected: Items Related path label font size to be "13px"; Actual: "${elementText}"`); } console.log('Passed: Items Related path label font size matched as expected'); } @@ -2555,6 +2627,18 @@ const steps = [ console.log('Passed: Applications of Linear Systems title matched as expected'); } }, + + //Applications of Linear Systems title font size + { + description: 'Validate Applications of Linear Systems title font size', + action: async () => { + const elementText = await driver.findElement(By.linkText('Applications of Linear Systems')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Applications of Linear Systems title font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Applications of Linear Systems title font size matched as expected'); + } + }, //Applications of Linear Systems edit icon { @@ -2652,6 +2736,18 @@ const steps = [ } }, + //Applications of Linear Systems reset text font size + { + description: 'Validate Applications of Linear Systems reset text font size', + action: async () => { + const elementText = await driver.findElement(By.css('#alignstatuslink874414463 > div > a > b')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Applications of Linear Systems reset text font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Applications of Linear Systems reset text font size matched as expected'); + } + }, + //Applications of Linear Systems view standards icon { description: 'Verify Applications of Linear Systems View Standards icon is present', @@ -2699,6 +2795,18 @@ const steps = [ console.log('Passed: Direct Variation title matched as expected'); } }, + + //Direct Variation title font size + { + description: 'Validate Direct Variation title font size', + action: async () => { + const elementText = await driver.findElement(By.linkText('Direct Variation')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Direct Variation title font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Direct Variation title font size matched as expected'); + } + }, //Direct Variation edit icon { @@ -2796,6 +2904,18 @@ const steps = [ } }, + //Direct Variation reset text font size + { + description: 'Validate Direct Variation reset text font size', + action: async () => { + const elementText = await driver.findElement(By.css('#alignstatuslink874414465 > div > a > b')).getCssValue('font-size'); + if (elementText !== '13px') { + throw new Error(`Expected: Direct Variation reset text font size to be "13px"; Actual: "${elementText}"`); + } + console.log('Passed: Direct Variation reset text font size matched as expected'); + } + }, + //Direct Variation view standards icon { description: 'Verify Direct Variation view standards icon is present',