Skip to content

Fix: Test for dismissal of custom toast with empty ID relies on non-existing element#724

Open
rutek wants to merge 1 commit intoemilkowalski:mainfrom
rutek:fix-failing-playwright-test
Open

Fix: Test for dismissal of custom toast with empty ID relies on non-existing element#724
rutek wants to merge 1 commit intoemilkowalski:mainfrom
rutek:fix-failing-playwright-test

Conversation

@rutek
Copy link
Copy Markdown

@rutek rutek commented Dec 18, 2025

I noticed that test called cancel button dismisses the custom toast with empty id fails every time.

It was trying to click on [data-dismiss] element, but if you look at the button in the testing Next.js environment, it doesn't have this attribute. It should use page.getByTestId('dismiss-button') reference.

image

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
sonner Ready Ready Preview, Comment Dec 18, 2025 6:59am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant