Skip to content
Snippets Groups Projects

Draft: [#3052574] Facets AJAX

Open Ted Cooper requested to merge issue/facets-3052574:2.0.x-3052574-ajax into 2.0.x
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -101,11 +101,11 @@ class AjaxBehaviorTest extends JsBase {
$assert_session->pageTextContains('Displaying 5 search results');
// Check that the article_category option disappears when filtering on item.
$dropdown_entry = $this->xpath('//*[@id="block-duck-block"]/div/select/option[normalize-space(text())=:label]', [':label' => 'article_category']);
$dropdown_entry = $this->xpath('//*[@id="block-duck-block"]/div/div/select/option[normalize-space(text())=:label]', [':label' => 'article_category']);
$this->assertNotEmpty($dropdown_entry);
$block_owl->clickLink('item');
$assert_session->assertWaitOnAjaxRequest();
$dropdown_entry = $this->xpath('//*[@id="block-duck-block"]/div/select/option[normalize-space(text())=:label]', [':label' => 'article_category']);
$dropdown_entry = $this->xpath('//*[@id="block-duck-block"]/div/div/select/option[normalize-space(text())=:label]', [':label' => 'article_category']);
$this->assertEmpty($dropdown_entry);
// Click the item facet again.
@@ -113,7 +113,7 @@ class AjaxBehaviorTest extends JsBase {
$assert_session->assertWaitOnAjaxRequest();
// Select the article_category in the dropdown.
$dropdown = $this->xpath('//*[@id="block-duck-block"]/div/select');
$dropdown = $this->xpath('//*[@id="block-duck-block"]/div/div/select');
$dropdown[0]->selectOption('article_category');
$assert_session->assertWaitOnAjaxRequest();
Loading