Blame view

tests/acceptance/FirstTestCept.php 741 Bytes
8b9f2521   Administrator   28.03.16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <?php 
  $I = new AcceptanceTester($scenario);
  $I->wantTo('perform actions and see result');
  $I->amOnPage('/');
  $I->canSee('Проектантам');
  $I->click('Вход');
  $I->waitForElement('#modal_form_login', 15);
  $I->canSee('Авторизация');
  $I->fillField('#loginform-username','admin');
  $I->fillField('#loginform-password','112233');
  $I->click('.login-button');
  $I->wait(1);
  $I->canSee('admin@admin.com');
  $I->wait(1);
  $I->amOnPage('/accounts/portfolio');
  $I->wait(1);
  $I->click('Добавить');
  $I->wait(1);
  $I->attachFile('input[type="file"]',  'ViewIllustrator_2001.jpg');
  $I->fillField('#portfolio-name','');
  $I->click('Добавить');
  $I->see('Необходимо заполнить «Название».','div');