Skip to content

Commit

Permalink
! check login
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Jan 25, 2024
1 parent 98ceba3 commit e353ff7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/sources/controllers/ElkArteWebSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');
Expand All @@ -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
Expand Down

0 comments on commit e353ff7

Please sign in to comment.