Commit f6e15c6f authored by chr.fritsch's avatar chr.fritsch Committed by borisson_

Issue #3034386 by chr.fritsch: Use WebDriverTestBase for Javascript Tests

parent b79de5e4
......@@ -3,13 +3,13 @@
namespace Drupal\Tests\facets\FunctionalJavascript;
use Drupal\block\Entity\Block;
use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\search_api\Entity\Index;
/**
* Tests for the JS that transforms widgets into form elements.
*/
abstract class JsBase extends JavascriptTestBase {
abstract class JsBase extends WebDriverTestBase {
/**
* {@inheritdoc}
......
......@@ -153,7 +153,7 @@ class WidgetJSTest extends JsBase {
$checkbox = $page->findField('item (3)');
$checkbox->click();
$current_url = $this->getSession()->getCurrentUrl();
$this->assertTrue(strpos($current_url, 'search-api-test-fulltext?f%5B0%5D=llama%253Aitem') !== FALSE);
$this->assertTrue(strpos($current_url, 'search-api-test-fulltext?f%5B0%5D=llama%3Aitem') !== FALSE);
}
/**
......@@ -216,7 +216,7 @@ class WidgetJSTest extends JsBase {
$dropdown->selectOption('item (3)');
$this->getSession()->wait(6000, "window.location.search != ''");
$current_url = $this->getSession()->getCurrentUrl();
$this->assertTrue(strpos($current_url, 'search-api-test-fulltext?f%5B0%5D=llama%253Aitem') !== FALSE);
$this->assertTrue(strpos($current_url, 'search-api-test-fulltext?f%5B0%5D=llama%3Aitem') !== FALSE);
}
}
Markdown is supported
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