Commit 3fb10e1
authored
test: flaky timeout when clicking Create New button in versions test suite (#15850)
### What
Fixed flaky test `"collection - autosave - should not create duplicates
when clicking Create new"` that was timing out on navigation.
<img width="1233" height="529" alt="Screenshot 2026-03-04 at 4 49 47 PM"
src="https://github.com/user-attachments/assets/e5c5c9a9-65ca-4cde-8c49-372978956179"
/>
### Why
Next.js 16 hydration can cause buttons to appear clickable before
they're fully interactive. Clicking the "Create New" button resulted in
30s timeouts waiting for navigation that never happened.
### How
Extract the `href` attribute from the button and navigate directly to it
instead of clicking.
This avoids the hydration timing issue while still validating the button
exists and has the correct href.1 parent 649f117 commit 3fb10e1
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
570 | | - | |
571 | | - | |
| 569 | + | |
| 570 | + | |
572 | 571 | | |
573 | 572 | | |
574 | 573 | | |
| |||
0 commit comments