@@ -28,14 +28,14 @@ The following sections will illustrate these benefits in more detail.
28
28
## Which kinds of tests can use harnesses?
29
29
30
30
The Angular CDK's component harnesses are designed to work in multiple different test environments.
31
- Support currently includes Angular's Testbed environment in Karma unit tests and Protractor
31
+ Support currently includes Angular's Testbed environment in Karma unit tests and Selenium WebDriver
32
32
end-to-end (e2e) tests. You can also support additional environments by creating custom extensions
33
33
of the CDK's ` HarnessEnvironment ` and ` TestElement ` classes.
34
34
35
35
## Getting started
36
36
37
37
The foundation for all test harnesses lives in ` @angular/cdk/testing ` . Start by importing either
38
- ` TestbedHarnessEnvironment ` or ` ProtractorHarnessEnvironment ` based on whether you're writing a
38
+ ` TestbedHarnessEnvironment ` or ` SeleniumWebDriverHarnessEnvironment ` based on whether you're writing a
39
39
unit test or an e2e test. From the ` HarnessEnvironment ` , you can get a ` HarnessLoader ` instance,
40
40
which you will use to load Angular Material component harnesses. For example, if we're writing unit
41
41
tests for a ` UserProfile ` component, the code might look like this:
@@ -64,8 +64,8 @@ different paths.
64
64
- ` @angular / cdk / testing ` contains symbols that are shared regardless of the environment your tests
65
65
are in.
66
66
- ` @angular / cdk / testing / testbed ` contains symbols that are used only in Karma tests.
67
- - ` @angular / cdk / testing / protractor ` (not shown above) contains symbols that are used only in
68
- Protractor tests.
67
+ - ` @angular / cdk / testing / selenium - webdriver ` (not shown above) contains symbols that are used only in
68
+ Selenium WebDriver tests.
69
69
70
70
## Loading an Angular Material harness
71
71
0 commit comments