Skip to content

Commit 816cb9b

Browse files
committed
Use data-test attribute instead of xpath
1 parent a628f34 commit 816cb9b

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

0 commit comments

Comments
 (0)