diff --git a/core/modules/field_ui/src/Form/FieldStorageAddForm.php b/core/modules/field_ui/src/Form/FieldStorageAddForm.php index e397844..b355491 100644 --- a/core/modules/field_ui/src/Form/FieldStorageAddForm.php +++ b/core/modules/field_ui/src/Form/FieldStorageAddForm.php @@ -2,7 +2,6 @@ namespace Drupal\field_ui\Form; -use Drupal\Component\Utility\Html; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Field\FieldTypePluginManagerInterface; diff --git a/core/modules/field_ui/tests/src/FunctionalJavascript/UiDescriptionsTest.php b/core/modules/field_ui/tests/src/FunctionalJavascript/UiDescriptionsTest.php index ef9054f..f6ec8d3 100644 --- a/core/modules/field_ui/tests/src/FunctionalJavascript/UiDescriptionsTest.php +++ b/core/modules/field_ui/tests/src/FunctionalJavascript/UiDescriptionsTest.php @@ -47,10 +47,10 @@ public function testFieldDescriptions() { // Check that the description wrapper is only visible after you select that // element from the list. $assert_session->optionExists('edit-new-storage-type', 'boolean'); - $boolean_description_element = $page->find('css', '#edit-description-boolean-0'); + $boolean_description_element = $assert_session->elementExists('css', '#edit-description-boolean-0'); $this->assertFalse($boolean_description_element->isVisible()); $page->selectFieldOption('edit-new-storage-type', 'boolean'); - $boolean_description_element = $page->find('css', '#edit-description-boolean-0'); + $boolean_description_element = $assert_session->elementExists('css', '#edit-description-boolean-0'); $this->assertTrue($boolean_description_element->isVisible()); // Make sure the expected texts from the plugin annotations (or overriden