From b8f50e51626b25e4b13ff8f3fbd96b96a465e28e Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Fri, 28 Oct 2022 13:20:59 -0400 Subject: [PATCH] Don't visit the same page twice --- tests/Browser/MainTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Browser/MainTest.php b/tests/Browser/MainTest.php index 501708e14..92b16b12d 100644 --- a/tests/Browser/MainTest.php +++ b/tests/Browser/MainTest.php @@ -214,9 +214,9 @@ class MainTest extends DuskTestCase // Click on logout and see redirect back to login screen $browser->clickAndWaitForReload('#logo + div button'); + $browser->assertPathIs('/auth/login'); // Login as the non admin user successfully - $browser->visit('/auth/login'); $browser->type('username', 'matthew@example.com'); $browser->type('password', 'mypasswordiscooler'); $browser->clickAndWaitForReload('button[type=submit]');