Repository navigation
Commit 3a736e8
Wait for Litepicker before typing into the date range field
The shared "Date Range Picker" examples typed into #filters_date_range as
soon as the page loaded. Litepicker seeds that field from the server's
dates as the last step of its setup, so if setup finishes after the
typing, the seed overwrites it and the form filters on the default range.
On main the race rarely shows, because a render-blocking Google Fonts
stylesheet slows every page load. Removing that request (previous commit)
made pages load sooner, and with --seed 1234
spec/system/purchase_system_spec.rb failed 2-3 examples every run.
Putting the font link back made them pass again, which pins the cause to
the timing, not the typeface.
The examples now wait for Litepicker's markup before typing (or before
scripting the field), and confirm the value stuck. Ported from 6077ba5
on the design branch, which hit the same race. All 36 date range picker
examples pass across six system specs under seeds 1234, 8576 and 4242.
This can also land on main by itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa1 parent bdce1d4 commit 3a736e8
1 file changed
Lines changed: 21 additions & 4 deletions
File tree
- spec/support
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
12 | 27 | | |
13 | 28 | | |
14 | 29 | | |
| |||
50 | 65 | | |
51 | 66 | | |
52 | 67 | | |
53 | | - | |
| 68 | + | |
54 | 69 | | |
55 | 70 | | |
56 | 71 | | |
| |||
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
71 | | - | |
| 86 | + | |
72 | 87 | | |
73 | 88 | | |
74 | 89 | | |
| |||
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
81 | | - | |
| 96 | + | |
82 | 97 | | |
83 | 98 | | |
84 | 99 | | |
| |||
112 | 127 | | |
113 | 128 | | |
114 | 129 | | |
| 130 | + | |
115 | 131 | | |
116 | 132 | | |
117 | 133 | | |
| |||
132 | 148 | | |
133 | 149 | | |
134 | 150 | | |
| 151 | + | |
135 | 152 | | |
136 | 153 | | |
137 | 154 | | |
| |||
140 | 157 | | |
141 | 158 | | |
142 | 159 | | |
143 | | - | |
| 160 | + | |
144 | 161 | | |
145 | 162 | | |
146 | 163 | | |
| |||
0 commit comments