diff --git a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php b/core/modules/field/tests/src/FunctionalJavascript/Boolean/BooleanFormatterSettingsTest.php
similarity index 86%
rename from core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
rename to core/modules/field/tests/src/FunctionalJavascript/Boolean/BooleanFormatterSettingsTest.php
index 92efa9817b..d7ba87312e 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
+++ b/core/modules/field/tests/src/FunctionalJavascript/Boolean/BooleanFormatterSettingsTest.php
@@ -1,19 +1,19 @@
 <?php
 
-namespace Drupal\field\Tests\Boolean;
+namespace Drupal\Tests\field\FunctionalJavascript\Boolean;
 
 use Drupal\Component\Utility\Unicode;
 use Drupal\Component\Utility\SafeMarkup;
 use Drupal\field\Entity\FieldConfig;
 use Drupal\field\Entity\FieldStorageConfig;
-use Drupal\simpletest\WebTestBase;
+use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
 
 /**
  * Tests the Boolean field formatter settings.
  *
  * @group field
  */
-class BooleanFormatterSettingsTest extends WebTestBase {
+class BooleanFormatterSettingsTest extends JavascriptTestBase {
 
   /**
    * Modules to enable.
@@ -47,7 +47,14 @@ protected function setUp() {
     $type = $this->drupalCreateContentType(['name' => $type_name, 'type' => $type_name]);
     $this->bundle = $type->id();
 
-    $admin_user = $this->drupalCreateUser(['access content', 'administer content types', 'administer node fields', 'administer node display', 'bypass node access', 'administer nodes']);
+    $admin_user = $this->drupalCreateUser([
+      'access content',
+      'administer content types',
+      'administer node fields',
+      'administer node display',
+      'bypass node access',
+      'administer nodes',
+    ]);
     $this->drupalLogin($admin_user);
 
     $this->fieldName = Unicode::strtolower($this->randomMachineName(8));
@@ -112,7 +119,8 @@ public function testBooleanFormatterSettings() {
 
       // Open the Manage Display page and trigger the field settings form.
       $this->drupalGet('admin/structure/types/manage/' . $this->bundle . '/display');
-      $this->drupalPostAjaxForm(NULL, [], $this->fieldName . '_settings_edit');
+      $this->getSession()->getPage()->pressButton($this->fieldName . '_settings_edit');
+      $this->assertSession()->assertWaitOnAjaxRequest();
 
       // Test that the settings options are present in the correct format.
       foreach ($options as $string) {
