From 24fc42d20ce644e6bfc04deeb205cc840c440e4c Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 7 Feb 2017 08:47:25 -0500 Subject: [PATCH] More test timing tweaks. --- .../tests/integration-tests/src/VuFindTest/Mink/CartTest.php | 2 ++ .../integration-tests/src/VuFindTest/Mink/FavoritesTest.php | 1 + 2 files changed, 3 insertions(+) diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php index be69f5af5c5..3d4b60eb8f0 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php @@ -498,6 +498,7 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase $this->findCss($page, '.modal-body .createAccountLink')->click(); $this->fillInAccountForm($page); $this->findCss($page, '.modal-body .btn.btn-primary')->click(); + $this->snooze(); $this->findCss($page, '.modal #email_from')->setValue('asdf@asdf.com'); $this->findCss($page, '.modal #email_message')->setValue('message'); @@ -524,6 +525,7 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase // First try clicking without selecting anything: $button->click(); + $this->snooze(); $this->checkForNonSelectedMessage($page); // Now do it for real -- we should get a login prompt. diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php index 28b29160be6..6521b8efbbb 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php @@ -509,6 +509,7 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase // Do the export: $submit = $this->findCss($page, '.modal-body input[name=submit]'); $submit->click(); + $this->snooze(); $result = $this->findCss($page, '.modal-body .alert .text-center .btn'); $this->assertEquals('Download File', $result->getText()); } -- GitLab