Added Dashboard My Content link
This commit is contained in:
15
index.js
15
index.js
@@ -1,9 +1,8 @@
|
||||
import express from 'express';
|
||||
|
||||
//import authentication test scripts
|
||||
//import loginTest from './tests/login.js';
|
||||
import ExACT_landingPage from './tests/ExACT_landingPage.js';
|
||||
import ExACT_login from './tests/ExACT_login.js';
|
||||
import ExACT_dashboardMyContent from './tests/ExACT_DashboardMyContent.js';
|
||||
|
||||
const app = express();
|
||||
|
||||
@@ -11,12 +10,15 @@ app.get('/', (req, res) => {
|
||||
res.send(`
|
||||
<div style="text-align:center; background:#ccc;" width="100%">
|
||||
|
||||
<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 execute the desired automated test case script:</h1>
|
||||
<h1 style="text-align:center; color:#055a8c; padding-top: 40px;">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>
|
||||
|
||||
<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_login' target='_blank'>Login</a></strong></div>
|
||||
|
||||
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">Dashboard</h1>
|
||||
<div style="padding:3px;"><strong><a href='/ExACT_dashboardMyContent' target='_blank'>My Content</a></strong></div>
|
||||
<br>
|
||||
</div>
|
||||
`);
|
||||
@@ -26,6 +28,9 @@ app.get('/', (req, res) => {
|
||||
app.get('/ExACT_landingPage', ExACT_landingPage);
|
||||
//Login
|
||||
app.get('/ExACT_login', ExACT_login);
|
||||
//Dashboard
|
||||
//My Content
|
||||
app.get('/ExACT_dashboardMyContent', ExACT_dashboardMyContent);
|
||||
|
||||
app.listen(8000, () => {
|
||||
console.log('Server is running on port 8000');
|
||||
|
||||
Reference in New Issue
Block a user