| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function contactFormCanBeSubmitted(AcceptanceTester $I) |
||
| 19 | { |
||
| 20 | $I->amGoingTo('submit contact form with correct data'); |
||
| 21 | $I->fillField('#contactform-name', 'tester'); |
||
| 22 | $I->fillField('#contactform-email', '[email protected]'); |
||
| 23 | $I->fillField('#contactform-subject', 'test subject'); |
||
| 24 | $I->fillField('#contactform-body', 'test content'); |
||
| 25 | $I->fillField('#contactform-verifycode', 'testme'); |
||
| 26 | |||
| 27 | $I->click('contact-button'); |
||
| 28 | |||
| 29 | $I->wait(2); // wait for button to be clicked |
||
| 30 | |||
| 31 | $I->dontSeeElement('#contact-form'); |
||
| 32 | $I->see('Thank you for contacting us. We will respond to you as soon as possible.'); |
||
| 33 | } |
||
| 35 |