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() },