Skip to content

Commit 928d347

Browse files
Fix the flaky logout test (#3)
* Fix the logout test to use XPath for username click * Update tests/Browser/Auth/AuthenticationTest.php * Use data-test attribute instead of xpath --------- Co-authored-by: Mior Muhammad Zaki <[email protected]>
1 parent 90c6c24 commit 928d347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Browser/Auth/AuthenticationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
actingAs($user);
5151

5252
visit(route('dashboard'))
53-
->click($user->name)
53+
->click('@sidebar-menu-button')
5454
->click('@logout-button')
5555
->assertUrlIs(route('home'))
5656
->assertNoConsoleLogs()

0 commit comments

Comments
 (0)