27 行
612B

  1. <?php
  2. class MyNewScenarioCest
  3. {
  4. public function _before(FunctionalTester $I)
  5. {
  6. }
  7. public function _after(FunctionalTester $I)
  8. {
  9. }
  10. // tests
  11. public function tryToTest(FunctionalTester $I)
  12. {
  13. $I->amOnPage(['site/contact']);
  14. /*$I->submitForm('#contact-form', []);
  15. $I->expectTo('see validations errors');
  16. $I->see('Contact', 'h1');
  17. $I->see('Name cannot be blank');
  18. $I->see('Email cannot be blank');
  19. $I->see('Subject cannot be blank');
  20. $I->see('Body cannot be blank');*/
  21. //$I->see('<h1>Contact</h1>');
  22. }
  23. }