Skip to content

Commit 5feb26c

Browse files
committed
Fix the logout test to use XPath for username click
1 parent 444e8a3 commit 5feb26c

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("//button[.//*[normalize-space(text())='$user->name']]")
5454
->click('@logout-button')
5555
->assertUrlIs(route('home'))
5656
->assertNoConsoleLogs()

0 commit comments

Comments
 (0)