Skip to content
Snippets Groups Projects
Commit 9a9e6a99 authored by Ide Braakman's avatar Ide Braakman Committed by Ted Cooper
Browse files

[#3052574] Pick test fixes from MR!113

parent 50613da3
No related branches found
No related tags found
No related merge requests found
......@@ -93,11 +93,11 @@ class AjaxBehaviorTest extends JsBase {
$this->assertSession()->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');
$this->assertSession()->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.
......@@ -105,7 +105,7 @@ class AjaxBehaviorTest extends JsBase {
$this->assertSession()->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');
$this->assertSession()->assertWaitOnAjaxRequest();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment