diff -u b/core/modules/views_ui/tests/src/Functional/UITestBase.php b/core/modules/views_ui/src/Tests/UITestBase.php --- b/core/modules/views_ui/tests/src/Functional/UITestBase.php +++ b/core/modules/views_ui/src/Tests/UITestBase.php @@ -1,11 +1,16 @@ enableViewsTestModule(); @@ -78,9 +83,9 @@ // Ensure that each nojs page is accessible via ajax as well. if (strpos($url, 'nojs') !== FALSE) { $url = str_replace('nojs', 'ajax', $url); - $result = $this->drupalGet($url, $options); - $this->assertSession()->statusCodeEquals(200); - $this->assertEquals('application/json', $this->getSession()->getResponseHeader('Content-Type')); + $result = $this->drupalGet($url, $options, $headers); + $this->assertResponse(200); + $this->assertHeader('Content-Type', 'application/json'); $this->assertTrue(json_decode($result), 'Ensure that the AJAX request returned valid content.'); } only in patch2: unchanged: --- a/core/modules/views_ui/src/Tests/WizardTest.php +++ b/core/modules/views_ui/tests/src/Functional/WizardTest.php @@ -1,8 +1,8 @@