diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Core/Session/SessionTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Core/Session/SessionTest.php
index e02e0df..fa2d541 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/Core/Session/SessionTest.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/Core/Session/SessionTest.php
@@ -48,13 +48,10 @@ public function testSessionExpiration() {
     // number of times.
     $this->drupalGet('<front>');
 
-    $session_assert = $this->assertSession();
-
     $page = $this->getSession()->getPage();
 
     for ($i = 0; $i < 25; $i++) {
       $page->clickLink('Link to front page');
-      $session_assert->statusCodeEquals(200);
     }
   }
 
diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
index 815a26b..2c1c232 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
@@ -366,4 +366,54 @@ function t(r, lx, ly) {
     return $this->session->evaluateScript($full_javascript_visibility_test);
   }
 
+  /**
+   * The use of statusCodeEquals() is not available.
+   *
+   * @param int $code
+   *
+   * @throws \Behat\Mink\Exception\UnsupportedDriverActionException
+   *   Throws an exception on use.
+   */
+  public function statusCodeEquals($code) {
+    throw new UnsupportedDriverActionException('The use of statusCodeEquals() is not available in a functional JavaScript test.');
+  }
+
+  /**
+   * The use of statusCodeNotEquals() is not available.
+   *
+   * @param int $code
+   *
+   * @throws \Behat\Mink\Exception\UnsupportedDriverActionException
+   *   Throws an exception on use.
+   */
+  public function statusCodeNotEquals($code) {
+    throw new UnsupportedDriverActionException('The use of statusCodeNotEquals() is not available in a functional JavaScript test.');
+  }
+
+  /**
+   * The use of responseHeaderEquals() is not available.
+   *
+   * @param string $name
+   * @param string $value
+   *
+   * @throws \Behat\Mink\Exception\UnsupportedDriverActionException
+   *   Throws an exception on use.
+   */
+  public function responseHeaderEquals($name, $value) {
+    throw new UnsupportedDriverActionException('The use of responseHeaderEquals() is not available in a functional JavaScript test.');
+  }
+
+  /**
+   * The use of responseHeaderNotEquals() is not available.
+   *
+   * @param string $name
+   * @param string $value
+   *
+   * @throws \Behat\Mink\Exception\UnsupportedDriverActionException
+   *   Throws an exception on use.
+   */
+  public function responseHeaderNotEquals($name, $value) {
+    throw new UnsupportedDriverActionException('The use of responseHeaderEquals() is not available in a functional JavaScript test.');
+  }
+
 }
diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php
index d4968f4..9d5af41 100644
--- a/core/tests/Drupal/Tests/BrowserTestBase.php
+++ b/core/tests/Drupal/Tests/BrowserTestBase.php
@@ -714,7 +714,6 @@ protected function drupalLogin(AccountInterface $account) {
     }
 
     $this->drupalGet('user/login');
-    $this->assertSession()->statusCodeEquals(200);
     $this->submitForm(array(
       'name' => $account->getUsername(),
       'pass' => $account->passRaw,
@@ -739,7 +738,6 @@ protected function drupalLogout() {
     // screen.
     $assert_session = $this->assertSession();
     $this->drupalGet('user/logout', array('query' => array('destination' => 'user')));
-    $assert_session->statusCodeEquals(200);
     $assert_session->fieldExists('name');
     $assert_session->fieldExists('pass');
 
