Restructured scripts

This commit is contained in:
jhuerta
2026-11-06 16:27:10 -08:00
parent b5d9e33b4d
commit ff50ab728b
4 changed files with 7 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ import { Options as ChromeOptions } from 'selenium-webdriver/chrome.js';
import fs from 'fs';
import XLSX from 'xlsx';
import path from 'path';
import { myStandardsSearch_AlignedContent } from '../myStandardsSearchAlignedContent.js';
import { myStandardsSearch_AlignedContent } from '../../myStandardsSearchAlignedContent.js';
const dashboardMyStandards = (req, res) => {
res.send('<h2>ExACT Automated Test Script: DASHBOARD - My Standards Widget(dashboardMyStandards) | Initiated</h2>');

View File

@@ -9,7 +9,7 @@ export const myStandardsSearch_AlignedContent = (driver) => [
{
description: 'Log Aligned Content start',
action: async () => {
console.log('------------->| MY STANDARDS - ALIGNED CONTENT |<-------------');
console.log('------------->| MY STANDARDS - ALIGNED CONTENT SEARCH |<-------------');
}
},
@@ -8246,7 +8246,7 @@ const myStandardsSearch = (req, res) => {
await driver.findElement(By.css('.show > li:nth-child(14) input')).click();
await driver.sleep(2000);
//Select "California Mathematics 1997" from dropdown
await driver.findElement(By.css('.show > li:nth-child(32) input')).click();
await driver.findElement(By.css('.show > li:nth-child(34) input')).click();
await driver.sleep(2000);
console.log('----->| NEXT ACTION: Selected Include Related Standards: Washington, Common Core State Standards, California Mathematics 1997');
//Click away to close dropdown using executeScript to bypass interception
@@ -8312,7 +8312,7 @@ const takeScreenshot = async (driver, stepIndex, stepDescription) => {
return screenshotPath;
};
const resultsFile = path.join('results', 'myStandardsSearchAlignedContentResults.xlsx');
const resultsFile = path.join('results', 'myStandardsSearchAlignedContent.xlsx');
const clearOldResults = () => {
//Remove old screenshots