The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 1d4cdf80 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Fix timing.

parent a5722ce8
No related merge requests found
...@@ -117,6 +117,7 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase ...@@ -117,6 +117,7 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase
$this->findCss($page, 'form.comment-form .btn.btn-primary')->getText() $this->findCss($page, 'form.comment-form .btn.btn-primary')->getText()
); );
$this->clickCss($page, 'form.comment-form .btn-primary'); $this->clickCss($page, 'form.comment-form .btn-primary');
$this->snooze();
$this->findCss($page, '.modal.in'); // Lightbox open $this->findCss($page, '.modal.in'); // Lightbox open
$this->findCss($page, '.modal [name="username"]'); $this->findCss($page, '.modal [name="username"]');
// Create new account // Create new account
...@@ -124,16 +125,19 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase ...@@ -124,16 +125,19 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase
// Make sure page updated for login // Make sure page updated for login
// $page = $this->gotoRecord(); // $page = $this->gotoRecord();
$this->clickCss($page, '.record-tabs .usercomments'); $this->clickCss($page, '.record-tabs .usercomments');
$this->snooze();
$this->assertEquals(// Can Comment? $this->assertEquals(// Can Comment?
'Add your comment', 'Add your comment',
$this->findCss($page, 'form.comment-form .btn.btn-primary')->getValue() $this->findCss($page, 'form.comment-form .btn.btn-primary')->getValue()
); );
// "Add" empty comment // "Add" empty comment
$this->clickCss($page, 'form.comment-form .btn-primary'); $this->clickCss($page, 'form.comment-form .btn-primary');
$this->snooze();
$this->assertNull($page->find('css', '.comment')); $this->assertNull($page->find('css', '.comment'));
// Add comment // Add comment
$this->findCss($page, 'form.comment-form [name="comment"]')->setValue('one'); $this->findCss($page, 'form.comment-form [name="comment"]')->setValue('one');
$this->clickCss($page, 'form.comment-form .btn-primary'); $this->clickCss($page, 'form.comment-form .btn-primary');
$this->snooze();
$this->findCss($page, '.comment'); $this->findCss($page, '.comment');
// Remove comment // Remove comment
$this->clickCss($page, '.comment .delete'); $this->clickCss($page, '.comment .delete');
......
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