Skip to content
Snippets Groups Projects
Commit 77915e39 authored by Demian Katz's avatar Demian Katz
Browse files

More test timing tweaks.

parent d98e4a6e
No related merge requests found
...@@ -486,6 +486,7 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase ...@@ -486,6 +486,7 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase
// First try clicking without selecting anything: // First try clicking without selecting anything:
$button->click(); $button->click();
$this->snooze();
$this->checkForNonSelectedMessage($page); $this->checkForNonSelectedMessage($page);
// Now do it for real -- we should get a login prompt. // Now do it for real -- we should get a login prompt.
...@@ -647,6 +648,7 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase ...@@ -647,6 +648,7 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase
// First try clicking without selecting anything: // First try clicking without selecting anything:
$button->click(); $button->click();
$this->snooze();
$this->checkForNonSelectedMessage($page); $this->checkForNonSelectedMessage($page);
// Now do it for real -- we should get redirected. // Now do it for real -- we should get redirected.
......
...@@ -196,6 +196,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase ...@@ -196,6 +196,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
$this->findCss($page, '#make-list')->click(); $this->findCss($page, '#make-list')->click();
$this->findCss($page, '#list_title')->setValue('Future List'); $this->findCss($page, '#list_title')->setValue('Future List');
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze();
$this->assertEquals( $this->assertEquals(
$this->findCss($page, '#save_list option[selected]')->getHtml(), $this->findCss($page, '#save_list option[selected]')->getHtml(),
'Future List' 'Future List'
...@@ -276,6 +277,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase ...@@ -276,6 +277,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
$page, ['username' => 'username2', 'email' => 'username2@ignore.com'] $page, ['username' => 'username2', 'email' => 'username2@ignore.com']
); );
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze();
$this->findCss($page, '#save_list'); $this->findCss($page, '#save_list');
// Make list // Make list
$this->findCss($page, '#make-list')->click(); $this->findCss($page, '#make-list')->click();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment