Wait for new notifications after seed, return count and last notification
(countAfterSeed: number)
| 434 | |
| 435 | /** Wait for new notifications after seed, return count and last notification */ |
| 436 | async function waitForNewNotifications(countAfterSeed: number) { |
| 437 | await waitFor(() => expect(notifications.length).toBeGreaterThanOrEqual(countAfterSeed + 1), { |
| 438 | timeout: 5_000, |
| 439 | }); |
| 440 | return { |
| 441 | newCount: notifications.length - countAfterSeed, |
| 442 | last: notifications[notifications.length - 1], |
| 443 | }; |
| 444 | } |
| 445 | |
| 446 | test("queued auto-follow-up should fire only ONE notification (for the follow-up response)", async () => { |
| 447 | const { app, countAfterSeed, cleanup } = await setupNotificationTest( |
no test coverage detected