summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorAlex Pott2018-05-14 13:26:12 (GMT)
committerAlex Pott2018-05-14 13:26:12 (GMT)
commitbc53ca951eae23e336d6cc18b1e8327faa2c87af (patch)
treef282fba069407900cbe2c5e483914e4796f77933 /core/modules/views_ui
parent260476c47bb43a6c59ce35ca9721c2fe40d61052 (diff)
Issue #2924753 by vaplas, alexpott, borisson_, xjm: Random fail in ExposedFormUITest
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/tests/src/Functional/UITestBase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/views_ui/tests/src/Functional/UITestBase.php b/core/modules/views_ui/tests/src/Functional/UITestBase.php
index 684b91f..db85773 100644
--- a/core/modules/views_ui/tests/src/Functional/UITestBase.php
+++ b/core/modules/views_ui/tests/src/Functional/UITestBase.php
@@ -76,8 +76,8 @@ abstract class UITestBase extends ViewTestBase {
$url = $this->buildUrl($path, $options);
// Ensure that each nojs page is accessible via ajax as well.
- if (strpos($url, 'nojs') !== FALSE) {
- $url = str_replace('nojs', 'ajax', $url);
+ if (strpos($url, '/nojs/') !== FALSE) {
+ $url = preg_replace('|/nojs/|', '/ajax/', $url, 1);
$result = $this->drupalGet($url, $options);
$this->assertSession()->statusCodeEquals(200);
$this->assertEquals('application/json', $this->getSession()->getResponseHeader('Content-Type'));