Moved ExACT Landing Page script

This commit is contained in:
jhuerta
2026-11-06 15:03:26 -08:00
parent 1bf8978094
commit b5d9e33b4d
3 changed files with 6 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import express from 'express'; import express from 'express';
import exactLandingPage from './tests/exactLandingPage.js'; import exactLandingPage from './tests/LandingPage/exactLandingPage.js';
//import ExACT_login from './tests/ExACT_login.js'; //import ExACT_login from './tests/ExACT_login.js';
//DASHBOARDS //DASHBOARDS
@@ -62,7 +62,7 @@ app.get('/', (req, res) => {
<h1 style="text-align:center; color:#055a8c; padding-top: 20px;">ExACT Automated Regression Scripts</h1> <h1 style="text-align:center; color:#055a8c; padding-top: 20px;">ExACT Automated Regression Scripts</h1>
<div style="text-align:center; color:#001; font-size:15px; ">(Click the corresponding link to execute the desired script)</div> <div style="text-align:center; color:#001; font-size:15px; ">(Click the corresponding link to execute the desired script)</div>
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">EDGATE LANDING PAGE</h1> <h1 style="text-align:center; color:#055a8c; font-size:20px; ">EXACT LANDING PAGE</h1>
<div style="padding:3px;"><strong><a href='/exactLandingPage' target='_blank'>ExACT Landing Page</a></strong></div> <div style="padding:3px;"><strong><a href='/exactLandingPage' target='_blank'>ExACT Landing Page</a></strong></div>
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">DASHBOARD</h1> <h1 style="text-align:center; color:#055a8c; font-size:20px; ">DASHBOARD</h1>

Binary file not shown.

View File

@@ -3,7 +3,6 @@ import { Options as ChromeOptions } from 'selenium-webdriver/chrome.js';
import fs from 'fs'; import fs from 'fs';
import XLSX from 'xlsx'; import XLSX from 'xlsx';
import path from 'path'; import path from 'path';
import { error } from 'console';
const exactLandingPage = (req, res) => { const exactLandingPage = (req, res) => {
res.send('<h2>ExACT Automated Test Script: ExACT Landing Page(exactLandingPage) | Initiated</h2>'); res.send('<h2>ExACT Automated Test Script: ExACT Landing Page(exactLandingPage) | Initiated</h2>');
@@ -31,7 +30,7 @@ const steps = [
{ {
description: 'Loading Page', description: 'Loading Page',
action: async () => { action: async () => {
console.log('------------->| ExACT LANDING PAGE |<-------------'); console.log('------------->| ExACT - LANDING PAGE |<-------------');
//Wait until the element exists in the DOM //Wait until the element exists in the DOM
const exactLogo = await driver.wait( const exactLogo = await driver.wait(
@@ -2097,8 +2096,8 @@ const steps = [
} }
//Trigger validation by clicking Start Your Free Trial button //Trigger validation by clicking Start Your Free Trial button
await driver.findElement(By.css('#password')).sendKeys('EdGate123'); await driver.findElement(By.css('#password')).sendKeys('Etest123');
console.log('----->| NEXT ACTION: Entered Password: EdGate123'); console.log('----->| NEXT ACTION: Entered Password: Etest123');
await driver.findElement(By.css('.btn')).click(); await driver.findElement(By.css('.btn')).click();
console.log('----->| NEXT ACTION: Clicked Start Your Free Trial button'); console.log('----->| NEXT ACTION: Clicked Start Your Free Trial button');
@@ -4722,7 +4721,7 @@ const steps = [
console.log('----->| NEXT ACTION: Entered Username: exact_juan'); console.log('----->| NEXT ACTION: Entered Username: exact_juan');
await driver.findElement(By.css('.passfield')).sendKeys('Edgate1!'); await driver.findElement(By.css('.passfield')).sendKeys('Edgate1!');
console.log('----->| NEXT ACTION: Entered Password: Edgate1!'); console.log('----->| NEXT ACTION: Entered Password: ********');
await driver.findElement(By.css('.login')).click(); await driver.findElement(By.css('.login')).click();
console.log('----->| NEXT ACTION: Clicked Login button'); console.log('----->| NEXT ACTION: Clicked Login button');