Skip to content
Snippets Groups Projects
Commit 830a5ac4 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Slow down Favorites test to try to soothe Jenkins tests.

parent ad0c18af
No related merge requests found
...@@ -143,7 +143,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase ...@@ -143,7 +143,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
$this->assertEquals($this->findCss($page, '#save_list option[selected]')->getHtml(), 'Test List'); $this->assertEquals($this->findCss($page, '#save_list option[selected]')->getHtml(), 'Test List');
$this->findCss($page, '#add_mytags')->setValue('test1 test2 "test 3"'); $this->findCss($page, '#add_mytags')->setValue('test1 test2 "test 3"');
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze(); $this->snooze(3);
$this->findCss($page, '.modal .alert.alert-success'); $this->findCss($page, '.modal .alert.alert-success');
$this->findCss($page, '.modal-body .btn.btn-default')->click(); $this->findCss($page, '.modal-body .btn.btn-default')->click();
// Check list page // Check list page
...@@ -200,7 +200,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase ...@@ -200,7 +200,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
'Login Test List' 'Login Test List'
); );
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze(); $this->snooze(3);
$this->findCss($page, '.modal .alert.alert-success'); $this->findCss($page, '.modal .alert.alert-success');
} }
...@@ -224,7 +224,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase ...@@ -224,7 +224,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
$this->snooze(); $this->snooze();
$this->findCss($page, '#save_list'); $this->findCss($page, '#save_list');
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze(); $this->snooze(3);
$this->findCss($page, '.modal .alert.alert-success'); $this->findCss($page, '.modal .alert.alert-success');
} }
...@@ -453,7 +453,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase ...@@ -453,7 +453,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
$this->findCss($page, '.modal #email_from')->setValue('asdf@vufind.org'); $this->findCss($page, '.modal #email_from')->setValue('asdf@vufind.org');
$this->findCss($page, '.modal #email_message')->setValue('message'); $this->findCss($page, '.modal #email_message')->setValue('message');
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze(); $this->snooze(3);
// Check for confirmation message // Check for confirmation message
$this->assertEquals( $this->assertEquals(
'Your item(s) were emailed', 'Your item(s) were emailed',
...@@ -541,7 +541,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase ...@@ -541,7 +541,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
$button->click(); $button->click();
$this->snooze(); $this->snooze();
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze(); $this->snooze(3);
// Check for confirmation message // Check for confirmation message
$this->assertEquals( $this->assertEquals(
'Your favorite(s) were deleted.', 'Your favorite(s) were deleted.',
......
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