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.

ContactCept.php 577B

1 year ago
1 year ago
1 year ago
1 year ago
12345678910111213141516171819202122
  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('Contact', '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('Merci pour votre message', '.alert-success');