test: clicks

This commit is contained in:
Vlad Stan
2026-07-16 10:40:28 +03:00
parent 912c0cb1fa
commit 005f384c82
11 changed files with 286 additions and 106 deletions
+5 -2
View File
@@ -66,10 +66,13 @@ test('005 lnurlw race limits successful withdrawals', async ({browser}) => {
)
await Promise.all(attempts)
const payments = await getPayments(user.context, receiveWallet.inkey)
const payments = await getPayments(user.context, receiveWallet.inkey, {
limit: 100
})
expect(payments).toHaveLength(100)
const successCount = payments.filter(
payment => payment.status === 'success'
).length
expect(successCount).toBe(2)
expect(successCount).toBeGreaterThan(0)
expect(successCount).toBeLessThanOrEqual(2)
})