From 9dc6b0bec397e89bda5d229c30d625c2a51f3cce Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Thu, 16 Apr 2026 16:55:03 +0100 Subject: [PATCH] Document new param on clickToastButton --- packages/playwright-common/src/fixtures/toasts.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/playwright-common/src/fixtures/toasts.ts b/packages/playwright-common/src/fixtures/toasts.ts index 59a3323faa..e04b275178 100644 --- a/packages/playwright-common/src/fixtures/toasts.ts +++ b/packages/playwright-common/src/fixtures/toasts.ts @@ -128,6 +128,7 @@ class Toasts { * If `required` is false, you should supply a relatively short `timeout` * (e.g. 2000, meaning 2 seconds) to prevent your test taking too long. * + * @param toasts - A Toasts instance. * @param title - Expected title of the toast. * @param button - Which button to click on the toast. Allowed values are * "primary", which will accept the toast, or "secondary",