Skip to content

Commit 98f8b45

Browse files
fix(e2e/runner): ensure runner can access ngScenario
1 parent 0e297d6 commit 98f8b45

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

test/e2e/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#End 2 End Testing (ngScenario)
2+
To run the end-2-end tests against the application you use Karma or the `runner.html` page.
3+
4+
## Starting the Web Server
5+
In either case you will need the application to be running via the web-server.
6+
From the root folder of the repository run:
7+
8+
```
9+
node scripts/web-server.js
10+
```
11+
12+
The application should now be available at `http://localhost:8000/app/index.html`
13+
14+
## Testing with Karma
15+
Start the Karma test runner using the e2e configuration:
16+
17+
```
18+
karma start config/karma-e2e.conf.js
19+
```
20+
21+
## Testing in a Browser
22+
Browse directly to the e2e test runner page:
23+
24+
```
25+
http://localhost:8000/test/e2e/runner.html
26+
```

test/e2e/runner.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<head>
44
<title>End2end Test Runner</title>
55
<meta charset="utf-8">
6-
<script src="../lib/angular/angular-scenario.js" ng-autotest></script>
7-
<script src="scenarios.js"></script>
6+
<base href="../..">
7+
<script src="app/lib/angular/angular-scenario.js" ng-autotest></script>
8+
<script src="test/e2e/scenarios.js"></script>
89
</head>
910
<body>
1011
</body>

0 commit comments

Comments
 (0)