(page, timeout = 15000)
| 614 | } |
| 615 | |
| 616 | async function waitForToast(page, timeout = 15000) { |
| 617 | const toast = page.locator('.toastify, [role="status"]:has(button[aria-label="Close"])').last(); |
| 618 | await toast.waitFor({ state: 'visible', timeout }); |
| 619 | return toast; |
| 620 | } |
| 621 | |
| 622 | async function dismissToast(page) { |
| 623 | const closeButton = page.locator('.toast-close, [role="status"] button[aria-label="Close"]').last(); |
no test coverage detected