Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function contactFormCanBeSubmitted(AcceptanceTester $I): void |
||
21 | { |
||
22 | $I->amGoingTo('submit contact form with correct data'); |
||
23 | $I->fillField('#contactform-name', 'tester'); |
||
24 | $I->fillField('#contactform-email', '[email protected]'); |
||
25 | $I->fillField('#contactform-subject', 'test subject'); |
||
26 | $I->fillField('#contactform-body', 'test content'); |
||
27 | $I->fillField('#contactform-verifycode', 'testme'); |
||
28 | |||
29 | $I->click('contact-button'); |
||
30 | |||
31 | $I->expectTo('see message about successful sending'); |
||
32 | $I->dontSeeElement('#contact-form'); |
||
33 | $I->see('Thank you for contacting us. We will respond to you as soon as possible.'); |
||
34 | } |
||
36 |