diff --git a/tests/src/FunctionalJavascript/WidgetJSTest.php b/tests/src/FunctionalJavascript/WidgetJSTest.php index b65a019..1f9a767 100644 --- a/tests/src/FunctionalJavascript/WidgetJSTest.php +++ b/tests/src/FunctionalJavascript/WidgetJSTest.php @@ -19,7 +19,6 @@ class WidgetJSTest extends JavascriptTestBase { public static $modules = [ 'views', 'search_api', - 'search_api_test_backend', 'facets', 'facets_search_api_dependency', 'block', @@ -75,24 +74,25 @@ class WidgetJSTest extends JavascriptTestBase { // Make sure the block is shown on the page. $page = $this->getSession()->getPage(); - $page_content = $page->getContent(); - $this->assertTrue(strpos($page_content, 'Llama block') > 0, 'Block found on page.'); + $block = $page->findById('block-llama-block'); + $block->isVisible(); // Narrow the context to the block that shows the facet and get objects that // contain the