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 Add behat test for form validation #1543

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Aug 8, 2023

Requires silverstripe/silverstripe-framework#10907 and silverstripe/silverstripe-frameworktest#146 to be merged in before it will go green

Note that I'm not checking toasts in the behat test because it turns out there are none to check! See #1544

Issue

@GuySartorelli GuySartorelli force-pushed the pulls/1.13/behat-for-validation branch from c61ddbd to 1b8b5d9 Compare August 8, 2023 01:10
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we check another fields, not just Email.

Copy link
Member Author

@GuySartorelli GuySartorelli Aug 9, 2023

Choose a reason for hiding this comment

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

We can, but can you please explain why? We're not testing if all form fields have implemented good validation logic - we're just testing if the form is validated at all when we don't explicitly declare a validator. The type of the field isn't really relevant.

@sabina-talipova
Copy link
Contributor

@sabina-talipova sabina-talipova merged commit c2aabb8 into silverstripe:1.13 Aug 10, 2023
@sabina-talipova sabina-talipova deleted the pulls/1.13/behat-for-validation branch August 10, 2023 00:29
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