/** * Login a admin user and logout again * * @param Kasper $I */ public function tryToTest(Kasper $I) { $I->wantTo('login with admin'); $I->loginAsAdmin(); // user is redirected to 'about modules' after login, and must see the 'admin tools' section $I->see('Admin tools'); $I->logout(); $I->waitForElement('#t3-username'); }