Commit a5b0209
authored
test(wtr): get another pile of tests passing (#5425)
* refactor(wtr): move NODE_ENV_FOR_TEST default into options file
* chore(wtr): move hooks util to separate file
* chore(wtr): move aria utils to separate file
* chore(wtr): move constants to separate file
* chore(wtr): clean up custom rollup plugin
* test(wtr): get hydration tests kinda running
* test(wtr): kinda start moving to ESM instead of IIFE
* fix(shared): make sanitizeHtmlContent work
* chore(ci): run hydration tests in ci
* test(wtr): remove unused script
* test(wtr): implement missing jasmine assertions
* test(wtr): clean up test to make assertions more clear
* test(wtr): implement custom console matchers
* test(wtr): use simpler console spy
* test(wtr): remove outdated, unnecessary spies
* test(wtr): move signals util to own file
* test(wtr): implement custom error matchers
everything passed first try, which is kinda sus
* chore: split matchers into separate files
* chore: ugh tui go away
* chore: remove unused file
code is now in helpers/matchers/index.mjs
* test(wtr): conditionally import polyfills
reduces test failures from 291 to 220
* test(wtr): use one setup file instead of two
* chore: add comment explaining file
* chore(wtr): rename file
* chore(wtr): move test configs into directory
* chore(wtr): extract shared parts of config into base config object
* chore(wtr): rename config files
who needs convention?
* chore(wtr): move WTR plugins from helpers dir to config dir
* chore: move full plugins to plugin files
instead of just inner logic
* test(wtr): not all env vars are boolean
fixes ~50 test failures
* test(wtr): make tests async so they clean up properly
I'm not sure why the async matters, but it does.
* test(wtr): fix resolution of wire-service
* test(wtr): skip flaky tests
* test(wtr): add more jasmine spy adapter methods
* test(wtr): enable passing tests
turns out they just had browser log warnings, not failures
* test(wtr): make spy props non-enumerable
* test(wtr): remove unused matcher
* test(wtr): fix assertion to match error message
* test(wtr): implement jasmine.any
* test(wtr): mark test as flaky timeout
* update comment
* update comment
* test(wtr): move scripts to head instead of body
tests manipulate the body, so we use head for scripts to keep the body clean
* Update packages/@lwc/integration-not-karma/configs/base.mjs
* Update packages/@lwc/integration-not-karma/configs/base.mjs
* test(wtr): clean DOM after each test
* test(wtr): implement callFake jasmine adapter
* test(wtr): add missing argsFor jasmine adapter
* test(wtr): add missing toHaveBeenCalledOnceWith assertion
* test(wtr): categorize failures
* test(wtr): fix .toMatch and categorize failing files
* test(wtr): using detached objectContaining does not work
it breaks the required `this` reference
* test(wtr): add pre-test assertion checking for window focus
* test(wtr): eliminate concurrency
it messes with focus and breaks tests
* chore(deps): bump @web/test-runner to latest
* test(wtr): reset logged messages after each test
* chore(wtr): link potential workaround for concurrency issue
* test(wtr): reset logs between all tests
* test(wtr): fix more toMatch failures
* chore(deps): bump chai1 parent da10730 commit a5b0209
File tree
16 files changed
+59
-51
lines changed- packages/@lwc
- integration-karma/test
- component/LightningElement.attachInternals/api
- light-dom/slot-fowarding
- scoped-slots
- slots
- forwarding
- reactivity
- profiler/mutation-logging
- regression/invalid-key
- rendering/sanitize-stylesheet-token
- static-content
- template/directive-for-each
- integration-not-karma
- configs
- helpers
- matchers
16 files changed
+59
-51
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
822 | | - | |
| 822 | + | |
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
| 832 | + | |
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments