Fix on local for now

This commit is contained in:
Lance Pioch 2022-10-29 18:01:45 -04:00
parent ff73db3829
commit 381c777834

View file

@ -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');