From e353ff7512107bd767eeae26e8f14fbf82edc75f Mon Sep 17 00:00:00 2001 From: Spuds Date: Thu, 25 Jan 2024 11:34:17 -0600 Subject: [PATCH] ! check login --- tests/sources/controllers/ElkArteWebSupport.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/sources/controllers/ElkArteWebSupport.php b/tests/sources/controllers/ElkArteWebSupport.php index 44aec5cd3b..c855d75841 100644 --- a/tests/sources/controllers/ElkArteWebSupport.php +++ b/tests/sources/controllers/ElkArteWebSupport.php @@ -22,7 +22,6 @@ abstract class ElkArteWebSupport extends Selenium2TestCase { protected $coverageScriptUrl = 'http://127.0.0.1/phpunit_coverage.php'; - //protected $coverageScriptUrl = ''; protected $backupGlobalsExcludeList = ['user_info']; protected $width = 2560; protected $height = 1440; @@ -156,6 +155,9 @@ public function adminLogin() $check = $this->byId('menu_nav')->text(); if (strpos($check, 'Log in') !== false) { + // Don't trip the spamProtection + $this->timeouts()->implicitWait(2500); + // Select login from the main page $this->url('index.php?action=login'); $this->assertEquals('Log in', $this->title(), 'Unable to find the login forum'); @@ -177,7 +179,7 @@ public function adminLogin() } // Hang about until the page refreshes - $this->url('index.php'); + //$this->url('index.php'); $this->waitUntil(function ($testCase) { try