Cleaned up scripts
This commit is contained in:
@@ -5,7 +5,7 @@ import XLSX from 'xlsx';
|
||||
import path from 'path';
|
||||
|
||||
const alignStandardsPage = (req, res) => {
|
||||
res.send('<h2>ExACT Automated Test Script - Align Standards Page(alignStandardsPage): Initiated</h2>');
|
||||
res.send('<h2>ExACT Automated Test Script: Align - Standards Page(alignStandardsPage): Initiated</h2>');
|
||||
(async function example() {
|
||||
let driver = await new Builder()
|
||||
.forBrowser('chrome')
|
||||
@@ -32,7 +32,7 @@ const steps = [
|
||||
action: async () => {
|
||||
const multipleChecks = 'Log In';
|
||||
|
||||
console.log('------------->| ALIGN STANDARDS PAGE |<-------------');
|
||||
console.log('------------->| ALIGN - STANDARDS PAGE |<-------------');
|
||||
const errors = [];
|
||||
|
||||
await driver.findElement(By.css('.form-control:nth-child(2)')).sendKeys('exact_juan');
|
||||
@@ -172,7 +172,7 @@ const steps = [
|
||||
await driver.wait(async () => {
|
||||
const readyState = await driver.executeScript('return document.readyState');
|
||||
return readyState === 'complete';
|
||||
}, 30000, 'ExACT Dashboard did not fully load within 30 seconds');
|
||||
}, 30000, 'Align page did not fully load within 30 seconds');
|
||||
|
||||
//Wait until the element exists in the DOM
|
||||
const contentTab = await driver.wait(
|
||||
@@ -517,16 +517,16 @@ const steps = [
|
||||
|
||||
//NEXT ACTION
|
||||
{
|
||||
description: 'Click Standards navigation link',
|
||||
description: 'Click Standards tab',
|
||||
action: async () => {
|
||||
await driver.findElement(By.linkText('Standards')).click();
|
||||
console.log('----->| NEXT ACTION: Clicked Standards navigation link');
|
||||
console.log('----->| NEXT ACTION: Clicked Standards tab');
|
||||
|
||||
//Wait for page readyState
|
||||
await driver.wait(async () => {
|
||||
const readyState = await driver.executeScript('return document.readyState');
|
||||
return readyState === 'complete';
|
||||
}, 30000, 'ExACT Dashboard did not fully load within 30 seconds');
|
||||
}, 30000, 'Standards page did not fully load within 30 seconds');
|
||||
|
||||
//Wait until the element exists in the DOM
|
||||
const browseStandardsTitle = await driver.wait(
|
||||
|
||||
Reference in New Issue
Block a user