Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Support assert toasts if there are mutliple toasts #11301

Merged

Conversation

emteknetnz
Copy link
Member

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain why these changes are needed - I'm not really sure what I'm looking at here.

@emteknetnz
Copy link
Member Author

Previously we've always assumed there's a single toast when doing assertions. The existing logic would simply grab the first toast matched on css and check the text inside of that. However with the new elemental inline logic there will be multiple toasts - one for each block inline saved and one for the page being saved.

This PR makes it so that all of the toasts are checked for matching text

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this is worth merging regardless of what happens with all the other PRs.

@GuySartorelli GuySartorelli merged commit 68d8cfc into silverstripe:5 Jul 11, 2024
15 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5/toasts-behat branch July 11, 2024 23:44
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.

2 participants