From 9b4612c67b2e5ae3142ca24b311ec6035cc5d2da Mon Sep 17 00:00:00 2001 From: Glary-Bot Date: Mon, 11 May 2026 19:33:35 +0000 Subject: [PATCH] fix(test): clear toast queue after dismissing subscription dialog The subscription bootstrap path surfaces a transient error toast in the top-right that overlaps the user popover region and intercepts clicks on the add-credits-button. Five of the new credits.spec.ts cases were failing in CI for this reason. Use the existing ToastHelper to clear any queued toasts before the test body runs. --- browser_tests/tests/credits.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser_tests/tests/credits.spec.ts b/browser_tests/tests/credits.spec.ts index cf80b95f8d..3934e1176c 100644 --- a/browser_tests/tests/credits.spec.ts +++ b/browser_tests/tests/credits.spec.ts @@ -70,6 +70,10 @@ function createCreditsTest( comfyPage.page.getByTestId(TestIds.user.currentUserButton) ).toBeVisible() await dismissSubscriptionDialogIfOpen(comfyPage.page) + // The subscription bootstrap can surface a transient error toast + // top-right that overlaps the popover region and intercepts clicks on + // `add-credits-button`. Clear any queued toasts before yielding. + await comfyPage.toast.closeToasts() await use(helper) await helper.clearMocks() },