Skip to content

Commit 027d44a

Browse files
committed
docs(e2e): add env setup instructions for e2e
1 parent c139452 commit 027d44a

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

DEV_ENVIRONMENT.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,31 @@ After the changes rebuild, the browser currently needs to be manually refreshed.
1717

1818
To run unit tests, run `npm test`.
1919

20-
Running e2e tests: <not yet implemented>
21-
Running benchmarks: <not yet implemented>
22-
Running screenshot diff tests: <not yet implemented>
20+
###Running e2e tests:
21+
22+
To prepare your environment, you'll need to install protractor and selenium.
23+
24+
1. Globally install protractor:
25+
26+
```
27+
npm install -g protractor
28+
```
29+
30+
2. Install the correct selenium version with webdriver-manager (this comes with protractor):
31+
32+
```
33+
webdriver-manager update
34+
```
35+
36+
When running the tests:
37+
38+
1. Spin up a local server with `ng-serve`.
39+
40+
2. Run tests with:
41+
42+
```
43+
protractor test/protractor.conf.js
44+
```
45+
46+
Running benchmarks: not yet implemented
47+
Running screenshot diff tests: not yet implemented

0 commit comments

Comments
 (0)