Skip to content

Commit 2901b38

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Browser/Auth/AuthenticationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
actingAs($user);
5151

5252
visit(route('dashboard'))
53-
->click($user->name)
54-
->click('@logout-button')
53+
->click("//*[text()='$user->name']")
54+
->click('@logout-button')
5555
->assertUrlIs(route('home'))
5656
->assertNoConsoleLogs()
5757
->assertNoJavaScriptErrors();

0 commit comments

Comments
 (0)