You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Much like Karma is the test runner for unit tests, we use Protractor to run end-to-end tests.
126
+
Try it with `npm run protractor`. End-to-end tests are slow, so unlike with unit tests, Protractor
127
+
will exit after the test run and will not automatically rerun the test suite on every file change.
128
+
To rerun the test suite, execute `npm run protractor` again.
126
129
127
-
Previously we've seen how Karma can be used to execute unit tests. Well, it can also run the
128
-
end-to-end tests! Use `./scripts/e2e-test.sh` (if you are on Windows, run `scripts\e2e-test.bat`) script for that. End-to-end tests are slow, so unlike
129
-
with unit tests, Karma will exit after the test run and will not automatically rerun the test
130
-
suite on every file change. To rerun the test suite, execute the `e2e-test.sh` or `e2e-test.bat` script again.
131
-
132
-
Note: You must ensure you've installed the karma-ng-scenario framework plugin prior to running the
133
-
`e2e-test.sh` script. You can do this by issuing `npm install` into your terminal.
130
+
Note: You must ensure you've installed the protractor and updated webdriver prior to running the
131
+
`npm run protractor`. You can do this by issuing `npm install` and `npm run update-webdriver` into
132
+
your terminal.
134
133
135
134
This test verifies that the search box and the repeater are correctly wired together. Notice how
136
135
easy it is to write end-to-end tests in Angular. Although this example is for a simple test, it
@@ -173,28 +172,24 @@ ngBindTemplate} directives, which are invisible to the user while the page is lo
173
172
```js
174
173
it('should display the current filter value within an element with id "status"',
The end-to-end test verifies that the ordering mechanism of the select box is working correctly.
174
183
175
-
You can now rerun `./scripts/e2e-test.sh` or refresh the browser tab with the end-to-end test
176
-
`runner.html` to see the tests run, or you can see them running on [Angular's server](http://angular.github.com/angular-phonecat/step-4/test/e2e/runner.html).
184
+
You can now rerun `npm run protractor` to see the tests run.
We added a new end-to-end test to verify that the app is generating correct links to the phone
87
90
views that we will implement in the upcoming steps.
88
91
89
-
You can now rerun `./scripts/e2e-test.sh` or refresh the browser tab with the end-to-end test
90
-
runner to see the tests run, or you can see them running on [Angular's server](http://angular.github.com/angular-phonecat/step-6/test/e2e/runner.html).
92
+
You can now rerun `npm run protractor` to see the tests run.
You can now rerun `./scripts/e2e-test.sh` or refresh the browser tab with the end-to-end test
285
-
runner to see the tests run, or you can see them running on [Angular's server](http://angular.github.com/angular-phonecat/step-7/test/e2e/runner.html).
284
+
You can now rerun `npm run protractor` to see the tests run.
You can now rerun `./scripts/e2e-test.sh` or refresh the browser tab with the end-to-end test
182
-
runner to see the tests run, or you can see them running on [Angular's server](http://angular.github.com/angular-phonecat/step-8/test/e2e/runner.html).
181
+
You can now rerun `npm run protractor` to see the tests run.
You can now rerun `./scripts/e2e-test.sh` or refresh the browser tab with the end-to-end test
109
-
runner to see the tests run, or you can see them running on [Angular's server](http://angular.github.com/angular-phonecat/step-10/test/e2e/runner.html).
107
+
You can now rerun `npm run protractor` to see the tests run.
0 commit comments