Fix isLoggedIn selenium test base function
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
36b2f6e244
commit
1667bd648e
@ -592,11 +592,11 @@ abstract class TestBase extends TestCase
|
||||
*
|
||||
* @return bool Where or not user is logged in
|
||||
*/
|
||||
public function isLoggedIn()
|
||||
public function isLoggedIn(): bool
|
||||
{
|
||||
return $this->isElementPresent(
|
||||
'xpath',
|
||||
'//*[@id="server-breadcrumb"]/a[1]'
|
||||
'//*[@class="navigationbar"]'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user