Demo ModeExit demoStart free
Ready
You
Why does the nightly e2e suite keep failing on the billing flow?
Assistant

The nightly e2e failures were all the same flaky selector on the invoice table.

  • The test waited on .invoice-row:nth-child(2), which races the table's virtualized render.
  • I replaced it with a role query (getByRole('row', { name: /INV-2207/ })).
  • Reran the billing suite three times: 3/3 green.
You
Are there other specs with the same pattern?
Assistant

Two other specs use positional selectors:

  • e2e/billing/refunds.spec.ts line 31: .refund-row:first-child
  • e2e/billing/credits.spec.ts line 18: .credit-card:nth-child(3)

Neither has failed in the last 30 nights, but they have the same race.

You
Fix those two as well.
Assistant

Done. Both now use role queries, and the billing suite passes 3/3 on repeat.