You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
592B

  1. <?php
  2. use tests\codeception\frontend\_pages\ContactPage;
  3. use tests\codeception\frontend\FunctionalTester;
  4. /* @var $scenario Codeception\Scenario */
  5. $I = new FunctionalTester($scenario);
  6. $contactPage = ContactPage::openBy($I);
  7. $I->wantTo("m'assurer que le formulaire de contact fonctionne");
  8. $I->see('Me contacter', 'h1');
  9. $I->amGoingTo("envoyer un message");
  10. $contactPage->submit([
  11. 'name' => 'Test',
  12. 'email' => 'test@opendistrib.net',
  13. 'subject' => 'Sujet',
  14. 'body' => 'Message',
  15. 'isTest' => 'isTest'
  16. ]);
  17. $I->see('Votre message a bien été envoyé', '.alert-success');