Skip to content
Snippets Groups Projects
Unverified Commit bc53ca95 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2924753 by vaplas, alexpott, borisson_, xjm: Random fail in ExposedFormUITest

parent 260476c4
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -76,8 +76,8 @@ protected function drupalGet($path, array $options = [], array $headers = []) {
$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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment