Flaky test bingo: 12 squares I have seen in real life (with fixes)
Hello everyone) I collect flaky test causes like other people collect stamps. Here is my bingo card from the last 4 years. All real, all happened to me or my team. If you get a full row in one sprint, you deserve a day off. Row 1: Time 1. Test uses real current time. Fails at midnight, at end of month, on DST change. Fix: freeze time. In Playwright page.clock.setFixedTime() , in Jest or Vitest fake timers with a…
- Apu, for number 9, is getByRole always better than data-testid? My team uses testid everywhere.
- mint list. square 10 is our payment sandbox every friday, dead good to know it's not just us