Skip to content
Snippets Groups Projects
Commit 8ddd97ee authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Slow down Collections Test.

parent 0a779621
No related merge requests found
...@@ -61,6 +61,7 @@ class CollectionsTest extends \VuFindTest\Unit\MinkTestCase ...@@ -61,6 +61,7 @@ class CollectionsTest extends \VuFindTest\Unit\MinkTestCase
$session = $this->getMinkSession(); $session = $this->getMinkSession();
$path = '/Collection/subcollection1/HierarchyTree'; $path = '/Collection/subcollection1/HierarchyTree';
$session->visit($this->getVuFindUrl() . $path); $session->visit($this->getVuFindUrl() . $path);
$this->snooze();
return $session->getPage(); return $session->getPage();
} }
...@@ -101,6 +102,7 @@ class CollectionsTest extends \VuFindTest\Unit\MinkTestCase ...@@ -101,6 +102,7 @@ class CollectionsTest extends \VuFindTest\Unit\MinkTestCase
$input = $this->findCss($page, '#keywordFilter_lookfor'); $input = $this->findCss($page, '#keywordFilter_lookfor');
$input->setValue('Subcollection 2'); $input->setValue('Subcollection 2');
$this->findCss($page, '#keywordFilterForm .btn')->press(); $this->findCss($page, '#keywordFilterForm .btn')->press();
$this->snooze();
$results = $page->findAll('css', '.result'); $results = $page->findAll('css', '.result');
$this->assertEquals(2, count($results)); $this->assertEquals(2, count($results));
...@@ -135,6 +137,8 @@ class CollectionsTest extends \VuFindTest\Unit\MinkTestCase ...@@ -135,6 +137,8 @@ class CollectionsTest extends \VuFindTest\Unit\MinkTestCase
'Subcollection 1' 'Subcollection 1'
); );
$this->findCss($page, '[recordid="colitem2"] a')->click(); $this->findCss($page, '[recordid="colitem2"] a')->click();
$this->snooze();
$this->assertEquals( $this->assertEquals(
trim($this->findCss($page, '#tree-preview h2')->getText()), trim($this->findCss($page, '#tree-preview h2')->getText()),
'Collection item 2' 'Collection item 2'
......
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