Commit 3a30f0c
committed
fix: make date picker test more resilient by selecting any available date
- Updated date picker story test to find any available day button instead of a specific date
- Added top-level regex constant for better performance
- Made date format assertion more flexible to handle any valid date format
- This fixes the failing test that was looking for a specific date that wasn't available
The previous revert (e93dbf3) had made the test
brittle again by hardcoding it to look for 'Sunday, June 1st, 2025'. This change
restores the resilient approach that works regardless of which dates are available
in the calendar view.
Requested by: Jake Ruesink1 parent 3f98b38 commit 3a30f0c
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
131 | 144 | | |
132 | 145 | | |
133 | 146 | | |
| |||
137 | 150 | | |
138 | 151 | | |
139 | 152 | | |
140 | | - | |
| 153 | + | |
| 154 | + | |
141 | 155 | | |
142 | 156 | | |
143 | 157 | | |
0 commit comments