Commit 9b531cd
committed
fix: get helpers dynamically in config listener to avoid undefined errors
The config listener was capturing a static snapshot of helpers at
initialization time, which could contain empty placeholder objects
during async helper loading. This caused 'Cannot read properties of
undefined (reading name)' errors when tests tried to access helper
properties.
Changes:
- Move helpers retrieval inside event handler to get runtime instances
- Add guard clause to check helper validity before accessing properties
- Ensures we always get fully initialized helper instances, not placeholders
Fixes issue where actor I was empty {} and helper.constructor.name
threw undefined errors during Scenario execution.1 parent 5ad33dc commit 9b531cd
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
0 commit comments