diff --git a/alignStandardsPageResults.xlsx b/alignStandardsPageResults.xlsx
deleted file mode 100644
index b5ca039..0000000
Binary files a/alignStandardsPageResults.xlsx and /dev/null differ
diff --git a/frameworkPublishingPageResults.xlsx b/frameworkPublishingPageResults.xlsx
deleted file mode 100644
index 9933ff1..0000000
Binary files a/frameworkPublishingPageResults.xlsx and /dev/null differ
diff --git a/index.js b/index.js
index 4044cb9..aa99e6e 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,6 @@
import express from 'express';
-import ExACT_landingPage from './tests/ExACT_landingPage.js';
+import exactLandingPage from './tests/exactLandingPage.js';
//import ExACT_login from './tests/ExACT_login.js';
//DASHBOARDS
@@ -47,7 +47,7 @@ app.get('/', (req, res) => {
(Click the corresponding link to execute the desired script)
EDGATE LANDING PAGE
-
+
DASHBOARD
@@ -93,7 +93,7 @@ app.get('/', (req, res) => {
})
//EXACT LANDING
- app.get('/ExACT_landingPage', ExACT_landingPage);
+ app.get('/exactLandingPage', exactLandingPage);
//Login
//app.get('/ExACT_login', ExACT_login);
diff --git a/alignAutoAlignPageResults.xlsx b/results/alignAutoAlignPageResults.xlsx
similarity index 82%
rename from alignAutoAlignPageResults.xlsx
rename to results/alignAutoAlignPageResults.xlsx
index daa13e8..f802be5 100644
Binary files a/alignAutoAlignPageResults.xlsx and b/results/alignAutoAlignPageResults.xlsx differ
diff --git a/alignContentPageResults.xlsx b/results/alignContentPageResults.xlsx
similarity index 89%
rename from alignContentPageResults.xlsx
rename to results/alignContentPageResults.xlsx
index b72f4f7..baf55d3 100644
Binary files a/alignContentPageResults.xlsx and b/results/alignContentPageResults.xlsx differ
diff --git a/results/alignStandardsPageResults.xlsx b/results/alignStandardsPageResults.xlsx
new file mode 100644
index 0000000..6b6b800
Binary files /dev/null and b/results/alignStandardsPageResults.xlsx differ
diff --git a/correlationsDashboard.xlsx b/results/correlationsDashboard.xlsx
similarity index 80%
rename from correlationsDashboard.xlsx
rename to results/correlationsDashboard.xlsx
index 3f39b2a..3820250 100644
Binary files a/correlationsDashboard.xlsx and b/results/correlationsDashboard.xlsx differ
diff --git a/landingPageResults.xlsx b/results/exactLandingPageResults.xlsx
similarity index 79%
rename from landingPageResults.xlsx
rename to results/exactLandingPageResults.xlsx
index 63aa776..553bb80 100644
Binary files a/landingPageResults.xlsx and b/results/exactLandingPageResults.xlsx differ
diff --git a/frameworkManagementPageResults.xlsx b/results/frameworkManagementPageResults.xlsx
similarity index 79%
rename from frameworkManagementPageResults.xlsx
rename to results/frameworkManagementPageResults.xlsx
index 7177fac..7c5c5e6 100644
Binary files a/frameworkManagementPageResults.xlsx and b/results/frameworkManagementPageResults.xlsx differ
diff --git a/results/uploadSubmitAResourcePageResults.xlsx b/results/uploadSubmitAResourcePageResults.xlsx
new file mode 100644
index 0000000..4206a92
Binary files /dev/null and b/results/uploadSubmitAResourcePageResults.xlsx differ
diff --git a/tests/ExACT_landingPage.js b/tests/exactLandingPage.js
similarity index 99%
rename from tests/ExACT_landingPage.js
rename to tests/exactLandingPage.js
index 7ea349e..8a9fb4c 100644
--- a/tests/ExACT_landingPage.js
+++ b/tests/exactLandingPage.js
@@ -5,8 +5,8 @@ import XLSX from 'xlsx';
import path from 'path';
import { error } from 'console';
-const ExACT_landingPage = (req, res) => {
- res.send('ExACT Automated Test Script: EGATE LANDING PAGE: ExACT Login Page (ExACT_landingPage) | Initiated
');
+const exactLandingPage = (req, res) => {
+ res.send('ExACT Automated Test Script: ExACT Landing Page(exactLandingPage) | Initiated
');
(async function example() {
let driver = await new Builder()
.forBrowser('chrome')
@@ -1189,31 +1189,31 @@ const steps = [
const errors = [];
//text
- if (elementText === 'Already Have an account? Sign In') {
- console.log('Passed: Already Have an account? Sign In text matched as expected');
+ if (elementText === 'Already have an account? Sign In') {
+ console.log('Passed: Already have an account? Sign In text matched as expected');
} else {
- errors.push(`Expected: "Already Have an account? Sign In"; Actual: "${elementText}"`);
+ errors.push(`Expected: "Already have an account? Sign In"; Actual: "${elementText}"`);
}
//font-family
if (elementFont === "Poppins, sans-serif") {
- console.log('Passed: Already Have an account? Sign In text font matched as expected');
+ console.log('Passed: Already have an account? Sign In text font matched as expected');
} else {
- errors.push(`Expected: Already Have an account? Sign In text font "Poppins, sans-serif"; Actual: ${elementFont}`);
+ errors.push(`Expected: Already have an account? Sign In text font "Poppins, sans-serif"; Actual: ${elementFont}`);
}
//color
if (elementColor === 'rgba(32, 32, 32, 1)') {
- console.log('Passed: Already Have an account? Sign In color matched as expected');
+ console.log('Passed: Already have an account? Sign In color matched as expected');
} else {
- errors.push(`Expected: Already Have an account? Sign In color "rgba(32, 32, 32, 1)"; Actual: "${elementColor}"`);
+ errors.push(`Expected: Already have an account? Sign In color "rgba(32, 32, 32, 1)"; Actual: "${elementColor}"`);
}
//font size
if (elementSize === '12px') {
- console.log('Passed: Already Have an account? Sign In text font-size matched as expected');
+ console.log('Passed: Already have an account? Sign In text font-size matched as expected');
} else {
- errors.push(`Expected: Already Have an account? Sign In text font-size "12px"; Actual: "${elementSize}"`);
+ errors.push(`Expected: Already have an account? Sign In text font-size "12px"; Actual: "${elementSize}"`);
}
//Throw summary if any validation failed
@@ -4817,6 +4817,8 @@ const takeScreenshot = async (driver, stepIndex, stepDescription) => {
return screenshotPath;
};
+const resultsFile = path.join('results', 'exactLandingPageResults.xlsx');
+
const clearOldResults = () => {
//Remove old screenshots
const screenshotDir = path.join('screenshots', 'landingPage');
@@ -4826,9 +4828,10 @@ const clearOldResults = () => {
fs.mkdirSync(screenshotDir, { recursive: true });
//Remove old Excel file
- if (fs.existsSync('landingPageResults.xlsx')) {
- fs.unlinkSync('landingPageResults.xlsx');
+ if (fs.existsSync(resultsFile)) {
+ fs.unlinkSync(resultsFile);
}
+ fs.mkdirSync('results', { recursive: true });
};
try {
@@ -4889,11 +4892,11 @@ try {
if (allStepsPassed) {
console.log('------------->| THE END |<-------------');
- console.log('PASSED: EDGATE LANDING PAGE - ExACT Landing Page (ExACT_landingPage); All test steps completed successfully');
+ console.log('PASSED: ExACT Landing Page(exactLandingPage); All test steps completed successfully');
testStatus = 'Passed';
} else {
console.log('------------->| THE END |<-------------');
- console.log('FAILED: EDGATE LANDING PAGE - ExACT Landing Page (ExACT_landingPage); One or more test steps failed');
+ console.log('FAILED: ExACT Landing Page(exactLandingPage); One or more test steps failed');
console.log('FAILED STEPS:');
failedSteps.forEach(step => console.error(` ✗ ${step}`));
testStatus = 'Failed';
@@ -4905,11 +4908,11 @@ try {
//Write the updated worksheet back to the workbook and save it
workbook.Sheets['Sheet1'] = worksheet;
- XLSX.writeFile(workbook, 'landingPageResults.xlsx');
+ XLSX.writeFile(workbook, resultsFile);
} finally {
await driver.quit();
}
})();
}
-export default ExACT_landingPage;
+export default exactLandingPage;