Skip to content

Commit e58b843

Browse files
authored
docs(cdk/testing): Highlight differences between e2e and unit… (#17499)
1 parent 1d54680 commit e58b843

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cdk/testing/testing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ Since Protractor does not deal with fixtures, the API in this environment is sim
117117
`HarnessLoader` returned by the `loader()` method should be sufficient for loading all necessary
118118
`ComponentHarness` instances.
119119

120+
Please note that harnesses may not behave _exactly_ the same in all environments. There will always
121+
be some difference between the real browser-generated event sequence when a user clicks or types in
122+
an element, versus the simulated event sequence generated in unit tests. Instead, the CDK makes a
123+
best effort to normalize the behavior and simulate the most important events in the sequence.
124+
120125
#### Creating harnesses with `HarnessLoader`
121126

122127
Instances of this class correspond to a specific DOM element (the "root element" of the loader) and

0 commit comments

Comments
 (0)