芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/tests/acceptance/LoginCest.php
amOnPage(Url::toRoute('/site/login')); $I->see('Login', 'h1'); $I->amGoingTo('try to login with correct credentials'); $I->fillField('input[name="LoginForm[username]"]', 'admin'); $I->fillField('input[name="LoginForm[password]"]', 'admin'); $I->click('login-button'); $I->wait(2); // wait for button to be clicked $I->expectTo('see user info'); $I->see('Logout'); } }