From 1d4cdf80f474d9f1dfa169ed4f564f69bd757710 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 24 Jun 2019 13:19:15 -0400 Subject: [PATCH] Fix timing. --- .../src/VuFindTest/Mink/RecordActionsTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/RecordActionsTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/RecordActionsTest.php index 419ca3faaad..3835313dcb4 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/RecordActionsTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/RecordActionsTest.php @@ -117,6 +117,7 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase $this->findCss($page, 'form.comment-form .btn.btn-primary')->getText() ); $this->clickCss($page, 'form.comment-form .btn-primary'); + $this->snooze(); $this->findCss($page, '.modal.in'); // Lightbox open $this->findCss($page, '.modal [name="username"]'); // Create new account @@ -124,16 +125,19 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase // Make sure page updated for login // $page = $this->gotoRecord(); $this->clickCss($page, '.record-tabs .usercomments'); + $this->snooze(); $this->assertEquals(// Can Comment? 'Add your comment', $this->findCss($page, 'form.comment-form .btn.btn-primary')->getValue() ); // "Add" empty comment $this->clickCss($page, 'form.comment-form .btn-primary'); + $this->snooze(); $this->assertNull($page->find('css', '.comment')); // Add comment $this->findCss($page, 'form.comment-form [name="comment"]')->setValue('one'); $this->clickCss($page, 'form.comment-form .btn-primary'); + $this->snooze(); $this->findCss($page, '.comment'); // Remove comment $this->clickCss($page, '.comment .delete'); -- GitLab