Added Login link

This commit is contained in:
2024-10-07 13:52:31 -07:00
parent 5e8ff27a76
commit 802143f9d4

View File

@@ -3,6 +3,7 @@ import express from 'express';
//import authentication test scripts //import authentication test scripts
//import loginTest from './tests/login.js'; //import loginTest from './tests/login.js';
import ExACT_landingPage from './tests/ExACT_landingPage.js'; import ExACT_landingPage from './tests/ExACT_landingPage.js';
import ExACT_login from './tests/ExACT_login.js';
const app = express(); const app = express();
@@ -12,18 +13,19 @@ app.get('/', (req, res) => {
<h1 style="text-align:center; color:#055a8c; padding-top: 40px;">ExACT</h1> <h1 style="text-align:center; color:#055a8c; padding-top: 40px;">ExACT</h1>
<h1 style="text-align:center; color:#001; padding-top: 10px;">Click the corresponding link to exeucate the desired automated test case script:</h1> <h1 style="text-align:center; color:#001; padding-top: 10px;">Click the corresponding link to execute the desired automated test case script:</h1>
<br><div style="padding:3px;"><strong><a href='/ExACT_landingPage' target='_blank'>Landing Page</a></strong></div> <br><div style="padding:3px;"><strong><a href='/ExACT_landingPage' target='_blank'>Landing Page</a></strong></div>
<br> <br><div style="padding:3px;"><strong><a href='/ExACT_login' target='_blank'>Login</a></strong></div>
<br> <br>
</div> </div>
`); `);
}) })
//Authentication Test Automations Routes //Landing:
//app.get('/login', loginTest);
app.get('/ExACT_landingPage', ExACT_landingPage); app.get('/ExACT_landingPage', ExACT_landingPage);
//Login
app.get('/ExACT_landingPage', ExACT_login);
app.listen(8000, () => { app.listen(8000, () => {
console.log('Server is running on port 8000'); console.log('Server is running on port 8000');