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
$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');
......
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