Added text size font checks
This commit is contained in:
@@ -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');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
@@ -2556,6 +2628,18 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//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
|
||||
{
|
||||
description: 'Verify Applications of Linear Systems edit icon is present',
|
||||
@@ -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',
|
||||
@@ -2700,6 +2796,18 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//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
|
||||
{
|
||||
description: 'Verify Direct Variation edit icon is present',
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user