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
|
//NEXT ACTION - Click Concetps tab
|
||||||
{ description: 'Click Concepts tab', action: async () => await driver.findElement(By.linkText('Concepts')).click() },
|
{ 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 () => {
|
action: async () => {
|
||||||
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
||||||
if (elementText !== 'Browse the list of curricular concepts') {
|
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 () => {
|
action: async () => {
|
||||||
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
||||||
if (elementText !== 'Browse the list of curricular concepts') {
|
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') {
|
if (elementText !== 'Geometry') {
|
||||||
throw new Error(`Expected: "Geometry"; Actual: "${elementText}"`);
|
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 () => {
|
action: async () => {
|
||||||
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
||||||
if (elementText !== 'Browse the list of curricular concepts') {
|
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 () => {
|
action: async () => {
|
||||||
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
||||||
if (elementText !== 'Browse the list of curricular concepts') {
|
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 () => {
|
action: async () => {
|
||||||
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
const elementText = await driver.findElement(By.css('.card-body > p')).getText();
|
||||||
if (elementText !== 'Browse the list of curricular concepts') {
|
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',
|
description: 'Validate Items Related path label font size',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const elementText = await driver.findElement(By.css('div > b')).getCssValue('font-size');
|
const elementText = await driver.findElement(By.css('div > b')).getCssValue('font-size');
|
||||||
if (elementText !== '14.3px') {
|
if (elementText !== '13px') {
|
||||||
throw new Error(`Expected: Items Related path label font size to be "14.3px"; Actual: "${elementText}"`);
|
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');
|
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
|
//Applications of Linear Systems edit icon
|
||||||
{
|
{
|
||||||
description: 'Verify Applications of Linear Systems edit icon is present',
|
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
|
//Applications of Linear Systems view standards icon
|
||||||
{
|
{
|
||||||
description: 'Verify Applications of Linear Systems View Standards icon is present',
|
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
|
//Direct Variation edit icon
|
||||||
{
|
{
|
||||||
description: 'Verify Direct Variation edit icon is present',
|
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
|
//Direct Variation view standards icon
|
||||||
{
|
{
|
||||||
description: 'Verify Direct Variation view standards icon is present',
|
description: 'Verify Direct Variation view standards icon is present',
|
||||||
|
|||||||
Reference in New Issue
Block a user