Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
test: fix flaky access-control bulk delete tests failing due to timing issues (#15692)
### What? Fixed access-control e2e tests that check bulk delete button visibility based on trash permissions. <img width="1739" height="764" alt="Screenshot 2026-02-19 at 12 48 33 PM" src="https://github.com/user-attachments/assets/a70a2e0b-a2fe-4fc0-b47f-f2097eca0021" /> ### Why? Tests were selecting rows via checkbox then immediately expecting the bulk delete button to appear. In slower environments (especially CI), the bulk selection UI hadn't rendered yet, causing assertions to fail. ### How? - Target the actual checkbox input instead of the wrapper element - Use `.check()` instead of `.click()` for reliable checkbox interaction - Wait for checkbox to be checked and bulk selection UI to show "1 selected"
P
Patrik committed
558345b3e080cb06e2bab8d271c7e60ee071bf96
Parent: 00f763b
Committed by GitHub <noreply@github.com>
on 2/19/2026, 6:01:30 PM