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 491d9272 authored by Demian Katz's avatar Demian Katz
Browse files

Fix test selector to reflect refactored templates.

parent 71e3d506
No related merge requests found
......@@ -227,7 +227,7 @@ class SearchActionsTest extends \VuFindTest\Unit\MinkTestCase
$items = $page->findAll('css', '#modal #facet-list-count .js-facet-item');
$this->assertEquals($limit, count($items));
$excludes = $page
->findAll('css', '#modal #facet-list-count .badge .fa-times');
->findAll('css', '#modal #facet-list-count .fa-times');
$this->assertEquals($exclusionActive ? $limit : 0, count($excludes));
// more
$this->findCss($page, '#modal .js-facet-next-page')->click();
......@@ -247,7 +247,7 @@ class SearchActionsTest extends \VuFindTest\Unit\MinkTestCase
$this->findCss($page, '#modal #facet-list-count')->getText()
);
$excludes = $page
->findAll('css', '#modal #facet-list-count .badge .fa-times');
->findAll('css', '#modal #facet-list-count .fa-times');
$this->assertEquals($exclusionActive ? $limit * 2 : 0, count($excludes));
// sort by title
......@@ -264,7 +264,7 @@ class SearchActionsTest extends \VuFindTest\Unit\MinkTestCase
$this->findCss($page, '#modal #facet-list-index')->getText()
);
$excludes = $page
->findAll('css', '#modal #facet-list-index .badge .fa-times');
->findAll('css', '#modal #facet-list-index .fa-times');
$this->assertEquals($exclusionActive ? $limit : 0, count($excludes));
// sort by index again
$this->findCss($page, '[data-sort="count"]')->click();
......
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