Updated scripts
This commit is contained in:
@@ -1551,7 +1551,7 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Browse tab title
|
||||
//Browse tab title (active)
|
||||
{
|
||||
description: 'Validate browse tab title',
|
||||
action: async () => {
|
||||
@@ -1563,7 +1563,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Browse tab title -navy blue
|
||||
//Browse tab text title -white (active)
|
||||
{
|
||||
description: 'Validate browse tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('Browse')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(255, 255, 255, 1)') {
|
||||
throw new Error(`Expected: "Browse" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Browse tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Browse tab title -navy blue (active)
|
||||
{
|
||||
description: 'Validate browse tab color',
|
||||
action: async () => {
|
||||
@@ -1575,7 +1587,7 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title
|
||||
//By Standard tab title (dimmed)
|
||||
{
|
||||
description: 'Validate by standard tab title',
|
||||
action: async () => {
|
||||
@@ -1587,7 +1599,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title -gray (dimmed)
|
||||
//By Standard tab text title -gray (dimmed)
|
||||
{
|
||||
description: 'Validate by standard tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('By Standard')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(182, 186, 181, 1)') {
|
||||
throw new Error(`Expected: "By Standard" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: By Standard tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title -white (dimmed)
|
||||
{
|
||||
description: 'Validate by standard tab color',
|
||||
action: async () => {
|
||||
@@ -1599,7 +1623,7 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title
|
||||
//AutoAlign tab title (dimmed)
|
||||
{
|
||||
description: 'Validate AutoAlign tab title',
|
||||
action: async () => {
|
||||
@@ -1611,7 +1635,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title -gray (dimmed)
|
||||
//AutoAlign tab text title -gray (dimmed)
|
||||
{
|
||||
description: 'Validate AutoAlign tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('AutoAlign')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(182, 186, 181, 1)') {
|
||||
throw new Error(`Expected: "AutoAlign" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: AutoAlign tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title -white (dimmed)
|
||||
{
|
||||
description: 'Validate AutoAlign tab color',
|
||||
action: async () => {
|
||||
@@ -1951,7 +1987,7 @@ const steps = [
|
||||
{ description: 'Click By Standard tab link', action: async () => await driver.findElement(By.linkText('By Standard')).click() },
|
||||
{ description: 'Wait for action to complete', action: async () => await driver.sleep(5000) },
|
||||
|
||||
//Browse tab title
|
||||
//Browse tab title (dimmed)
|
||||
{
|
||||
description: 'Validate browse tab title',
|
||||
action: async () => {
|
||||
@@ -1963,7 +1999,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Browse tab title -gray (dimmed)
|
||||
//Browse tab text title -gray (dimmed)
|
||||
{
|
||||
description: 'Validate browse tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('Browse')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(182, 186, 181, 1)') {
|
||||
throw new Error(`Expected: "Browse" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Browse tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Browse tab title -white (dimmed)
|
||||
{
|
||||
description: 'Validate browse tab color',
|
||||
action: async () => {
|
||||
@@ -1975,7 +2023,7 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title
|
||||
//By Standard tab title (active)
|
||||
{
|
||||
description: 'Validate by standard tab title',
|
||||
action: async () => {
|
||||
@@ -1987,7 +2035,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title -navy blue
|
||||
//By Standard tab text title -navy blue (active)
|
||||
{
|
||||
description: 'Validate by standard tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('By Standard')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(255, 255, 255, 1)') {
|
||||
throw new Error(`Expected: "By Standard" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: By Standard tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title -navy blue (active)
|
||||
{
|
||||
description: 'Validate by standard tab color',
|
||||
action: async () => {
|
||||
@@ -1999,7 +2059,7 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title
|
||||
//AutoAlign tab title (dimmed)
|
||||
{
|
||||
description: 'Validate AutoAlign tab title',
|
||||
action: async () => {
|
||||
@@ -2011,7 +2071,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title -gray (dimmed)
|
||||
//AutoAlign tab text title -gray (dimmed)
|
||||
{
|
||||
description: 'Validate AutoAlign tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('AutoAlign')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(182, 186, 181, 1)') {
|
||||
throw new Error(`Expected: "AutoAlign" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: AutoAlign tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title -white (dimmed)
|
||||
{
|
||||
description: 'Validate AutoAlign tab color',
|
||||
action: async () => {
|
||||
@@ -2051,7 +2123,7 @@ const steps = [
|
||||
{ description: 'Click AutoAlign tab link', action: async () => await driver.findElement(By.linkText('AutoAlign')).click() },
|
||||
{ description: 'Wait for action to complete', action: async () => await driver.sleep(5000) },
|
||||
|
||||
//Browse tab title
|
||||
//Browse tab title (dimmed)
|
||||
{
|
||||
description: 'Validate browse tab title',
|
||||
action: async () => {
|
||||
@@ -2063,7 +2135,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//Browse tab title -gray (dimmed)
|
||||
//Browse tab text title -gray (dimmed)
|
||||
{
|
||||
description: 'Validate browse tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('Browse')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(182, 186, 181, 1)') {
|
||||
throw new Error(`Expected: "Browse" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: Browse tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//Browse tab title -white (dimmed)
|
||||
{
|
||||
description: 'Validate browse tab color',
|
||||
action: async () => {
|
||||
@@ -2075,7 +2159,7 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title
|
||||
//By Standard tab title (dimmed)
|
||||
{
|
||||
description: 'Validate by standard tab title',
|
||||
action: async () => {
|
||||
@@ -2087,7 +2171,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title -gray (dimmed)
|
||||
//By Standard tab text title -gray (dimmed)
|
||||
{
|
||||
description: 'Validate by standard tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('By Standard')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(182, 186, 181, 1)') {
|
||||
throw new Error(`Expected: "By Standard" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: By Standard tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//By Standard tab title -white (dimmed)
|
||||
{
|
||||
description: 'Validate by standard tab color',
|
||||
action: async () => {
|
||||
@@ -2099,7 +2195,7 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title
|
||||
//AutoAlign tab title (active)
|
||||
{
|
||||
description: 'Validate AutoAlign tab title',
|
||||
action: async () => {
|
||||
@@ -2111,7 +2207,19 @@ const steps = [
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title -navy blue
|
||||
//AutoAlign tab text title -navy blue (active)
|
||||
{
|
||||
description: 'Validate AutoAlign tab text color',
|
||||
action: async () => {
|
||||
const elementStyle = await driver.findElement(By.linkText('AutoAlign')).getCssValue('color');
|
||||
if (elementStyle !== 'rgba(255, 255, 255, 1)') {
|
||||
throw new Error(`Expected: "AutoAlign" tab text title color did not match; Actual: "${elementStyle}"`);
|
||||
}
|
||||
console.log('Passed: AutoAlign tab text title color matched as expected');
|
||||
}
|
||||
},
|
||||
|
||||
//AutoAlign tab title -navy blue (active)
|
||||
{
|
||||
description: 'Validate AutoAlign tab color',
|
||||
action: async () => {
|
||||
|
||||
Reference in New Issue
Block a user