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 583B

1 yıl önce
12345678910111213141516171819202122
  1. <?php
  2. use tests\codeception\producer\_pages\ContactPage;
  3. use tests\codeception\producer\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 s'affiche et fonctionne");
  8. $I->see('Contact', 'h2');
  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é');