From 6d74440c759d218bfab13b5b7294fdd5c75df785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Tue, 11 Aug 2026 15:46:09 +0200 Subject: [PATCH] test(landing): assert a signed-in visitor stays on the landing page --- tests/Browser/LandingPageTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/Browser/LandingPageTest.php diff --git a/tests/Browser/LandingPageTest.php b/tests/Browser/LandingPageTest.php new file mode 100644 index 00000000..9d845071 --- /dev/null +++ b/tests/Browser/LandingPageTest.php @@ -0,0 +1,18 @@ +onboarded()->create()); + + $page = visit('/'); + + // The wait is the point: a client-side redirect would fire on a timer, so + // asserting the path immediately would pass even with one in place. + $page->wait(4) + ->assertPathIs('/') + ->assertSee('Whisper Money') + ->assertNoJavascriptErrors(); +});