From 381c77783493191222b6b2fe227427b1336786c0 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sat, 29 Oct 2022 18:01:45 -0400 Subject: [PATCH] Fix on local for now --- tests/Browser/MainTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/Browser/MainTest.php b/tests/Browser/MainTest.php index 6677e4f9a..23ce32cd4 100644 --- a/tests/Browser/MainTest.php +++ b/tests/Browser/MainTest.php @@ -43,8 +43,14 @@ class MainTest extends DuskTestCase if (str_contains($panelUrl, ':')) { [$panelDomain, $panelPort] = explode(':', $panelUrl, 2); } - $panelPort ??= '80'; - $panelPort = intval($panelPort) + 1; + + // Default to HTTP if not specified + $panelPort = intval($panelPort ?? 80); + + // For CI, use next port + if ($panelPort !== 80) { + ++$panelPort; + } // Test Failed Login $browser->visit('/auth/login');