Skip to content

Commit 6e97b4f

Browse files
luciandexNaktibalda
authored andcommitted
Added logout test logic
1 parent 644e23e commit 6e97b4f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/Functional/AuthenticationCest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ public function dontSeeAuthentication(FunctionalTester $I)
7979

8080
public function logout(FunctionalTester $I)
8181
{
82-
// TODO
82+
$I->amLoggedAs([
83+
'email' => 'john_doe@gmail.com',
84+
'password' => '123456'
85+
]);
86+
$I->amOnPage('/home');
87+
$I->click('#logout');
88+
$I->amOnPage('/');
89+
$I->seeAuthentication();
8390
}
8491

8592
public function seeAuthentication(FunctionalTester $I)

0 commit comments

Comments
 (0)