Skip to content

Added seeFormErrorMessage function #50

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

Merged
merged 1 commit into from
Nov 24, 2020
Merged

Added seeFormErrorMessage function #50

merged 1 commit into from
Nov 24, 2020

Conversation

TavoNiievez
Copy link
Member

@TavoNiievez TavoNiievez commented Nov 20, 2020

     $I->seeFormErrorMessage('username');
     $I->seeFormErrorMessage('username', 'Username is empty');

Also present in the Laravel module... But a bit more complex 😃.

  • Fails if there are no forms when asserting.
  • Fails if an invalid field is passed as an argument.
  • It performs its function by verifying that the field is valid and has errors.
  • If the expected error message is specified it verifies that it matches the current one. (technically with: ->assertStringContainsString()).

@TavoNiievez TavoNiievez added this to the 1.4.0 milestone Nov 21, 2020
@Naktibalda Naktibalda requested a review from DavertMik November 23, 2020 06:18
@DavertMik
Copy link
Member

Good. Once it is merged we should have corresponding tests in symfony-demo

@TavoNiievez TavoNiievez mentioned this pull request Nov 23, 2020
75 tasks
@TavoNiievez TavoNiievez merged commit 0db0214 into Codeception:master Nov 24, 2020
@TavoNiievez TavoNiievez deleted the seeFormErrorMessage branch November 24, 2020 16:33
@TavoNiievez TavoNiievez mentioned this pull request Dec 9, 2020
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.

3 participants