Skip to content

Commit 6f01572

Browse files
author
Full-Stack-David
committed
Upload App
0 parents  commit 6f01572

File tree

197 files changed

+142625
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+142625
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
reports/
2+
node_modules/
3+
tests_output/
4+
npm-debug.log.*

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Voting Application
2+
3+
## Install and Boot the Application
4+
5+
1. Ensure you have `npm` installed.
6+
7+
Follow the instructions for your platform [here](https://github.com/npm/npm).
8+
9+
2. Install `http-server`
10+
11+
````
12+
npm install
13+
````
14+
15+
3. Boot the HTTP server
16+
17+
````
18+
npm run server
19+
````
20+
21+
The server is now running at [localhost:3000](localhost:3000)

disable-browser-cache.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// More info: http://stackoverflow.com/a/2068407/862877
2+
3+
module.exports = function(req, res, next) {
4+
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
5+
res.setHeader("Pragma", "no-cache");
6+
res.setHeader("Expires", "0");
7+
next();
8+
}

nightwatch.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"src_folders" : ["tests/e2e"],
3+
"custom_commands_path" : "",
4+
"custom_assertions_path" : "",
5+
"page_objects_path" : "",
6+
"globals_path" : "",
7+
8+
"selenium" : {
9+
"start_process" : false,
10+
"server_path" : "",
11+
"log_path" : "",
12+
"host" : "127.0.0.1",
13+
"port" : 4444,
14+
"cli_args" : {
15+
"webdriver.ie.driver" : ""
16+
}
17+
},
18+
19+
"test_settings" : {
20+
"default" : {
21+
"launch_url" : "http://localhost",
22+
"selenium_port" : 4444,
23+
"selenium_host" : "localhost",
24+
"silent": true,
25+
"screenshots" : {
26+
"enabled" : false,
27+
"path" : ""
28+
},
29+
"desiredCapabilities": {
30+
"browserName": "chrome",
31+
"javascriptEnabled": true,
32+
"acceptSslCerts": true
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)