Skip to content
Snippets Groups Projects
Commit d4ed951a authored by Demian Katz's avatar Demian Katz Committed by GitHub
Browse files

Add snooze calls to improve test stability.

parent 4f30f32a
No related merge requests found
......@@ -325,6 +325,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
$page = $this->gotoSearch();
$this->findCss($page, '.save-record')->click();
$this->snooze();
// Login
// - empty
$this->submitLoginForm($page);
......@@ -338,21 +339,26 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase
// Make Two Lists
// - One for the next test
$this->findCss($page, '#make-list')->click();
$this->snooze();
$this->findCss($page, '#list_title')->setValue('Future List');
$this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze();
$this->assertEquals(
$this->findCss($page, '#save_list option[selected]')->getHtml(),
'Future List'
);
// - One for now
$this->findCss($page, '#make-list')->click();
$this->snooze();
$this->findCss($page, '#list_title')->setValue('Login Test List');
$this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze();
$this->assertEquals(
$this->findCss($page, '#save_list option[selected]')->getHtml(),
'Login Test List'
);
$this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze();
$this->findCss($page, '.alert.alert-success');
}
......
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