Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1f7c01e

Browse files
Add tests for dontSeeFormErrors method
1 parent eb7792c commit 1f7c01e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎tests/functional/FormErrorsCept.php‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
$I = new FunctionalTester($scenario);
3-
$I->wantTo('test session errors');
3+
$I->wantTo('test form error assertions');
44

55
$I->amOnPage('/auth/register');
66
$I->click('button[type=submit]');
@@ -12,3 +12,11 @@
1212
'name' => 'The name field is required.',
1313
'email' => 'The email field is required.'
1414
));
15+
16+
$I->fillField('name', 'John Doe');
17+
$I->fillField('email', 'johndoe@example.com');
18+
$I->fillField('password', 'password');
19+
$I->fillField('password_confirmation', 'password');
20+
$I->click('button[type=submit]');
21+
22+
$I->dontSeeFormErrors();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /