Commit 56aafa3
test: stabilize calendar-1-single-booking Playwright test
Replace whole-DOM getByText("Ledigt") scan with a specific
.status locator and add a .room-info visibility anchor before
the assertion so Playwright doesn't poll an un-rendered tree.
Mirrors the pattern of the passing calendar-0-single-booking
sibling test (line 202).
The previous form was flaky: getByText with toHaveCount(1)
fails fast if .status briefly shows "Optaget" during the
mount-then-effect re-render window (currentTime initializes
from useState(dayjs()) before the page.clock.install propagates
into the React tree). toHaveText keeps polling the same element
until it settles.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ad3bd91 commit 56aafa3
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
241 | | - | |
242 | | - | |
| 243 | + | |
243 | 244 | | |
0 commit comments