Skip to content

Commit 2258642

Browse files
committed
Update NodeJS test runner GUI
1 parent 4b8044c commit 2258642

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

integrations/node_js/index.html

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
<html>
22
<head>
3+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
34
<style>
45
body {font-family: Arial, Helvetica, sans-serif;}
5-
h1 {color:#2255BB; font-size: 32px;}
6+
h1 {color:#3366CC; font-size: 32px;}
67
input {color:#009999; font-size: 24px;
7-
box-shadow: 0 0 4px gray;}
8+
box-shadow: 0 0 5px teal;}
89
</style>
910
</head>
1011
<body>
12+
<div class="container">
1113
<h1>Select an option:</h1>
12-
<form method="put" action="/run_my_first_test_in_firefox">
13-
<input type="submit" value="Run Test in Firefox">
14-
</form>
1514
<form method="put" action="/run_my_first_test_in_chrome">
1615
<input type="submit" value="Run Test in Chrome">
1716
</form>
18-
<form method="put" action="/run_my_first_test_in_firefox_with_demo_mode">
19-
<input type="submit" value="Run Test in Firefox (Demo Mode)">
17+
<form method="put" action="/run_my_first_test_in_firefox">
18+
<input type="submit" value="Run Test in Firefox">
2019
</form>
2120
<form method="put" action="/run_my_first_test_in_chrome_with_demo_mode">
2221
<input type="submit" value="Run Test in Chrome (Demo Mode)">
2322
</form>
23+
<form method="put" action="/run_my_first_test_in_firefox_with_demo_mode">
24+
<input type="submit" value="Run Test in Firefox (Demo Mode)">
25+
</form>
26+
</div>
2427
</body>
2528
</html>

integrations/node_js/server.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ var path = require('path');
44
var app = express();
55
var exec = require('child_process').exec;
66

7-
function run_my_first_test_in_firefox() {
8-
exec("nosetests my_first_test.py --browser=firefox");
9-
}
10-
117
function run_my_first_test_in_chrome() {
12-
exec("nosetests my_first_test.py --browser=chrome");
8+
exec("nosetests my_first_test.py --browser=chrome -s");
139
}
1410

15-
function run_my_first_test_in_firefox_with_demo_mode() {
16-
exec("nosetests my_first_test.py --browser=firefox --demo_mode");
11+
function run_my_first_test_in_firefox() {
12+
exec("nosetests my_first_test.py --browser=firefox -s");
1713
}
1814

1915
function run_my_first_test_in_chrome_with_demo_mode() {
2016
exec("nosetests my_first_test.py --browser=chrome --demo_mode");
2117
}
2218

19+
function run_my_first_test_in_firefox_with_demo_mode() {
20+
exec("nosetests my_first_test.py --browser=firefox --demo_mode");
21+
}
22+
2323
app.get('/', function(req, res) {
2424
res.sendFile(path.join(__dirname + '/index.html'));
2525
})

0 commit comments

Comments
 (0)