From 783e7eb88eb3f0523fb118df7ad157a7899e6938 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Mon, 16 Nov 2020 15:38:46 +0000
Subject: [PATCH] Issue #3145005 by longwave, mondrake, cburschka, raman.b,
 Lal_, dww, xjm: [November 9, 2020] Remove uses of t() in drupalPostForm()
 calls

---
 .../src/Functional/ConfigurationTest.php      |  8 +-
 .../tests/src/Functional/AddFeedTest.php      |  2 +-
 .../src/Functional/AggregatorAdminTest.php    |  4 +-
 .../src/Functional/AggregatorTestBase.php     |  8 +-
 .../tests/src/Functional/FeedLanguageTest.php |  2 +-
 .../tests/src/Functional/ImportOpmlTest.php   | 12 +--
 .../src/Functional/UpdateFeedItemTest.php     |  2 +-
 .../tests/src/Functional/UpdateFeedTest.php   |  2 +-
 .../src/Functional/IpAddressBlockingTest.php  | 14 ++--
 .../src/Functional/BlockAdminThemeTest.php    |  4 +-
 .../src/Functional/BlockFormInBlockTest.php   |  4 +-
 .../src/Functional/BlockLanguageCacheTest.php |  2 +-
 .../src/Functional/BlockLanguageTest.php      | 14 ++--
 .../block/tests/src/Functional/BlockTest.php  | 22 ++---
 .../tests/src/Functional/BlockUiTest.php      |  8 +-
 .../src/Functional/Views/DisplayBlockTest.php | 20 ++---
 .../Functional/BlockContentCreationTest.php   | 30 +++----
 .../src/Functional/BlockContentListTest.php   |  9 +--
 .../Functional/BlockContentListViewsTest.php  |  9 +--
 .../src/Functional/BlockContentTypeTest.php   | 14 ++--
 .../tests/src/Functional/PageEditTest.php     |  6 +-
 .../Views/BlockContentWizardTest.php          |  2 +-
 .../src/Functional/BookBreadcrumbTest.php     |  6 +-
 .../Functional/BookContentModerationTest.php  | 16 ++--
 .../book/tests/src/Functional/BookTest.php    | 20 ++---
 .../tests/src/Functional/BookTestTrait.php    |  6 +-
 .../Functional/Views/BookRelationshipTest.php |  6 +-
 .../src/Functional/CKEditorAdminTest.php      | 12 +--
 .../CKEditorStylesComboAdminTest.php          |  4 +-
 .../Functional/CKEditorToolbarButtonTest.php  |  4 +-
 .../src/Functional/ColorConfigSchemaTest.php  |  2 +-
 .../color/tests/src/Functional/ColorTest.php  | 12 +--
 .../tests/src/Functional/CommentAdminTest.php | 12 +--
 .../src/Functional/CommentAnonymousTest.php   |  8 +-
 .../src/Functional/CommentFieldsTest.php      | 12 +--
 .../src/Functional/CommentInterfaceTest.php   |  4 +-
 .../src/Functional/CommentLanguageTest.php    | 14 ++--
 .../src/Functional/CommentNonNodeTest.php     | 14 ++--
 .../tests/src/Functional/CommentPagerTest.php |  4 +-
 .../src/Functional/CommentPreviewTest.php     | 18 ++---
 .../tests/src/Functional/CommentTestBase.php  | 12 +--
 .../tests/src/Functional/CommentTypeTest.php  | 12 +--
 .../src/Functional/Views/CommentAdminTest.php | 12 +--
 .../src/Functional/Views/CommentEditTest.php  |  2 +-
 .../tests/src/Functional/Views/WizardTest.php |  6 +-
 .../ConfigEntityFormOverrideTest.php          |  2 +-
 .../ConfigEntityListMultilingualTest.php      |  2 +-
 .../src/Functional/ConfigEntityListTest.php   |  8 +-
 .../src/Functional/ConfigExportUITest.php     |  2 +-
 .../src/Functional/ConfigFormOverrideTest.php |  2 +-
 .../src/Functional/ConfigImportAllTest.php    |  2 +-
 .../ConfigImportInstallProfileTest.php        |  4 +-
 .../src/Functional/ConfigImportUITest.php     | 20 ++---
 .../src/Functional/ConfigImportUploadTest.php |  2 +-
 .../src/Functional/ConfigInstallWebTest.php   | 26 +++---
 .../ConfigLanguageOverrideWebTest.php         |  2 +-
 .../ConfigSingleImportExportTest.php          | 38 ++++-----
 .../LanguageNegotiationFormOverrideTest.php   |  2 +-
 .../ConfigTranslationInstallTest.php          |  6 +-
 .../ConfigTranslationListUiTest.php           |  4 +-
 .../Functional/ConfigTranslationUiTest.php    | 58 +++++++-------
 .../src/Functional/ContactLanguageTest.php    |  2 +-
 .../src/Functional/ContactPersonalTest.php    |  8 +-
 .../src/Functional/ContactSitewideTest.php    | 24 +++---
 .../src/Functional/ModerationFormTest.php     | 50 ++++++------
 .../src/Functional/ModerationLocaleTest.php   | 32 ++++----
 .../ModerationRevisionRevertTest.php          |  6 +-
 .../Functional/ModerationStateBlockTest.php   | 14 ++--
 .../Functional/ModerationStateNodeTest.php    | 18 ++---
 .../ModerationStateNodeTypeTest.php           |  4 +-
 .../Functional/ModerationStateTestBase.php    |  4 +-
 .../tests/src/Functional/NodeAccessTest.php   |  8 +-
 .../ContentTranslationContextualLinksTest.php |  2 +-
 .../ContentTranslationEnableTest.php          |  6 +-
 .../ContentTranslationLanguageChangeTest.php  | 24 +++---
 .../ContentTranslationOperationsTest.php      |  2 +-
 ...slationOutdatedRevisionTranslationTest.php |  4 +-
 ...tentTranslationPendingRevisionTestBase.php |  2 +-
 ...slationRevisionTranslationDeletionTest.php | 12 +--
 .../ContentTranslationSettingsTest.php        |  8 +-
 .../ContentTranslationSyncImageTest.php       |  4 +-
 .../ContentTranslationUITestBase.php          |  6 +-
 .../ContentTranslationWorkflowsTest.php       |  2 +-
 .../ContentTranslationContextualLinksTest.php |  2 +-
 .../tests/src/Functional/DateFilterTest.php   |  6 +-
 .../src/Functional/DateTimeFieldTest.php      | 46 +++++------
 .../DateTimeTimeAgoFormatterTest.php          |  2 +-
 .../src/Functional/Views/FilterDateTest.php   |  4 +-
 .../src/Functional/DateRangeFieldTest.php     | 80 +++++++++----------
 .../dblog/tests/src/Functional/DbLogTest.php  | 14 ++--
 .../tests/src/Functional/EditorAdminTest.php  |  4 +-
 .../Functional/EditorUploadImageScaleTest.php |  2 +-
 .../Functional/Boolean/BooleanFieldTest.php   |  8 +-
 .../src/Functional/Email/EmailFieldTest.php   |  2 +-
 .../EntityReferenceAdminTest.php              | 38 ++++-----
 .../EntityReferenceFieldDefaultValueTest.php  |  4 +-
 ...erenceFieldTranslatedReferenceViewTest.php |  2 +-
 .../EntityReferenceIntegrationTest.php        | 12 +--
 .../FieldImportDeleteUninstallUiTest.php      |  2 +-
 .../field/tests/src/Functional/FormTest.php   | 40 +++++-----
 .../tests/src/Functional/NestedFormTest.php   | 10 +--
 .../src/Functional/Number/NumberFieldTest.php | 28 +++----
 .../Functional/ReEnableModuleFieldTest.php    |  2 +-
 .../src/Functional/String/StringFieldTest.php |  2 +-
 .../src/Functional/TranslationWebTest.php     |  2 +-
 .../src/Functional/Views/FieldUITest.php      | 14 ++--
 .../Boolean/BooleanFormatterSettingsTest.php  |  2 +-
 .../EntityReferenceAdminTest.php              | 22 +++--
 .../Number/NumberFieldTest.php                |  4 +-
 .../src/Functional/EntityDisplayModeTest.php  | 12 +--
 .../tests/src/Functional/FieldUIRouteTest.php |  8 +-
 .../src/Functional/ManageDisplayTest.php      | 12 +--
 .../Functional/ManageFieldsFunctionalTest.php | 42 +++++-----
 .../tests/src/Traits/FieldUiTestTrait.php     | 12 +--
 .../src/Functional/FileFieldDisplayTest.php   | 22 ++---
 .../Functional/FileFieldRSSContentTest.php    |  4 +-
 .../src/Functional/FileFieldRevisionTest.php  | 10 +--
 .../src/Functional/FileFieldTestBase.php      | 12 +--
 .../src/Functional/FileFieldValidateTest.php  |  4 +-
 .../src/Functional/FileFieldWidgetTest.php    | 22 ++---
 .../tests/src/Functional/FileListingTest.php  |  2 +-
 .../Functional/FileManagedFileElementTest.php | 38 ++++-----
 .../Functional/FileOnTranslatedEntityTest.php | 24 +++---
 .../tests/src/Functional/FilePrivateTest.php  | 10 +--
 .../PrivateFileOnTranslatedEntityTest.php     | 10 +--
 .../src/Functional/SaveUploadFormTest.php     | 38 ++++-----
 .../tests/src/Functional/SaveUploadTest.php   | 34 ++++----
 .../FileManagedFileElementTest.php            |  6 +-
 .../tests/src/Functional/FilterAdminTest.php  | 34 ++++----
 .../Functional/FilterDefaultFormatTest.php    |  6 +-
 .../src/Functional/FilterFormatAccessTest.php | 18 ++---
 .../tests/src/Functional/FilterHooksTest.php  |  8 +-
 .../Functional/FilterHtmlImageSecureTest.php  |  2 +-
 .../src/Functional/FilterSecurityTest.php     |  4 +-
 .../tests/src/Functional/ForumBlockTest.php   |  2 +-
 .../tests/src/Functional/ForumIndexTest.php   |  6 +-
 .../src/Functional/ForumNodeAccessTest.php    |  4 +-
 .../forum/tests/src/Functional/ForumTest.php  | 26 +++---
 .../src/Functional/ForumUninstallTest.php     | 10 +--
 .../src/Functional/HelpTopicSearchTest.php    |  4 +-
 .../src/Functional/ImageAdminStylesTest.php   | 44 +++++-----
 .../ImageFieldDefaultImagesTest.php           |  2 +-
 .../src/Functional/ImageFieldDisplayTest.php  | 14 ++--
 .../src/Functional/ImageFieldTestBase.php     |  6 +-
 .../src/Functional/ImageFieldValidateTest.php | 18 ++---
 .../ImageOnTranslatedEntityTest.php           | 30 +++----
 .../src/Functional/ImageStyleDeleteTest.php   |  6 +-
 .../src/Functional/ImageStyleFlushTest.php    | 10 +--
 .../ImageAdminStylesTest.php                  |  8 +-
 .../LanguageBlockSettingsVisibilityTest.php   |  2 +-
 .../LanguageBrowserDetectionTest.php          | 10 +--
 .../Functional/LanguageConfigSchemaTest.php   |  2 +-
 .../LanguageConfigurationElementTest.php      | 12 +--
 .../Functional/LanguageConfigurationTest.php  | 12 +--
 ...anguageCustomLanguageConfigurationTest.php | 10 +--
 .../LanguageListModuleInstallTest.php         |  2 +-
 .../tests/src/Functional/LanguageListTest.php | 20 ++---
 .../src/Functional/LanguageLocaleListTest.php |  2 +-
 .../LanguageNegotiationInfoTest.php           | 10 +--
 .../Functional/LanguageNegotiationUrlTest.php |  9 +--
 .../LanguagePathMonolingualTest.php           |  8 +-
 .../LanguageSelectorTranslatableTest.php      |  2 +-
 .../src/Functional/LanguageSwitchingTest.php  | 22 ++---
 .../LanguageUILanguageNegotiationTest.php     | 28 +++----
 .../Functional/LanguageUrlRewritingTest.php   |  6 +-
 .../tests/src/Functional/LinkFieldTest.php    | 24 +++---
 .../LocaleConfigTranslationImportTest.php     | 16 ++--
 .../LocaleConfigTranslationTest.php           | 32 ++++----
 .../src/Functional/LocaleContentTest.php      | 16 ++--
 .../tests/src/Functional/LocaleExportTest.php | 12 +--
 .../Functional/LocaleFileSystemFormTest.php   |  2 +-
 .../Functional/LocaleImportFunctionalTest.php | 18 ++---
 .../LocaleJavascriptTranslationTest.php       |  8 +-
 .../src/Functional/LocaleLocaleLookupTest.php |  2 +-
 .../tests/src/Functional/LocalePathTest.php   |  8 +-
 .../src/Functional/LocalePluralFormatTest.php | 32 ++++----
 .../LocaleTranslateStringTourTest.php         |  2 +-
 .../Functional/LocaleTranslationUiTest.php    | 80 +++++++++----------
 .../tests/src/Functional/LocaleUpdateBase.php |  2 +-
 .../src/Functional/LocaleUpdateCronTest.php   |  6 +-
 .../LocaleUpdateDevelopmentReleaseTest.php    |  2 +-
 .../tests/src/Functional/LocaleUpdateTest.php | 42 +++++-----
 .../MediaLibraryDisplayModeTest.php           | 12 +--
 .../MenuLinkContentDeleteFormTest.php         |  4 +-
 .../Functional/MenuLinkContentFormTest.php    |  4 +-
 .../MenuLinkContentTranslationUITest.php      |  2 +-
 .../src/Functional/MenuLinkReorderTest.php    |  4 +-
 .../MenuUiContentModerationTest.php           | 24 +++---
 .../src/Functional/MenuUiLanguageTest.php     |  8 +-
 .../tests/src/Functional/MenuUiNodeTest.php   | 30 +++----
 .../tests/src/Functional/MenuUiTest.php       | 44 +++++-----
 .../MigrateUpgradeExecuteTestBase.php         | 20 ++---
 .../MigrateUpgradeFormStepsTest.php           |  2 +-
 .../MultilingualReviewPageTestBase.php        | 12 +--
 .../NoMultilingualReviewPageTestBase.php      |  6 +-
 .../src/Functional/SourceProviderTest.php     |  8 +-
 .../src/Functional/d6/IdConflictTest.php      |  6 +-
 .../src/Functional/d6/NodeClassicTest.php     |  6 +-
 .../src/Functional/d7/IdConflictTest.php      |  6 +-
 .../MultiStepNodeFormBasicOptionsTest.php     |  2 +-
 .../Functional/NodeAccessBaseTableTest.php    |  2 +-
 .../src/Functional/NodeAccessFieldTest.php    |  2 +-
 .../src/Functional/NodeAccessMenuLinkTest.php |  2 +-
 .../NodeAccessRebuildNodeGrantsTest.php       |  4 +-
 .../NodeActionsConfigurationTest.php          |  8 +-
 .../Functional/NodeBlockFunctionalTest.php    |  4 +-
 .../tests/src/Functional/NodeCreationTest.php |  4 +-
 .../tests/src/Functional/NodeEditFormTest.php | 26 +++---
 .../NodeEntityViewModeAlterTest.php           |  2 +-
 .../Functional/NodeFieldMultilingualTest.php  | 10 +--
 .../NodeFormSaveChangedTimeTest.php           |  2 +-
 .../src/Functional/NodePostSettingsTest.php   |  8 +-
 .../Functional/NodePreviewAnonymousTest.php   |  2 +-
 .../src/Functional/NodeRevisionsAllTest.php   |  8 +-
 .../src/Functional/NodeRevisionsTest.php      | 12 +--
 .../src/Functional/NodeRevisionsUiTest.php    |  4 +-
 .../tests/src/Functional/NodeTitleXSSTest.php |  2 +-
 .../src/Functional/NodeTranslationUITest.php  | 20 ++---
 .../NodeTypeInitialLanguageTest.php           | 12 +--
 .../tests/src/Functional/NodeTypeTest.php     | 16 ++--
 .../Functional/NodeTypeTranslationTest.php    | 10 +--
 .../tests/src/Functional/PagePreviewTest.php  | 62 +++++++-------
 .../Functional/Views/BulkFormAccessTest.php   | 10 +--
 .../src/Functional/Views/BulkFormTest.php     | 18 ++---
 .../Views/NodeRevisionWizardTest.php          |  8 +-
 .../NodePreviewLinkTest.php                   |  2 +-
 .../src/Functional/OptionsFieldUITest.php     |  8 +-
 .../OptionsFloatFieldImportTest.php           |  6 +-
 .../src/Functional/OptionsWidgetsTest.php     | 40 +++++-----
 .../tests/src/Functional/PathAdminTest.php    | 16 ++--
 .../tests/src/Functional/PathAliasTest.php    | 46 +++++------
 .../Functional/PathContentModerationTest.php  | 14 ++--
 .../tests/src/Functional/PathLanguageTest.php | 16 ++--
 .../src/Functional/PathLanguageUiTest.php     | 16 ++--
 .../src/Functional/PathTaxonomyTermTest.php   |  6 +-
 .../src/Functional/UrlAlterFunctionalTest.php |  2 +-
 .../QuickEditLoadingTest.php                  |  4 +-
 .../Functional/ResponsiveImageAdminUITest.php |  6 +-
 .../Functional/Views/RestExportAuthTest.php   |  2 +-
 .../Functional/Views/StyleSerializerTest.php  | 34 ++++----
 .../tests/src/Functional/SearchBlockTest.php  | 18 ++---
 .../SearchCommentCountToggleTest.php          |  8 +-
 .../src/Functional/SearchCommentTest.php      | 28 +++----
 .../SearchConfigSettingsFormTest.php          | 34 ++++----
 .../src/Functional/SearchDateIntervalTest.php |  2 +-
 .../src/Functional/SearchEmbedFormTest.php    | 12 +--
 .../tests/src/Functional/SearchExactTest.php  |  8 +-
 .../src/Functional/SearchLanguageTest.php     |  6 +-
 .../SearchMultilingualEntityTest.php          |  6 +-
 .../Functional/SearchNodeDiacriticsTest.php   | 16 ++--
 .../Functional/SearchNodePunctuationTest.php  |  6 +-
 .../SearchNodeUpdateAndDeletionTest.php       |  8 +-
 .../Functional/SearchNumberMatchingTest.php   |  8 +-
 .../src/Functional/SearchNumbersTest.php      |  8 +-
 .../Functional/SearchPageCacheTagsTest.php    | 18 ++---
 .../src/Functional/SearchPageTextTest.php     | 24 +++---
 .../src/Functional/SearchQueryAlterTest.php   |  2 +-
 .../src/Functional/SearchRankingTest.php      |  8 +-
 .../src/Functional/ShortcutLinksTest.php      | 14 ++--
 .../tests/src/Functional/ShortcutSetsTest.php | 14 ++--
 .../src/Functional/StatisticsAdminTest.php    |  2 +-
 .../src/Functional/StatisticsLoggingTest.php  |  4 +-
 .../tests/src/Functional/SyslogTest.php       |  2 +-
 .../Bootstrap/DrupalMessengerServiceTest.php  |  2 +-
 .../src/Functional/Common/FormatDateTest.php  |  4 +-
 .../Condition/ConditionFormTest.php           |  2 +-
 .../Datetime/DrupalDateTimeTest.php           |  2 +-
 .../src/Functional/Entity/EntityAddUITest.php |  4 +-
 .../src/Functional/Entity/EntityFormTest.php  | 12 +--
 .../Entity/EntityTranslationFormTest.php      |  6 +-
 .../tests/src/Functional/File/ConfigTest.php  |  2 +-
 .../Functional/Form/ArbitraryRebuildTest.php  |  2 +-
 .../src/Functional/Form/ConfirmFormTest.php   |  4 +-
 .../Functional/Form/ElementsAccessTest.php    |  2 +-
 .../Form/ElementsVerticalTabsTest.php         |  2 +-
 .../src/Functional/Form/FormObjectTest.php    |  8 +-
 .../tests/src/Functional/Form/FormTest.php    | 10 +--
 .../Form/LanguageSelectElementTest.php        |  2 +-
 .../Form/ModulesListFormWebTest.php           |  6 +-
 .../src/Functional/Form/RedirectTest.php      | 16 ++--
 .../Form/StateValuesCleanAdvancedTest.php     |  2 +-
 .../Functional/Form/StateValuesCleanTest.php  |  2 +-
 .../Functional/Form/SystemConfigFormTest.php  |  2 +-
 .../src/Functional/Form/ValidationTest.php    | 10 +--
 .../src/Functional/Menu/BreadcrumbTest.php    | 10 +--
 .../src/Functional/Module/ClassLoaderTest.php |  4 +-
 .../src/Functional/Module/DependencyTest.php  | 28 +++----
 .../Module/ExperimentalModuleTest.php         |  2 +-
 .../Module/HookRequirementsTest.php           |  2 +-
 .../Module/InstallUninstallTest.php           | 16 ++--
 .../Module/PrepareUninstallTest.php           | 12 +--
 .../src/Functional/Module/UninstallTest.php   | 14 ++--
 .../Session/SessionAuthenticationTest.php     |  2 +-
 .../src/Functional/Session/SessionTest.php    |  2 +-
 .../Functional/System/AccessDeniedTest.php    |  8 +-
 .../src/Functional/System/CronRunTest.php     |  2 +-
 .../System/DateFormatsMachineNameTest.php     | 10 +--
 .../src/Functional/System/DateTimeTest.php    | 22 ++---
 .../src/Functional/System/FrontPageTest.php   |  6 +-
 .../System/MainContentFallbackTest.php        |  6 +-
 .../Functional/System/PageNotFoundTest.php    |  4 +-
 .../src/Functional/System/PageTitleTest.php   |  4 +-
 .../Functional/System/SiteMaintenanceTest.php | 10 +--
 .../tests/src/Functional/System/ThemeTest.php | 22 ++---
 .../src/Functional/Theme/TwigTransTest.php    |  4 +-
 .../UpdateSystem/UpdateScriptTest.php         |  2 +-
 .../tests/src/Functional/EarlyDateTest.php    |  2 +-
 .../taxonomy/tests/src/Functional/RssTest.php |  6 +-
 .../src/Functional/TaxonomyImageTest.php      |  4 +-
 .../TaxonomyTermIndentationTest.php           |  4 +-
 .../tests/src/Functional/TermIndexTest.php    |  6 +-
 .../tests/src/Functional/TermLanguageTest.php | 16 ++--
 .../tests/src/Functional/TermTest.php         | 38 ++++-----
 .../src/Functional/TermTranslationUITest.php  |  2 +-
 .../tests/src/Functional/TokenReplaceTest.php |  4 +-
 .../Views/TaxonomyIndexTidUiTest.php          |  2 +-
 .../Functional/Views/TaxonomyTermViewTest.php |  4 +-
 .../src/Functional/VocabularyLanguageTest.php | 10 +--
 .../Functional/VocabularyPermissionsTest.php  | 12 +--
 .../Functional/VocabularyTranslationTest.php  |  2 +-
 .../tests/src/Functional/VocabularyUiTest.php | 16 ++--
 .../src/Functional/TelephoneFieldTest.php     |  2 +-
 .../tests/src/Functional/TextFieldTest.php    |  8 +-
 .../src/Functional/ToolbarAdminMenuTest.php   | 20 ++---
 .../Functional/ToolbarMenuTranslationTest.php |  8 +-
 .../tests/src/Functional/TrackerTest.php      | 16 ++--
 .../FileTransferAuthorizeFormTest.php         |  4 +-
 .../tests/src/Functional/UpdateUploadTest.php | 12 +--
 .../tests/src/Functional/AccessRoleUITest.php |  8 +-
 .../src/Functional/UserAccountLinksTest.php   |  2 +-
 .../src/Functional/UserAdminLanguageTest.php  |  8 +-
 .../tests/src/Functional/UserAdminTest.php    | 10 +--
 .../tests/src/Functional/UserBlocksTest.php   | 12 +--
 .../tests/src/Functional/UserCancelTest.php   | 44 +++++-----
 .../src/Functional/UserCreateFailMailTest.php |  2 +-
 .../tests/src/Functional/UserCreateTest.php   |  4 +-
 .../tests/src/Functional/UserEditTest.php     | 26 +++---
 .../Functional/UserEditedOwnAccountTest.php   |  2 +-
 .../Functional/UserLanguageCreationTest.php   |  8 +-
 .../tests/src/Functional/UserLanguageTest.php |  4 +-
 .../tests/src/Functional/UserLoginTest.php    |  4 +-
 .../src/Functional/UserPasswordResetTest.php  | 50 ++++++------
 .../src/Functional/UserPermissionsTest.php    |  8 +-
 .../tests/src/Functional/UserPictureTest.php  |  8 +-
 .../src/Functional/UserRegistrationTest.php   | 42 +++++-----
 .../src/Functional/UserRoleAdminTest.php      | 10 +--
 .../Functional/UserRolesAssignmentTest.php    |  8 +-
 .../tests/src/Functional/UserSearchTest.php   | 22 ++---
 .../tests/src/Functional/UserSubAdminTest.php |  2 +-
 .../tests/src/Functional/UserTimeZoneTest.php |  2 +-
 .../src/Functional/UserTranslationUITest.php  |  2 +-
 .../Functional/Views/BulkFormAccessTest.php   | 10 +--
 .../src/Functional/Views/BulkFormTest.php     | 18 ++---
 .../Views/HandlerFilterUserNameTest.php       |  6 +-
 .../UserPasswordResetTest.php                 |  8 +-
 .../tests/src/Functional/BulkFormTest.php     | 16 ++--
 .../tests/src/Functional/Handler/AreaTest.php |  4 +-
 .../src/Functional/Handler/FilterDateTest.php | 36 ++++-----
 .../src/Functional/Handler/HandlerTest.php    | 10 +--
 .../Functional/Plugin/ArgumentDefaultTest.php |  2 +-
 .../Plugin/DisplayEntityReferenceTest.php     | 26 +++---
 .../Plugin/DisplayFeedTranslationTest.php     |  2 +-
 .../Functional/Plugin/DisplayPageWebTest.php  |  2 +-
 .../src/Functional/Plugin/DisplayTest.php     |  2 +-
 .../Plugin/ExposedFormCheckboxesTest.php      |  2 +-
 .../src/Functional/Plugin/ExposedFormTest.php |  2 +-
 .../src/Functional/Plugin/FilterTest.php      | 18 ++---
 .../Plugin/NumericFormatPluralTest.php        | 10 +--
 .../tests/src/Functional/Plugin/PagerTest.php | 24 +++---
 .../Functional/Plugin/StyleSummaryTest.php    | 16 ++--
 .../src/Functional/SearchMultilingualTest.php |  4 +-
 .../src/Functional/UserBatchActionTest.php    |  2 +-
 .../tests/src/Functional/Wizard/BasicTest.php | 12 +--
 .../Wizard/EntityTestRevisionTest.php         |  4 +-
 .../Functional/Wizard/ItemsPerPageTest.php    |  2 +-
 .../tests/src/Functional/Wizard/MenuTest.php  |  2 +-
 .../src/Functional/Wizard/NodeWizardTest.php  |  2 +-
 .../tests/src/Functional/Wizard/PagerTest.php |  2 +-
 .../src/Functional/Wizard/SortingTest.php     |  4 +-
 .../src/Functional/Wizard/TaggedWithTest.php  | 22 ++---
 .../tests/src/Functional/AnalyzeTest.php      |  2 +-
 .../src/Functional/ArgumentValidatorTest.php  |  4 +-
 .../tests/src/Functional/CachedDataUITest.php | 14 ++--
 .../tests/src/Functional/DefaultViewsTest.php | 20 ++---
 .../src/Functional/DisplayAttachmentTest.php  | 14 ++--
 .../tests/src/Functional/DisplayCRUDTest.php  | 16 ++--
 .../src/Functional/DisplayExtenderUITest.php  |  4 +-
 .../tests/src/Functional/DisplayFeedTest.php  |  4 +-
 .../tests/src/Functional/DisplayPathTest.php  | 42 +++++-----
 .../tests/src/Functional/DisplayTest.php      | 20 ++---
 .../tests/src/Functional/DuplicateTest.php    |  2 +-
 .../src/Functional/ExposedFormUITest.php      | 68 ++++++++--------
 .../tests/src/Functional/FieldUITest.php      |  6 +-
 .../src/Functional/FilterBooleanWebTest.php   | 10 +--
 .../src/Functional/FilterNumericWebTest.php   | 32 ++++----
 .../tests/src/Functional/FilterUITest.php     | 16 ++--
 .../tests/src/Functional/GroupByTest.php      |  6 +-
 .../tests/src/Functional/HandlerTest.php      | 22 ++---
 .../Functional/NewViewConfigSchemaTest.php    |  2 +-
 .../src/Functional/OverrideDisplaysTest.php   | 26 +++---
 .../tests/src/Functional/PreviewTest.php      | 28 +++----
 .../tests/src/Functional/QueryTest.php        |  4 +-
 .../src/Functional/RearrangeFieldsTest.php    |  4 +-
 .../tests/src/Functional/RedirectTest.php     |  6 +-
 .../tests/src/Functional/RowUITest.php        |  8 +-
 .../tests/src/Functional/SettingsTest.php     | 38 ++++-----
 .../tests/src/Functional/StorageTest.php      |  4 +-
 .../tests/src/Functional/StyleTableTest.php   |  2 +-
 .../tests/src/Functional/StyleUITest.php      |  8 +-
 .../src/Functional/TranslatedViewTest.php     |  2 +-
 .../tests/src/Functional/UITestBase.php       |  2 +-
 .../src/Functional/UnsavedPreviewTest.php     | 10 +--
 .../tests/src/Functional/ViewEditTest.php     | 14 ++--
 .../tests/src/Functional/ViewsUITourTest.php  |  8 +-
 .../tests/src/Functional/WizardTest.php       |  4 +-
 .../src/Functional/PathWorkspacesTest.php     |  2 +-
 .../tests/src/Functional/StandardTest.php     |  4 +-
 .../FunctionalTests/BrowserTestBaseTest.php   |  5 +-
 .../Datetime/TimestampAgoFormatterTest.php    |  2 +-
 ...erInputMappingOnFieldDeltaElementsTest.php |  4 +-
 ...stallerTranslationMultipleLanguageTest.php |  6 +-
 .../Installer/InstallerTranslationTest.php    |  8 +-
 .../Routing/RouteCachingLanguageTest.php      |  6 +-
 ...eCachingNonPathLanguageNegotiationTest.php |  2 +-
 core/tests/Drupal/Tests/UiHelperTrait.php     |  1 +
 425 files changed, 2353 insertions(+), 2378 deletions(-)

diff --git a/core/modules/action/tests/src/Functional/ConfigurationTest.php b/core/modules/action/tests/src/Functional/ConfigurationTest.php
index f429d519c013..a4b31c9a7093 100644
--- a/core/modules/action/tests/src/Functional/ConfigurationTest.php
+++ b/core/modules/action/tests/src/Functional/ConfigurationTest.php
@@ -37,7 +37,7 @@ public function testActionConfiguration() {
     // Make a POST request to admin/config/system/actions.
     $edit = [];
     $edit['action'] = 'action_goto_action';
-    $this->drupalPostForm('admin/config/system/actions', $edit, t('Create'));
+    $this->drupalPostForm('admin/config/system/actions', $edit, 'Create');
     $this->assertSession()->statusCodeEquals(200);
 
     // Make a POST request to the individual action configuration page.
@@ -46,7 +46,7 @@ public function testActionConfiguration() {
     $edit['label'] = $action_label;
     $edit['id'] = strtolower($action_label);
     $edit['url'] = 'admin';
-    $this->drupalPostForm('admin/config/system/actions/add/action_goto_action', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/system/actions/add/action_goto_action', $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     $action_id = $edit['id'];
@@ -62,7 +62,7 @@ public function testActionConfiguration() {
     $new_action_label = $this->randomMachineName();
     $edit['label'] = $new_action_label;
     $edit['url'] = 'admin';
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Make sure that the action updated properly.
@@ -79,7 +79,7 @@ public function testActionConfiguration() {
     $this->clickLink(t('Delete'));
     $this->assertSession()->statusCodeEquals(200);
     $edit = [];
-    $this->drupalPostForm(NULL, $edit, t('Delete'));
+    $this->drupalPostForm(NULL, $edit, 'Delete');
     $this->assertSession()->statusCodeEquals(200);
 
     // Make sure that the action was actually deleted.
diff --git a/core/modules/aggregator/tests/src/Functional/AddFeedTest.php b/core/modules/aggregator/tests/src/Functional/AddFeedTest.php
index fea18180de95..556c313559dc 100644
--- a/core/modules/aggregator/tests/src/Functional/AddFeedTest.php
+++ b/core/modules/aggregator/tests/src/Functional/AddFeedTest.php
@@ -45,7 +45,7 @@ public function testAddFeed() {
       'url[0][value]' => $feed->getUrl(),
       'refresh' => '900',
     ];
-    $this->drupalPostForm('aggregator/sources/add', $edit, t('Save'));
+    $this->drupalPostForm('aggregator/sources/add', $edit, 'Save');
     $this->assertRaw(t('A feed named %feed already exists. Enter a unique title.', ['%feed' => $feed->label()]));
     $this->assertRaw(t('A feed with this URL %url already exists. Enter a unique URL.', ['%url' => $feed->getUrl()]));
 
diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php b/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php
index 56a43c5801c3..bfb53e06d188 100644
--- a/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php
+++ b/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php
@@ -36,7 +36,7 @@ public function testSettingsPage() {
       'aggregator_parser' => 'aggregator_test_parser',
       'aggregator_processors[aggregator_test_processor]' => 'aggregator_test_processor',
     ];
-    $this->drupalPostForm('admin/config/services/aggregator/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/services/aggregator/settings', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved.');
 
     // Check that settings have the correct default value.
@@ -50,7 +50,7 @@ public function testSettingsPage() {
     $edit = [
       'dummy_length' => 100,
     ];
-    $this->drupalPostForm('admin/config/services/aggregator/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/services/aggregator/settings', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved.');
     $this->assertSession()->fieldValueEquals('dummy_length', 100);
 
diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
index 761c89d92261..360aae5d0c33 100644
--- a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
+++ b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
@@ -74,7 +74,7 @@ protected function setUp() {
    */
   public function createFeed($feed_url = NULL, array $edit = []) {
     $edit = $this->getFeedEditArray($feed_url, $edit);
-    $this->drupalPostForm('aggregator/sources/add', $edit, t('Save'));
+    $this->drupalPostForm('aggregator/sources/add', $edit, 'Save');
     $this->assertText('The feed ' . Html::escape($edit['title[0][value]']) . ' has been added.', new FormattableMarkup('The feed @name has been added.', ['@name' => $edit['title[0][value]']]));
 
     // Verify that the creation message contains a link to a feed.
@@ -92,7 +92,7 @@ public function createFeed($feed_url = NULL, array $edit = []) {
    *   Feed object representing the feed.
    */
   public function deleteFeed(FeedInterface $feed) {
-    $this->drupalPostForm('aggregator/sources/' . $feed->id() . '/delete', [], t('Delete'));
+    $this->drupalPostForm('aggregator/sources/' . $feed->id() . '/delete', [], 'Delete');
     $this->assertRaw(t('The feed %title has been deleted.', ['%title' => $feed->label()]));
   }
 
@@ -212,7 +212,7 @@ public function updateFeedItems(FeedInterface $feed, $expected_count = NULL) {
    *   Feed object representing the feed.
    */
   public function deleteFeedItems(FeedInterface $feed) {
-    $this->drupalPostForm('admin/config/services/aggregator/delete/' . $feed->id(), [], t('Delete items'));
+    $this->drupalPostForm('admin/config/services/aggregator/delete/' . $feed->id(), [], 'Delete items');
     $this->assertRaw(t('The news items from %title have been deleted.', ['%title' => $feed->label()]));
   }
 
@@ -376,7 +376,7 @@ public function createSampleNodes($count = 5) {
       $edit = [];
       $edit['title[0][value]'] = $this->randomMachineName();
       $edit['body[0][value]'] = $this->randomMachineName();
-      $this->drupalPostForm('node/add/article', $edit, t('Save'));
+      $this->drupalPostForm('node/add/article', $edit, 'Save');
     }
   }
 
diff --git a/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php b/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php
index 5311f2c1d300..45ec0768097e 100644
--- a/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php
+++ b/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php
@@ -68,7 +68,7 @@ public function testFeedLanguage() {
     $edit['entity_types[aggregator_feed]'] = TRUE;
     $edit['settings[aggregator_feed][aggregator_feed][settings][language][language_alterable]'] = TRUE;
 
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     /** @var \Drupal\aggregator\FeedInterface[] $feeds */
     $feeds = [];
diff --git a/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php b/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
index e925431c0526..fc1b68b04b3a 100644
--- a/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
+++ b/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
@@ -61,7 +61,7 @@ public function validateImportFormFields() {
     $before = $count_query->execute();
 
     $edit = [];
-    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, 'Import');
     $this->assertRaw(t('<em>Either</em> upload a file or enter a URL.'));
 
     $path = $this->getEmptyOpml();
@@ -69,11 +69,11 @@ public function validateImportFormFields() {
       'files[upload]' => $path,
       'remote' => file_create_url($path),
     ];
-    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, 'Import');
     $this->assertRaw(t('<em>Either</em> upload a file or enter a URL.'));
 
     $edit = ['remote' => 'invalidUrl://empty'];
-    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, 'Import');
     $this->assertText('The URL invalidUrl://empty is not valid.', 'Error if the URL is invalid.');
 
     $after = $count_query->execute();
@@ -88,11 +88,11 @@ protected function submitImportForm() {
     $before = $count_query->execute();
 
     $form['files[upload]'] = $this->getInvalidOpml();
-    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $form, t('Import'));
+    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $form, 'Import');
     $this->assertText('No new feed has been added.', 'Attempting to upload invalid XML.');
 
     $edit = ['remote' => file_create_url($this->getEmptyOpml())];
-    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, 'Import');
     $this->assertText('No new feed has been added.', 'Attempting to load empty OPML from remote URL.');
 
     $after = $count_query->execute();
@@ -109,7 +109,7 @@ protected function submitImportForm() {
       'files[upload]' => $this->getValidOpml($feeds),
       'refresh'       => '900',
     ];
-    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, 'Import');
     // Verify that a duplicate URL was identified.
     $this->assertRaw(t('A feed with the URL %url already exists.', ['%url' => $feeds[0]['url[0][value]']]));
     // Verify that a duplicate title was identified.
diff --git a/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php b/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
index 7a8bf69d71b0..bcba76cc5d38 100644
--- a/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
+++ b/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
@@ -43,7 +43,7 @@ public function testUpdateFeedItem() {
     $this->drupalGet($edit['url[0][value]']);
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm('aggregator/sources/add', $edit, t('Save'));
+    $this->drupalPostForm('aggregator/sources/add', $edit, 'Save');
     $this->assertText('The feed ' . $edit['title[0][value]'] . ' has been added.', new FormattableMarkup('The feed @name has been added.', ['@name' => $edit['title[0][value]']]));
 
     // Verify that the creation message contains a link to a feed.
diff --git a/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php b/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php
index 77e936e75d23..646a5923bef7 100644
--- a/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php
+++ b/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php
@@ -31,7 +31,7 @@ public function testUpdateFeed() {
       if (isset($feed->{$same_field}->value)) {
         $edit[$same_field] = $feed->{$same_field}->value;
       }
-      $this->drupalPostForm('aggregator/sources/' . $feed->id() . '/configure', $edit, t('Save'));
+      $this->drupalPostForm('aggregator/sources/' . $feed->id() . '/configure', $edit, 'Save');
       $this->assertText('The feed ' . $edit['title[0][value]'] . ' has been updated.', new FormattableMarkup('The feed %name has been updated.', ['%name' => $edit['title[0][value]']]));
 
       // Verify that the creation message contains a link to a feed.
diff --git a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
index 9a177f1c1077..fbc4ca70f6d6 100644
--- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
+++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
@@ -38,7 +38,7 @@ public function testIPAddressValidation() {
     // Ban a valid IP address.
     $edit = [];
     $edit['ip'] = '1.2.3.3';
-    $this->drupalPostForm('admin/config/people/ban', $edit, t('Add'));
+    $this->drupalPostForm('admin/config/people/ban', $edit, 'Add');
     $ip = $connection->select('ban_ip', 'bi')->fields('bi', ['iid'])->condition('ip', $edit['ip'])->execute()->fetchField();
     $this->assertNotEmpty($ip, 'IP address found in database.');
     $this->assertRaw(t('The IP address %ip has been banned.', ['%ip' => $edit['ip']]));
@@ -46,30 +46,30 @@ public function testIPAddressValidation() {
     // Try to block an IP address that's already blocked.
     $edit = [];
     $edit['ip'] = '1.2.3.3';
-    $this->drupalPostForm('admin/config/people/ban', $edit, t('Add'));
+    $this->drupalPostForm('admin/config/people/ban', $edit, 'Add');
     $this->assertText('This IP address is already banned.');
 
     // Try to block a reserved IP address.
     $edit = [];
     $edit['ip'] = '255.255.255.255';
-    $this->drupalPostForm('admin/config/people/ban', $edit, t('Add'));
+    $this->drupalPostForm('admin/config/people/ban', $edit, 'Add');
     $this->assertText('Enter a valid IP address.');
 
     // Try to block a reserved IP address.
     $edit = [];
     $edit['ip'] = 'test.example.com';
-    $this->drupalPostForm('admin/config/people/ban', $edit, t('Add'));
+    $this->drupalPostForm('admin/config/people/ban', $edit, 'Add');
     $this->assertText('Enter a valid IP address.');
 
     // Submit an empty form.
     $edit = [];
     $edit['ip'] = '';
-    $this->drupalPostForm('admin/config/people/ban', $edit, t('Add'));
+    $this->drupalPostForm('admin/config/people/ban', $edit, 'Add');
     $this->assertText('Enter a valid IP address.');
 
     // Pass an IP address as a URL parameter and submit it.
     $submit_ip = '1.2.3.4';
-    $this->drupalPostForm('admin/config/people/ban/' . $submit_ip, [], t('Add'));
+    $this->drupalPostForm('admin/config/people/ban/' . $submit_ip, [], 'Add');
     $ip = $connection->select('ban_ip', 'bi')->fields('bi', ['iid'])->condition('ip', $submit_ip)->execute()->fetchField();
     $this->assertNotEmpty($ip, 'IP address found in database');
     $this->assertRaw(t('The IP address %ip has been banned.', ['%ip' => $submit_ip]));
@@ -79,7 +79,7 @@ public function testIPAddressValidation() {
     // TODO: On some systems this test fails due to a bug/inconsistency in cURL.
     // $edit = array();
     // $edit['ip'] = \Drupal::request()->getClientIP();
-    // $this->drupalPostForm('admin/config/people/ban', $edit, t('Save'));
+    // $this->drupalPostForm('admin/config/people/ban', $edit, 'Save');
     // $this->assertText('You may not ban your own IP address.');
 
     // Test duplicate ip address are not present in the 'blocked_ips' table.
diff --git a/core/modules/block/tests/src/Functional/BlockAdminThemeTest.php b/core/modules/block/tests/src/Functional/BlockAdminThemeTest.php
index ce4b24bbfe7c..4327b2b39503 100644
--- a/core/modules/block/tests/src/Functional/BlockAdminThemeTest.php
+++ b/core/modules/block/tests/src/Functional/BlockAdminThemeTest.php
@@ -42,7 +42,7 @@ public function testAdminTheme() {
     // Install admin theme and confirm that tab is accessible.
     \Drupal::service('theme_installer')->install(['bartik']);
     $edit['admin_theme'] = 'bartik';
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
     $this->drupalGet('admin/structure/block/list/bartik');
     $this->assertSession()->statusCodeEquals(200);
   }
@@ -63,7 +63,7 @@ public function testSevenAdminTheme() {
     // Install admin theme and confirm that tab is accessible.
     \Drupal::service('theme_installer')->install(['seven']);
     $edit['admin_theme'] = 'seven';
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
 
     // Define our block settings.
     $settings = [
diff --git a/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php b/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php
index 3ee4aaa750fc..4e81acbac602 100644
--- a/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php
+++ b/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php
@@ -47,7 +47,7 @@ public function testCachePerPage() {
 
     // Make sure that we're currently still on /test-page after submitting the
     // form.
-    $this->drupalPostForm(NULL, $form_values, t('Submit'));
+    $this->drupalPostForm(NULL, $form_values, 'Submit');
     $this->assertSession()->addressEquals('test-page');
     $this->assertText('Your email address is test@example.com');
 
@@ -59,7 +59,7 @@ public function testCachePerPage() {
     // Make sure that submitting the form didn't redirect us to the first page
     // we submitted the form from after submitting the form from
     // /test-render-title.
-    $this->drupalPostForm(NULL, $form_values, t('Submit'));
+    $this->drupalPostForm(NULL, $form_values, 'Submit');
     $this->assertSession()->addressEquals('test-render-title');
     $this->assertText('Your email address is test@example.com');
   }
diff --git a/core/modules/block/tests/src/Functional/BlockLanguageCacheTest.php b/core/modules/block/tests/src/Functional/BlockLanguageCacheTest.php
index 4eef431b1698..6ab28c643d01 100644
--- a/core/modules/block/tests/src/Functional/BlockLanguageCacheTest.php
+++ b/core/modules/block/tests/src/Functional/BlockLanguageCacheTest.php
@@ -67,7 +67,7 @@ public function testBlockLinks() {
     // Create a menu in the default language.
     $edit['label'] = $this->randomMachineName();
     $edit['id'] = mb_strtolower($edit['label']);
-    $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/add', $edit, 'Save');
     $this->assertText('Menu ' . $edit['label'] . ' has been added.');
 
     // Check that the block is listed for all languages.
diff --git a/core/modules/block/tests/src/Functional/BlockLanguageTest.php b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
index 30cf2943ef27..3c35765447ba 100644
--- a/core/modules/block/tests/src/Functional/BlockLanguageTest.php
+++ b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
@@ -43,7 +43,7 @@ protected function setUp(): void {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $this->assertText('French', 'Language added successfully.');
   }
 
@@ -65,13 +65,13 @@ public function testLanguageBlockVisibility() {
       'id' => strtolower($this->randomMachineName(8)),
       'region' => 'sidebar_first',
     ];
-    $this->drupalPostForm('admin/structure/block/add/system_powered_by_block' . '/' . $default_theme, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/system_powered_by_block' . '/' . $default_theme, $edit, 'Save block');
 
     // Change the default language.
     $edit = [
       'site_default_language' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language', $edit, 'Save configuration');
 
     // Check that a page has a block.
     $this->drupalGet('en');
@@ -104,7 +104,7 @@ public function testLanguageBlockVisibilityLanguageDelete() {
     $this->assertEqual('fr', $visibility['language']['langcodes']['fr'], 'Language is set in the block configuration.');
 
     // Delete the language.
-    $this->drupalPostForm('admin/config/regional/language/delete/fr', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/fr', [], 'Delete');
 
     // Check that the language is no longer stored in the configuration after
     // it is deleted.
@@ -134,7 +134,7 @@ public function testMultipleLanguageTypes() {
       'language_content[enabled][language-url]' => TRUE,
       'language_content[enabled][language-interface]' => FALSE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Check if the visibility setting is available with a type setting.
     $default_theme = $this->config('system.theme')->get('default');
@@ -150,7 +150,7 @@ public function testMultipleLanguageTypes() {
       'id' => $block_id,
       'region' => 'sidebar_first',
     ];
-    $this->drupalPostForm('admin/structure/block/add/system_powered_by_block' . '/' . $default_theme, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/system_powered_by_block' . '/' . $default_theme, $edit, 'Save block');
 
     // Interface negotiation depends on request arguments.
     $this->drupalGet('node', ['query' => ['language' => 'en']]);
@@ -174,7 +174,7 @@ public function testMultipleLanguageTypes() {
     $edit = [
       'visibility[language][context_mapping][language]' => '@language.current_language_context:language_content',
     ];
-    $this->drupalPostForm('admin/structure/block/manage/' . $block_id, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/manage/' . $block_id, $edit, 'Save block');
 
     // Content language negotiation does not depend on request arguments.
     // It will fall back on English (site default) and not display the block.
diff --git a/core/modules/block/tests/src/Functional/BlockTest.php b/core/modules/block/tests/src/Functional/BlockTest.php
index 14d47a6a6cec..6fe63b52394f 100644
--- a/core/modules/block/tests/src/Functional/BlockTest.php
+++ b/core/modules/block/tests/src/Functional/BlockTest.php
@@ -44,7 +44,7 @@ public function testBlockVisibility() {
     $this->drupalGet('admin/structure/block/add/' . $block_name . '/' . $default_theme);
     $this->assertSession()->checkboxChecked('edit-visibility-request-path-negate-0');
 
-    $this->drupalPostForm(NULL, $edit, t('Save block'));
+    $this->drupalPostForm(NULL, $edit, 'Save block');
     $this->assertText('The block configuration has been saved.', 'Block was saved');
 
     $this->clickLink('Configure');
@@ -83,7 +83,7 @@ public function testBlockToggleVisibility() {
     $block_id = $edit['id'];
     // Set the block to be shown only to authenticated users.
     $edit['visibility[user_role][roles][' . RoleInterface::AUTHENTICATED_ID . ']'] = TRUE;
-    $this->drupalPostForm('admin/structure/block/add/' . $block_name . '/' . $default_theme, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/' . $block_name . '/' . $default_theme, $edit, 'Save block');
     $this->clickLink('Configure');
     $this->assertSession()->checkboxChecked('edit-visibility-user-role-roles-authenticated');
 
@@ -119,7 +119,7 @@ public function testBlockVisibilityListedEmpty() {
     ];
     // Set the block to be hidden on any user path, and to be shown only to
     // authenticated users.
-    $this->drupalPostForm('admin/structure/block/add/' . $block_name . '/' . $default_theme, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/' . $block_name . '/' . $default_theme, $edit, 'Save block');
     $this->assertText('The block configuration has been saved.', 'Block was saved');
 
     $this->drupalGet('user');
@@ -170,7 +170,7 @@ public function testAddBlockFromLibraryWithWeight() {
         'settings[label]' => $title,
       ];
       // Create the block using the link parsed from the library page.
-      $this->drupalPostForm($this->getAbsoluteUrl($links[0]->getAttribute('href')), $edit, t('Save block'));
+      $this->drupalPostForm($this->getAbsoluteUrl($links[0]->getAttribute('href')), $edit, 'Save block');
 
       // Ensure that the block was created with the expected weight.
       /** @var \Drupal\block\BlockInterface $block */
@@ -199,7 +199,7 @@ public function testBlock() {
     $block['region'] = 'header';
 
     // Set block title to confirm that interface works and override any custom titles.
-    $this->drupalPostForm('admin/structure/block/add/' . $block['id'] . '/' . $block['theme'], ['settings[label]' => $block['settings[label]'], 'settings[label_display]' => $block['settings[label_display]'], 'id' => $block['id'], 'region' => $block['region']], t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/' . $block['id'] . '/' . $block['theme'], ['settings[label]' => $block['settings[label]'], 'settings[label_display]' => $block['settings[label_display]'], 'id' => $block['id'], 'region' => $block['region']], 'Save block');
     $this->assertText('The block configuration has been saved.', 'Block title set.');
     // Check to see if the block was created by checking its configuration.
     $instance = Block::load($block['id']);
@@ -230,7 +230,7 @@ public function testBlock() {
     $this->drupalGet('admin/structure/block/manage/' . $block['id']);
     $this->clickLink(t('Remove block'));
     $this->assertRaw(t('Are you sure you want to remove the block @name?', ['@name' => $block['settings[label]']]));
-    $this->drupalPostForm(NULL, [], t('Remove'));
+    $this->drupalPostForm(NULL, [], 'Remove');
     $this->assertRaw(t('The block %name has been removed.', ['%name' => $block['settings[label]']]));
 
     // Test deleting a block via "Configure block" link.
@@ -238,7 +238,7 @@ public function testBlock() {
     $this->drupalGet('admin/structure/block/manage/' . $block->id(), ['query' => ['destination' => 'admin']]);
     $this->clickLink(t('Remove block'));
     $this->assertRaw(t('Are you sure you want to remove the block @name?', ['@name' => $block->label()]));
-    $this->drupalPostForm(NULL, [], t('Remove'));
+    $this->drupalPostForm(NULL, [], 'Remove');
     $this->assertRaw(t('The block %name has been removed.', ['%name' => $block->label()]));
     $this->assertSession()->addressEquals('admin');
     $this->assertNoRaw($block->id());
@@ -259,7 +259,7 @@ public function testBlockThemeSelector() {
       $block['id'] = strtolower($this->randomMachineName());
       $block['theme'] = $theme;
       $block['region'] = 'content';
-      $this->drupalPostForm('admin/structure/block/add/system_powered_by_block', $block, t('Save block'));
+      $this->drupalPostForm('admin/structure/block/add/system_powered_by_block', $block, 'Save block');
       $this->assertText('The block configuration has been saved.');
       $this->assertSession()->addressEquals('admin/structure/block/list/' . $theme . '?block-placement=' . Html::getClass($block['id']));
 
@@ -302,7 +302,7 @@ public function testHideBlockTitle() {
       'region' => 'sidebar_first',
       'settings[label]' => $title,
     ];
-    $this->drupalPostForm('admin/structure/block/add/' . $block_name . '/' . $default_theme, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/' . $block_name . '/' . $default_theme, $edit, 'Save block');
     $this->assertText('The block configuration has been saved.', 'Block was saved');
 
     $this->drupalGet('user');
@@ -311,7 +311,7 @@ public function testHideBlockTitle() {
     $edit = [
       'settings[label_display]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/block/manage/' . $id, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/manage/' . $id, $edit, 'Save block');
     $this->assertText('The block configuration has been saved.', 'Block was saved');
 
     $this->drupalGet('admin/structure/block/manage/' . $id);
@@ -338,7 +338,7 @@ public function moveBlockToRegion(array $block, $region) {
     $block += ['theme' => $this->config('system.theme')->get('default')];
     $edit = [];
     $edit['blocks[' . $block['id'] . '][region]'] = $region;
-    $this->drupalPostForm('admin/structure/block', $edit, t('Save blocks'));
+    $this->drupalPostForm('admin/structure/block', $edit, 'Save blocks');
 
     // Confirm that the block was moved to the proper region.
     $this->assertText('The block settings have been updated.', new FormattableMarkup('Block successfully moved to %region_name region.', ['%region_name' => $region]));
diff --git a/core/modules/block/tests/src/Functional/BlockUiTest.php b/core/modules/block/tests/src/Functional/BlockUiTest.php
index db5761d4a989..47bd635922ac 100644
--- a/core/modules/block/tests/src/Functional/BlockUiTest.php
+++ b/core/modules/block/tests/src/Functional/BlockUiTest.php
@@ -131,7 +131,7 @@ public function testBlockAdminUiPage() {
       // Change the test block's weight.
       $edit['blocks[' . $values['settings']['id'] . '][weight]'] = $values['test_weight'];
     }
-    $this->drupalPostForm('admin/structure/block', $edit, t('Save blocks'));
+    $this->drupalPostForm('admin/structure/block', $edit, 'Save blocks');
     foreach ($this->blockValues as $values) {
       // Check if the region and weight settings changes have persisted.
       $this->assertTrue($this->assertSession()->optionExists('edit-blocks-' . $values['settings']['id'] . '-region', 'header')->isSelected());
@@ -326,11 +326,11 @@ public function testBlockPlacementIndicator() {
     $block['region'] = 'content';
 
     // After adding a block, it will indicate which block was just added.
-    $this->drupalPostForm('admin/structure/block/add/system_powered_by_block', $block, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/system_powered_by_block', $block, 'Save block');
     $this->assertSession()->addressEquals('admin/structure/block/list/classy?block-placement=' . Html::getClass($block['id']));
 
     // Resaving the block page will remove the block placement indicator.
-    $this->drupalPostForm(NULL, [], t('Save blocks'));
+    $this->drupalPostForm(NULL, [], 'Save blocks');
     $this->assertSession()->addressEquals('admin/structure/block/list/classy');
 
     // Place another block and test the remove functionality works with the
@@ -356,7 +356,7 @@ public function testBlockPlacementIndicator() {
    * Tests if validation errors are passed plugin form to the parent form.
    */
   public function testBlockValidateErrors() {
-    $this->drupalPostForm('admin/structure/block/add/test_settings_validation/classy', ['region' => 'content', 'settings[digits]' => 'abc'], t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/test_settings_validation/classy', ['region' => 'content', 'settings[digits]' => 'abc'], 'Save block');
 
     $arguments = [':message' => 'Only digits are allowed'];
     $pattern = '//div[contains(@class,"messages messages--error")]/div[contains(text()[2],:message)]';
diff --git a/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php b/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php
index 089f9005e8d6..1e65d2bee4ad 100644
--- a/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php
+++ b/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php
@@ -77,7 +77,7 @@ public function testBlockCategory() {
     $edit['description'] = $this->randomString();
     $edit['block[create]'] = TRUE;
     $edit['block[style][row_plugin]'] = 'fields';
-    $this->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $edit, 'Save and edit');
 
     $pattern = '//tr[.//td[text()=:category] and .//td//a[contains(@href, :href)]]';
 
@@ -96,7 +96,7 @@ public function testBlockCategory() {
     $this->assertTrue(!empty($elements), 'The test block appears in the category for its base table.');
 
     // Duplicate the block before changing the category.
-    $this->drupalPostForm('admin/structure/views/view/' . $edit['id'] . '/edit/block_1', [], t('Duplicate @display_title', ['@display_title' => 'Block']));
+    $this->drupalPostForm('admin/structure/views/view/' . $edit['id'] . '/edit/block_1', [], 'Duplicate Block');
     $this->assertSession()->addressEquals('admin/structure/views/view/' . $edit['id'] . '/edit/block_2');
 
     // Change the block category to a random string.
@@ -105,13 +105,13 @@ public function testBlockCategory() {
     $this->assertTrue(!empty($link));
     $this->clickLink(t('Lists (Views)'));
     $category = $this->randomString();
-    $this->drupalPostForm(NULL, ['block_category' => $category], t('Apply'));
+    $this->drupalPostForm(NULL, ['block_category' => $category], 'Apply');
 
     // Duplicate the block after changing the category.
-    $this->drupalPostForm(NULL, [], t('Duplicate @display_title', ['@display_title' => 'Block']));
+    $this->drupalPostForm(NULL, [], 'Duplicate Block');
     $this->assertSession()->addressEquals('admin/structure/views/view/' . $edit['id'] . '/edit/block_3');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Test that the blocks are listed under the correct categories.
     $arguments[':category'] = $category;
@@ -209,7 +209,7 @@ public function testViewsBlockForm() {
 
     // Save the block.
     $edit = ['region' => 'content'];
-    $this->drupalPostForm(NULL, $edit, t('Save block'));
+    $this->drupalPostForm(NULL, $edit, 'Save block');
     $storage = $this->container->get('entity_type.manager')->getStorage('block');
     $block = $storage->load('views_block__test_view_block_block_1');
     // This will only return a result if our new block has been created with the
@@ -218,7 +218,7 @@ public function testViewsBlockForm() {
 
     for ($i = 2; $i <= 3; $i++) {
       // Place the same block again and make sure we have a new ID.
-      $this->drupalPostForm('admin/structure/block/add/views_block:test_view_block-block_1/' . $default_theme, $edit, t('Save block'));
+      $this->drupalPostForm('admin/structure/block/add/views_block:test_view_block-block_1/' . $default_theme, $edit, 'Save block');
       $block = $storage->load('views_block__test_view_block_block_1_' . $i);
       // This will only return a result if our new block has been created with the
       // expected machine name.
@@ -230,14 +230,14 @@ public function testViewsBlockForm() {
     $edit = ['region' => 'content'];
     $edit['settings[override][items_per_page]'] = 10;
 
-    $this->drupalPostForm('admin/structure/block/add/views_block:test_view_block-block_1/' . $default_theme, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/views_block:test_view_block-block_1/' . $default_theme, $edit, 'Save block');
 
     $block = $storage->load('views_block__test_view_block_block_1_4');
     $config = $block->getPlugin()->getConfiguration();
     $this->assertEqual(10, $config['items_per_page'], "'Items per page' is properly saved.");
 
     $edit['settings[override][items_per_page]'] = 5;
-    $this->drupalPostForm('admin/structure/block/manage/views_block__test_view_block_block_1_4', $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/manage/views_block__test_view_block_block_1_4', $edit, 'Save block');
 
     $block = $storage->load('views_block__test_view_block_block_1_4');
 
@@ -248,7 +248,7 @@ public function testViewsBlockForm() {
     $edit = ['region' => 'content'];
     $edit['settings[views_label_checkbox]'] = 1;
     $edit['settings[views_label]'] = 'Custom title';
-    $this->drupalPostForm('admin/structure/block/add/views_block:test_view_block-block_1/' . $default_theme, $edit, t('Save block'));
+    $this->drupalPostForm('admin/structure/block/add/views_block:test_view_block-block_1/' . $default_theme, $edit, 'Save block');
 
     $block = $storage->load('views_block__test_view_block_block_1_5');
     $config = $block->getPlugin()->getConfiguration();
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
index 1678f2c47121..7b6dc7df189d 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
@@ -56,7 +56,7 @@ public function testBlockContentCreation() {
     $edit = [];
     $edit['info[0][value]'] = 'Test Block';
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('block/add/basic', $edit, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit, 'Save');
 
     // Check that the Basic block has been created.
     $this->assertRaw(new FormattableMarkup('@block %name has been created.', [
@@ -76,7 +76,7 @@ public function testBlockContentCreation() {
 
     // Check that attempting to create another block with the same value for
     // 'info' returns an error.
-    $this->drupalPostForm('block/add/basic', $edit, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit, 'Save');
 
     // Check that the Basic block has been created.
     $this->assertRaw(new FormattableMarkup('A custom block with block description %value already exists.', [
@@ -96,7 +96,7 @@ public function testBlockContentCreationMultipleViewModes() {
       'id' => 'test_view_mode',
       'label' => 'Test View Mode',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('Saved the %label view mode.', ['%label' => $edit['label']]));
 
     $this->drupalLogin($this->adminUser);
@@ -105,7 +105,7 @@ public function testBlockContentCreationMultipleViewModes() {
     $edit = [];
     $edit['info[0][value]'] = 'Test Block';
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('block/add/basic', $edit, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit, 'Save');
 
     // Check that the Basic block has been created.
     $this->assertRaw(new FormattableMarkup('@block %name has been created.', [
@@ -114,7 +114,7 @@ public function testBlockContentCreationMultipleViewModes() {
     ]));
 
     // Save our block permanently
-    $this->drupalPostForm(NULL, ['region' => 'content'], t('Save block'));
+    $this->drupalPostForm(NULL, ['region' => 'content'], 'Save block');
 
     // Set test_view_mode as a custom display to be available on the list.
     $this->drupalGet('admin/structure/block/block-content');
@@ -124,7 +124,7 @@ public function testBlockContentCreationMultipleViewModes() {
     $custom_view_mode = [
       'display_modes_custom[test_view_mode]' => 1,
     ];
-    $this->drupalPostForm(NULL, $custom_view_mode, t('Save'));
+    $this->drupalPostForm(NULL, $custom_view_mode, 'Save');
 
     // Go to the configure page and change the view mode.
     $this->drupalGet('admin/structure/block/manage/testblock');
@@ -136,7 +136,7 @@ public function testBlockContentCreationMultipleViewModes() {
     $this->assertSession()->optionExists('edit-settings-view-mode', 'test_view_mode');
 
     $view_mode['settings[view_mode]'] = 'test_view_mode';
-    $this->drupalPostForm(NULL, $view_mode, t('Save block'));
+    $this->drupalPostForm(NULL, $view_mode, 'Save block');
 
     // Check that the view mode setting is shown because more than one exists.
     $this->drupalGet('admin/structure/block/manage/testblock');
@@ -145,7 +145,7 @@ public function testBlockContentCreationMultipleViewModes() {
     // Change the view mode.
     $view_mode['region'] = 'content';
     $view_mode['settings[view_mode]'] = 'test_view_mode';
-    $this->drupalPostForm(NULL, $view_mode, t('Save block'));
+    $this->drupalPostForm(NULL, $view_mode, 'Save block');
 
     // Go to the configure page and verify the view mode has changed.
     $this->drupalGet('admin/structure/block/manage/testblock');
@@ -160,7 +160,7 @@ public function testBlockContentCreationMultipleViewModes() {
 
     // Check that attempting to create another block with the same value for
     // 'info' returns an error.
-    $this->drupalPostForm('block/add/basic', $edit, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit, 'Save');
 
     // Check that the Basic block has been created.
     $this->assertRaw(new FormattableMarkup('A custom block with block description %value already exists.', [
@@ -180,7 +180,7 @@ public function testDefaultBlockContentCreation() {
     $edit['info[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
     // Don't pass the custom block type in the url so the default is forced.
-    $this->drupalPostForm('block/add', $edit, t('Save'));
+    $this->drupalPostForm('block/add', $edit, 'Save');
 
     // Check that the block has been created and that it is a basic block.
     $this->assertRaw(new FormattableMarkup('@block %name has been created.', [
@@ -229,7 +229,7 @@ public function testBlockDelete() {
     $edit['info[0][value]'] = $this->randomMachineName(8);
     $body = $this->randomMachineName(16);
     $edit['body[0][value]'] = $body;
-    $this->drupalPostForm('block/add/basic', $edit, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit, 'Save');
 
     // Place the block.
     $instance = [
@@ -239,7 +239,7 @@ public function testBlockDelete() {
     ];
     $block = BlockContent::load(1);
     $url = 'admin/structure/block/add/block_content:' . $block->uuid() . '/' . $this->config('system.theme')->get('default');
-    $this->drupalPostForm($url, $instance, t('Save block'));
+    $this->drupalPostForm($url, $instance, 'Save block');
 
     $block = BlockContent::load(1);
 
@@ -262,7 +262,7 @@ public function testBlockDelete() {
     $edit2['info[0][value]'] = $this->randomMachineName(8);
     $body2 = $this->randomMachineName(16);
     $edit2['body[0][value]'] = $body2;
-    $this->drupalPostForm('block/add/basic', $edit2, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit2, 'Save');
 
     $this->assertNoRaw('Error message');
 
@@ -272,7 +272,7 @@ public function testBlockDelete() {
     $edit3['info[0][value]'] = $this->randomMachineName(8);
     $body = $this->randomMachineName(16);
     $edit3['body[0][value]'] = $body;
-    $this->drupalPostForm('block/add/basic', $edit3, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit3, 'Save');
 
     // Show the delete confirm form.
     $this->drupalGet('block/3/delete');
@@ -293,7 +293,7 @@ public function testConfigDependencies() {
     ];
     $block = BlockContent::load(1);
     $url = 'admin/structure/block/add/block_content:' . $block->uuid() . '/' . $this->config('system.theme')->get('default');
-    $this->drupalPostForm($url, $instance, t('Save block'));
+    $this->drupalPostForm($url, $instance, 'Save block');
 
     $dependencies = \Drupal::service('config.manager')->findConfigEntityDependentsAsEntities('content', [$block->getConfigDependencyName()]);
     $block_placement = reset($dependencies);
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentListTest.php b/core/modules/block_content/tests/src/Functional/BlockContentListTest.php
index 09fdd78303bd..0593624c2664 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentListTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentListTest.php
@@ -64,7 +64,7 @@ public function testListing() {
     $edit = [];
     $edit['info[0][value]'] = $label;
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Confirm that once the user returns to the listing, the text of the label
     // (versus elsewhere on the page).
@@ -90,7 +90,7 @@ public function testListing() {
       $this->assertSession()->statusCodeEquals(200);
       $this->assertSession()->titleEquals("Edit custom block $label | Drupal");
       $edit = ['info[0][value]' => $new_label];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
     }
     else {
       $this->fail('Did not find Albatross block in the database.');
@@ -102,11 +102,10 @@ public function testListing() {
 
     // Delete the added entity using the operations link.
     $this->assertSession()->linkByHrefExists('block/' . $block->id() . '/delete');
-    $delete_text = t('Delete');
-    $this->clickLink($delete_text);
+    $this->clickLink('Delete');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->titleEquals("Are you sure you want to delete the custom block $new_label? | Drupal");
-    $this->drupalPostForm(NULL, [], $delete_text);
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Verify that the text of the label and machine name does not appear in
     // the list (though it may appear elsewhere on the page).
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php b/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
index 638ce2dec9f4..7bcc15dd29b9 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
@@ -76,7 +76,7 @@ public function testListing() {
     $edit = [];
     $edit['info[0][value]'] = $label;
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Confirm that once the user returns to the listing, the text of the label
     // (versus elsewhere on the page).
@@ -102,7 +102,7 @@ public function testListing() {
       $this->assertSession()->statusCodeEquals(200);
       $this->assertSession()->titleEquals("Edit custom block $label | Drupal");
       $edit = ['info[0][value]' => $new_label];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
     }
     else {
       $this->fail('Did not find Albatross block in the database.');
@@ -114,11 +114,10 @@ public function testListing() {
 
     // Delete the added entity using the operations link.
     $this->assertSession()->linkByHrefExists('block/' . $block->id() . '/delete');
-    $delete_text = t('Delete');
-    $this->clickLink($delete_text);
+    $this->clickLink('Delete');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->titleEquals("Are you sure you want to delete the custom block $new_label? | Drupal");
-    $this->drupalPostForm(NULL, [], $delete_text);
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Verify that the text of the label and machine name does not appear in
     // the list (though it may appear elsewhere on the page).
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
index b8cba2cf8aac..baa75dc0da81 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
@@ -68,7 +68,7 @@ public function testBlockContentTypeCreation() {
       'id' => 'foo',
       'label' => 'title for foo',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $block_type = BlockContentType::load('foo');
     $this->assertInstanceOf(BlockContentType::class, $block_type);
 
@@ -121,7 +121,7 @@ public function testBlockContentTypeEditing() {
     ];
     $this->drupalGet('admin/structure/block/block-content/manage/basic');
     $this->assertSession()->titleEquals('Edit basic custom block type | Drupal');
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $front_page_path = Url::fromRoute('<front>')->toString();
     $this->assertBreadcrumb('admin/structure/block/block-content/manage/basic/fields', [
       $front_page_path => 'Home',
@@ -138,9 +138,9 @@ public function testBlockContentTypeEditing() {
     $this->assertSession()->addressEquals(Url::fromRoute('block_content.add_form', ['block_content_type' => 'basic']));
 
     // Remove the body field.
-    $this->drupalPostForm('admin/structure/block/block-content/manage/basic/fields/block_content.basic.body/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/block/block-content/manage/basic/fields/block_content.basic.body/delete', [], 'Delete');
     // Resave the settings for this type.
-    $this->drupalPostForm('admin/structure/block/block-content/manage/basic', [], t('Save'));
+    $this->drupalPostForm('admin/structure/block/block-content/manage/basic', [], 'Save');
     // Check that the body field doesn't exist.
     $this->drupalGet('block/add/basic');
     $this->assertEmpty($this->cssSelect('#edit-body-0-value'), 'Body field was not found.');
@@ -221,12 +221,12 @@ public function testsBlockContentAddTypes() {
         }
         // Create a new block.
         $edit = ['info[0][value]' => $this->randomMachineName(8)];
-        $this->drupalPostForm(NULL, $edit, t('Save'));
+        $this->drupalPostForm(NULL, $edit, 'Save');
         $blocks = $storage->loadByProperties(['info' => $edit['info[0][value]']]);
         if (!empty($blocks)) {
           $block = reset($blocks);
           $this->assertSession()->addressEquals(Url::fromRoute('block.admin_add', ['plugin_id' => 'block_content:' . $block->uuid(), 'theme' => $theme]));
-          $this->drupalPostForm(NULL, ['region' => 'content'], t('Save block'));
+          $this->drupalPostForm(NULL, ['region' => 'content'], 'Save block');
           $this->assertSession()->addressEquals(Url::fromRoute('block.admin_display_theme', ['theme' => $theme], ['query' => ['block-placement' => Html::getClass($edit['info[0][value]'])]]));
         }
         else {
@@ -241,7 +241,7 @@ public function testsBlockContentAddTypes() {
     $this->clickLink(t('Add custom block'));
     $this->clickLink('foo');
     $edit = ['info[0][value]' => $this->randomMachineName(8)];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $blocks = $storage->loadByProperties(['info' => $edit['info[0][value]']]);
     if (!empty($blocks)) {
       $this->assertSession()->addressEquals(Url::fromRoute('entity.block_content.collection'));
diff --git a/core/modules/block_content/tests/src/Functional/PageEditTest.php b/core/modules/block_content/tests/src/Functional/PageEditTest.php
index a15a68ed97b2..bc0aad87fab3 100644
--- a/core/modules/block_content/tests/src/Functional/PageEditTest.php
+++ b/core/modules/block_content/tests/src/Functional/PageEditTest.php
@@ -34,7 +34,7 @@ public function testPageEdit() {
     $edit = [];
     $edit['info[0][value]'] = mb_strtolower($this->randomMachineName(8));
     $edit[$body_key] = $this->randomMachineName(16);
-    $this->drupalPostForm('block/add/basic', $edit, t('Save'));
+    $this->drupalPostForm('block/add/basic', $edit, 'Save');
 
     // Check that the block exists in the database.
     $blocks = \Drupal::entityQuery('block_content')->condition('info', $edit['info[0][value]'])->execute();
@@ -51,7 +51,7 @@ public function testPageEdit() {
     $edit[$title_key] = $this->randomMachineName(8);
     $edit[$body_key] = $this->randomMachineName(16);
     // Stay on the current page, without reloading.
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Edit the same block, creating a new revision.
     $this->drupalGet("block/" . $block->id());
@@ -59,7 +59,7 @@ public function testPageEdit() {
     $edit['info[0][value]'] = $this->randomMachineName(8);
     $edit[$body_key] = $this->randomMachineName(16);
     $edit['revision'] = TRUE;
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Ensure that the block revision has been created.
     \Drupal::entityTypeManager()->getStorage('block_content')->resetCache([$block->id()]);
diff --git a/core/modules/block_content/tests/src/Functional/Views/BlockContentWizardTest.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentWizardTest.php
index 7e8f03727ed6..4c2fbcabc56d 100644
--- a/core/modules/block_content/tests/src/Functional/Views/BlockContentWizardTest.php
+++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentWizardTest.php
@@ -40,7 +40,7 @@ public function testViewAddBlockContent() {
     $view['description'] = $this->randomMachineName(16);
     $view['page[create]'] = FALSE;
     $view['show[wizard_key]'] = 'block_content';
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     $view_storage_controller = $this->container->get('entity_type.manager')->getStorage('view');
     /** @var \Drupal\views\Entity\View $view */
diff --git a/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php b/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php
index ee2bfedb4703..0ac6adc115ff 100644
--- a/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php
+++ b/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php
@@ -134,16 +134,16 @@ protected function createBookNode($book_nid, $parent = NULL) {
     $edit['book[bid]'] = $book_nid;
 
     if ($parent !== NULL) {
-      $this->drupalPostForm('node/add/book', $edit, t('Change book (update list of parents)'));
+      $this->drupalPostForm('node/add/book', $edit, 'Change book (update list of parents)');
 
       $edit['book[pid]'] = $parent;
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       // Make sure the parent was flagged as having children.
       $parent_node = \Drupal::entityTypeManager()->getStorage('node')->loadUnchanged($parent);
       $this->assertFalse(empty($parent_node->book['has_children']), 'Parent node is marked as having children');
     }
     else {
-      $this->drupalPostForm('node/add/book', $edit, t('Save'));
+      $this->drupalPostForm('node/add/book', $edit, 'Save');
     }
 
     // Check to make sure the book node was created.
diff --git a/core/modules/book/tests/src/Functional/BookContentModerationTest.php b/core/modules/book/tests/src/Functional/BookContentModerationTest.php
index 167e2363401a..b792ab9e7bc9 100644
--- a/core/modules/book/tests/src/Functional/BookContentModerationTest.php
+++ b/core/modules/book/tests/src/Functional/BookContentModerationTest.php
@@ -82,33 +82,33 @@ public function testBookWithPendingRevisions() {
       'title[0][value]' => $this->randomString(),
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm('node/add/book', $edit, t('Save'));
+    $this->drupalPostForm('node/add/book', $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $this->assertNotEmpty($node);
 
     $edit = [
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->pageTextNotContains('You can only change the book outline for the published version of this content.');
 
     // Create a book draft with no changes, then publish it.
     $edit = [
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $book_1->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $book_1->id() . '/edit', $edit, 'Save');
     $this->assertSession()->pageTextNotContains('You can only change the book outline for the published version of this content.');
     $edit = [
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm('node/' . $book_1->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $book_1->id() . '/edit', $edit, 'Save');
 
     // Try to move Node 2 to a different parent.
     $edit = [
       'book[pid]' => $book_1_nodes[3]->id(),
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, 'Save');
 
     $this->assertSession()->pageTextContains('You can only change the book outline for the published version of this content.');
 
@@ -122,7 +122,7 @@ public function testBookWithPendingRevisions() {
       'book[bid]' => $book_2->id(),
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, 'Save');
 
     $this->assertSession()->pageTextContains('You can only change the book outline for the published version of this content.');
 
@@ -136,7 +136,7 @@ public function testBookWithPendingRevisions() {
       'book[weight]' => 2,
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, 'Save');
 
     $this->assertSession()->pageTextContains('You can only change the book outline for the published version of this content.');
 
@@ -150,7 +150,7 @@ public function testBookWithPendingRevisions() {
     $edit = [
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $book_1_nodes[1]->id() . '/edit', $edit, 'Save');
 
     $this->assertSession()->pageTextNotContains('You can only change the book outline for the published version of this content.');
   }
diff --git a/core/modules/book/tests/src/Functional/BookTest.php b/core/modules/book/tests/src/Functional/BookTest.php
index 7daf14c0a897..6e97868a3bde 100644
--- a/core/modules/book/tests/src/Functional/BookTest.php
+++ b/core/modules/book/tests/src/Functional/BookTest.php
@@ -161,7 +161,7 @@ public function testEmptyBook() {
 
     // Log in as a user with access to the book outline and save the form.
     $this->drupalLogin($this->adminUser);
-    $this->drupalPostForm('admin/structure/book/' . $book->id(), [], t('Save book pages'));
+    $this->drupalPostForm('admin/structure/book/' . $book->id(), [], 'Save book pages');
     $this->assertText('Updated book ' . $book->label() . '.');
   }
 
@@ -214,7 +214,7 @@ public function testBook() {
     $other_book = $this->createBookNode('new');
     $node = $this->createBookNode($book->id());
     $edit = ['book[bid]' => $other_book->id()];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     $this->drupalLogout();
     $this->drupalLogin($this->webUser);
@@ -297,7 +297,7 @@ public function testBookNavigationBlock() {
     // Give anonymous users the permission 'node test view'.
     $edit = [];
     $edit[RoleInterface::ANONYMOUS_ID . '[node test view]'] = TRUE;
-    $this->drupalPostForm('admin/people/permissions/' . RoleInterface::ANONYMOUS_ID, $edit, t('Save permissions'));
+    $this->drupalPostForm('admin/people/permissions/' . RoleInterface::ANONYMOUS_ID, $edit, 'Save permissions');
     $this->assertText('The changes have been saved.', "Permission 'node test view' successfully assigned to anonymous users.");
 
     // Test correct display of the block.
@@ -395,7 +395,7 @@ public function testNavigationBlockOnAccessModuleInstalled() {
     // Give anonymous users the permission 'node test view'.
     $edit = [];
     $edit[RoleInterface::ANONYMOUS_ID . '[node test view]'] = TRUE;
-    $this->drupalPostForm('admin/people/permissions/' . RoleInterface::ANONYMOUS_ID, $edit, t('Save permissions'));
+    $this->drupalPostForm('admin/people/permissions/' . RoleInterface::ANONYMOUS_ID, $edit, 'Save permissions');
     $this->assertText('The changes have been saved.', "Permission 'node test view' successfully assigned to anonymous users.");
 
     // Create a book.
@@ -430,7 +430,7 @@ public function testBookDelete() {
     $this->assertSession()->statusCodeEquals(403);
 
     // Ensure that a child book node can be deleted.
-    $this->drupalPostForm('node/' . $nodes[4]->id() . '/outline/remove', $edit, t('Remove'));
+    $this->drupalPostForm('node/' . $nodes[4]->id() . '/outline/remove', $edit, 'Remove');
     $node_storage->resetCache([$nodes[4]->id()]);
     $node4 = $node_storage->load($nodes[4]->id());
     $this->assertTrue(empty($node4->book), 'Deleting child book node properly allowed.');
@@ -442,7 +442,7 @@ public function testBookDelete() {
     // Delete all child book nodes and retest top-level node deletion.
     $node_storage->delete($nodes);
 
-    $this->drupalPostForm('node/' . $this->book->id() . '/outline/remove', $edit, t('Remove'));
+    $this->drupalPostForm('node/' . $this->book->id() . '/outline/remove', $edit, 'Remove');
     $node_storage->resetCache([$this->book->id()]);
     $node = $node_storage->load($this->book->id());
     $this->assertTrue(empty($node->book), 'Deleting childless top-level book node properly allowed.');
@@ -453,7 +453,7 @@ public function testBookDelete() {
     $this->drupalGet($this->book->toUrl('delete-form'));
     $this->assertRaw(t('%title is part of a book outline, and has associated child pages. If you proceed with deletion, the child pages will be relocated automatically.', ['%title' => $this->book->label()]));
     // Delete parent, and visit a child page.
-    $this->drupalPostForm($this->book->toUrl('delete-form'), [], t('Delete'));
+    $this->drupalPostForm($this->book->toUrl('delete-form'), [], 'Delete');
     $this->drupalGet($nodes[0]->toUrl());
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText($nodes[0]->label());
@@ -487,7 +487,7 @@ public function testBookOutline() {
 
     $edit = [];
     $edit['book[bid]'] = '1';
-    $this->drupalPostForm('node/' . $empty_book->id() . '/outline', $edit, t('Add to book outline'));
+    $this->drupalPostForm('node/' . $empty_book->id() . '/outline', $edit, 'Add to book outline');
     $node = \Drupal::entityTypeManager()->getStorage('node')->load($empty_book->id());
     // Test the book array.
     $this->assertEqual($node->book['nid'], $empty_book->id());
@@ -510,7 +510,7 @@ public function testBookOutline() {
     $node = $this->drupalCreateNode(['type' => 'book']);
     $edit = [];
     $edit['book[bid]'] = $node->id();
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $node = \Drupal::entityTypeManager()->getStorage('node')->load($node->id());
 
     // Test the book array.
@@ -705,7 +705,7 @@ public function testBookNavigationBlockOnUnpublishedBook() {
 
     // Unpublish book node.
     $edit = ['status[value]' => FALSE];
-    $this->drupalPostForm('node/' . $this->book->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $this->book->id() . '/edit', $edit, 'Save');
 
     // Test node page.
     $this->drupalGet('node/' . $this->book->id());
diff --git a/core/modules/book/tests/src/Functional/BookTestTrait.php b/core/modules/book/tests/src/Functional/BookTestTrait.php
index 00a9e410432a..ba56f12d63e3 100644
--- a/core/modules/book/tests/src/Functional/BookTestTrait.php
+++ b/core/modules/book/tests/src/Functional/BookTestTrait.php
@@ -191,16 +191,16 @@ public function createBookNode($book_nid, $parent = NULL, $edit = []) {
     $edit['book[bid]'] = $book_nid;
 
     if ($parent !== NULL) {
-      $this->drupalPostForm('node/add/book', $edit, t('Change book (update list of parents)'));
+      $this->drupalPostForm('node/add/book', $edit, 'Change book (update list of parents)');
 
       $edit['book[pid]'] = $parent;
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       // Make sure the parent was flagged as having children.
       $parent_node = \Drupal::entityTypeManager()->getStorage('node')->loadUnchanged($parent);
       $this->assertFalse(empty($parent_node->book['has_children']), 'Parent node is marked as having children');
     }
     else {
-      $this->drupalPostForm('node/add/book', $edit, t('Save'));
+      $this->drupalPostForm('node/add/book', $edit, 'Save');
     }
 
     // Check to make sure the book node was created.
diff --git a/core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php b/core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php
index b6347b646c65..5f3019609230 100644
--- a/core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php
+++ b/core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php
@@ -121,16 +121,16 @@ protected function createBookNode($book_nid, $parent = NULL) {
     $edit['book[bid]'] = $book_nid;
 
     if ($parent !== NULL) {
-      $this->drupalPostForm('node/add/book', $edit, t('Change book (update list of parents)'));
+      $this->drupalPostForm('node/add/book', $edit, 'Change book (update list of parents)');
 
       $edit['book[pid]'] = $parent;
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       // Make sure the parent was flagged as having children.
       $parent_node = \Drupal::entityTypeManager()->getStorage('node')->loadUnchanged($parent);
       $this->assertFalse(empty($parent_node->book['has_children']), 'Parent node is marked as having children');
     }
     else {
-      $this->drupalPostForm('node/add/book', $edit, t('Save'));
+      $this->drupalPostForm('node/add/book', $edit, 'Save');
     }
 
     // Check to make sure the book node was created.
diff --git a/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php b/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php
index 4d4094692fc6..645aa26007b7 100644
--- a/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php
+++ b/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php
@@ -78,7 +78,7 @@ public function testExistingFormat() {
     $edit = [
       'editor[editor]' => 'ckeditor',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->assertRaw(t('You must configure the selected text editor.'));
 
     // Ensure the CKEditor editor returns the expected default settings.
@@ -144,7 +144,7 @@ public function testExistingFormat() {
     $this->assertCount(1, $styles_textarea, 'The "styles" textarea exists.');
 
     // Submit the form to save the selection of CKEditor as the chosen editor.
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
 
     // Ensure an Editor object exists now, with the proper settings.
     $expected_settings = $expected_default_settings;
@@ -158,7 +158,7 @@ public function testExistingFormat() {
     $edit = [
       'editor[settings][plugins][stylescombo][styles]' => "h1.title|Title\np.callout|Callout\n\n",
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $expected_settings['plugins']['stylescombo']['styles'] = "h1.title|Title\np.callout|Callout\n\n";
     $editor = Editor::load('filtered_html');
     $this->assertInstanceOf(Editor::class, $editor);
@@ -175,7 +175,7 @@ public function testExistingFormat() {
     $edit = [
       'editor[settings][toolbar][button_groups]' => json_encode($expected_settings['toolbar']['rows']),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $editor = Editor::load('filtered_html');
     $this->assertInstanceOf(Editor::class, $editor);
     $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
@@ -213,7 +213,7 @@ public function testExistingFormat() {
     $edit = [
       'editor[settings][plugins][llama_contextual_and_button][ultra_llama_mode]' => '1',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->drupalGet('admin/config/content/formats/manage/filtered_html');
     $ultra_llama_mode_checkbox = $this->xpath('//input[@type="checkbox" and @name="editor[settings][plugins][llama_contextual_and_button][ultra_llama_mode]" and @checked="checked"]');
     $this->assertCount(1, $ultra_llama_mode_checkbox, 'The "Ultra llama mode" checkbox exists and is checked.');
@@ -289,7 +289,7 @@ public function testNewFormat() {
 
     // Submit the form to create both a new text format and an associated text
     // editor.
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
 
     // Ensure a FilterFormat object exists now.
     $filter_format = FilterFormat::load('amazing_format');
diff --git a/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php b/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php
index 0afbd741bedf..a2dc630dc889 100644
--- a/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php
+++ b/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php
@@ -82,7 +82,7 @@ public function testExistingFormat() {
     $edit = [
       'editor[settings][plugins][stylescombo][styles]' => "h1.title|Title\np.callout|Callout\ndrupal-entity.has-dashes|Allowing Dashes\n\n",
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $expected_settings['plugins']['stylescombo']['styles'] = "h1.title|Title\np.callout|Callout\ndrupal-entity.has-dashes|Allowing Dashes\n\n";
     $editor = Editor::load($this->format);
     $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
@@ -94,7 +94,7 @@ public function testExistingFormat() {
     $edit = [
       'editor[settings][plugins][stylescombo][styles]' => "h1.title|Title\np.callout|Title\n\n",
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->assertRaw(t('Each style must have a unique label.'));
     $editor = Editor::load($this->format);
     $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
diff --git a/core/modules/ckeditor/tests/src/Functional/CKEditorToolbarButtonTest.php b/core/modules/ckeditor/tests/src/Functional/CKEditorToolbarButtonTest.php
index 1ce136a905df..dd3ef37b8e26 100644
--- a/core/modules/ckeditor/tests/src/Functional/CKEditorToolbarButtonTest.php
+++ b/core/modules/ckeditor/tests/src/Functional/CKEditorToolbarButtonTest.php
@@ -62,10 +62,10 @@ public function testImageButtonDisplay() {
     // Install the Arabic language (which is RTL) and configure as the default.
     $edit = [];
     $edit['predefined_langcode'] = 'ar';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     $edit = ['site_default_language' => 'ar'];
-    $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language', $edit, 'Save configuration');
     // Once the default language is changed, go to the tested text format
     // configuration page.
     $this->drupalGet('admin/config/content/formats/manage/full_html');
diff --git a/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php b/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
index 8249604e37f5..8d7b2bb3ce54 100644
--- a/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
+++ b/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
@@ -49,7 +49,7 @@ public function testValidColorConfigSchema() {
     $settings_path = 'admin/appearance/settings/bartik';
     $edit['scheme'] = '';
     $edit['palette[bg]'] = '#123456';
-    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+    $this->drupalPostForm($settings_path, $edit, 'Save configuration');
   }
 
 }
diff --git a/core/modules/color/tests/src/Functional/ColorTest.php b/core/modules/color/tests/src/Functional/ColorTest.php
index 57f8ba73a8a0..4b9fcaa4fa47 100644
--- a/core/modules/color/tests/src/Functional/ColorTest.php
+++ b/core/modules/color/tests/src/Functional/ColorTest.php
@@ -116,7 +116,7 @@ public function _testColor($theme, $test_values) {
     $this->assertSession()->pageTextContainsOnce('Color set');
     $edit['scheme'] = '';
     $edit[$test_values['palette_input']] = '#123456';
-    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+    $this->drupalPostForm($settings_path, $edit, 'Save configuration');
 
     $this->drupalGet('<front>');
     $stylesheets = $this->config('color.theme.' . $theme)->get('stylesheets');
@@ -130,7 +130,7 @@ public function _testColor($theme, $test_values) {
     $this->drupalGet($settings_path);
     $this->assertSession()->statusCodeEquals(200);
     $edit['scheme'] = $test_values['scheme'];
-    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+    $this->drupalPostForm($settings_path, $edit, 'Save configuration');
 
     $this->drupalGet('<front>');
     $stylesheets = $this->config('color.theme.' . $theme)->get('stylesheets');
@@ -168,7 +168,7 @@ public function testValidColor() {
 
     foreach ($this->colorTests as $color => $is_valid) {
       $edit['palette[bg]'] = $color;
-      $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+      $this->drupalPostForm($settings_path, $edit, 'Save configuration');
 
       if ($is_valid) {
         $this->assertText('The configuration options have been saved.');
@@ -188,7 +188,7 @@ public function testLogoSettingOverride() {
       'default_logo' => FALSE,
       'logo_path' => 'core/misc/druplicon.png',
     ];
-    $this->drupalPostForm('admin/appearance/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance/settings', $edit, 'Save configuration');
 
     // Ensure that the overridden logo is present in Bartik, which is colorable.
     $this->drupalGet('admin/appearance/settings/bartik');
@@ -216,7 +216,7 @@ public function testOverrideAndResetScheme() {
     // Log in and set the color scheme to 'slate'.
     $this->drupalLogin($this->bigUser);
     $edit['scheme'] = 'slate';
-    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+    $this->drupalPostForm($settings_path, $edit, 'Save configuration');
 
     // Visit the homepage and ensure color changes.
     $this->drupalLogout();
@@ -229,7 +229,7 @@ public function testOverrideAndResetScheme() {
     // Log in and set the color scheme back to default (delete config).
     $this->drupalLogin($this->bigUser);
     $edit['scheme'] = 'default';
-    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+    $this->drupalPostForm($settings_path, $edit, 'Save configuration');
 
     // Log out and ensure there is no color and we have the original logo.
     $this->drupalLogout();
diff --git a/core/modules/comment/tests/src/Functional/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
index 6807c551a246..f1be260962db 100644
--- a/core/modules/comment/tests/src/Functional/CommentAdminTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
@@ -88,7 +88,7 @@ public function testApprovalAdminInterface() {
       "comments[{$comments[0]->id()}]" => 1,
       "comments[{$comments[1]->id()}]" => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Update'));
+    $this->drupalPostForm(NULL, $edit, 'Update');
     $this->assertText('Unapproved comments (0)', 'All comments were approved.');
 
     // Delete multiple comments in one operation.
@@ -98,15 +98,15 @@ public function testApprovalAdminInterface() {
       "comments[{$comments[1]->id()}]" => 1,
       "comments[{$anonymous_comment4->id()}]" => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Update'));
+    $this->drupalPostForm(NULL, $edit, 'Update');
     $this->assertText('Are you sure you want to delete these comments and all their children?', 'Confirmation required.');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertText('No comments available.', 'All comments were deleted.');
     // Test message when no comments selected.
     $edit = [
       'operation' => 'delete',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Update'));
+    $this->drupalPostForm(NULL, $edit, 'Update');
     $this->assertText('Select one or more comments to perform the update on.');
 
     // Make sure the label of unpublished node is not visible on listing page.
@@ -276,12 +276,12 @@ public function testCommentedTranslationDeletion() {
       "comments[{$comment1->id()}]" => 1,
       "comments[{$comment2->id()}]" => 1,
     ];
-    $this->drupalPostForm('admin/content/comment', $edit, t('Update'));
+    $this->drupalPostForm('admin/content/comment', $edit, 'Update');
     $this->assertRaw(new FormattableMarkup('@label (Original translation) - <em>The following comment translations will be deleted:</em>', ['@label' => $comment1->label()]));
     $this->assertRaw(new FormattableMarkup('@label (Original translation) - <em>The following comment translations will be deleted:</em>', ['@label' => $comment2->label()]));
     $this->assertText('English');
     $this->assertText('Urdu');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $after_count = $count_query->execute();
     $this->assertEqual($after_count, $before_count, 'No comment or translation found.');
   }
diff --git a/core/modules/comment/tests/src/Functional/CommentAnonymousTest.php b/core/modules/comment/tests/src/Functional/CommentAnonymousTest.php
index c0641377d351..966eb0e3adde 100644
--- a/core/modules/comment/tests/src/Functional/CommentAnonymousTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentAnonymousTest.php
@@ -47,7 +47,7 @@ public function testAnonymous() {
     $body = 'comment body with skip comment approval';
     $edit['subject[0][value]'] = $title;
     $edit['comment_body[0][value]'] = $body;
-    $this->drupalPostForm($this->node->toUrl(), $edit, t('Preview'));
+    $this->drupalPostForm($this->node->toUrl(), $edit, 'Preview');
     // Cannot use assertRaw here since both title and body are in the form.
     $preview = (string) $this->cssSelect('.preview')[0]->getHtml();
     $this->assertStringContainsString($title, $preview, 'Anonymous user can preview comment title.');
@@ -60,7 +60,7 @@ public function testAnonymous() {
     $body = 'comment body without skip comment approval';
     $edit['subject[0][value]'] = $title;
     $edit['comment_body[0][value]'] = $body;
-    $this->drupalPostForm($this->node->toUrl(), $edit, t('Preview'));
+    $this->drupalPostForm($this->node->toUrl(), $edit, 'Preview');
     // Cannot use assertRaw here since both title and body are in the form.
     $preview = (string) $this->cssSelect('.preview')[0]->getHtml();
     $this->assertStringContainsString($title, $preview, 'Anonymous user can preview comment title.');
@@ -76,7 +76,7 @@ public function testAnonymous() {
       'name' => $this->adminUser->getAccountName(),
       'comment_body[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', $edit, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', $edit, 'Save');
     $this->assertRaw(t('The name you used (%name) belongs to a registered user.', [
       '%name' => $this->adminUser->getAccountName(),
     ]));
@@ -109,7 +109,7 @@ public function testAnonymous() {
       'subject[0][value]' => $this->randomMachineName(),
       'comment_body[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', $edit, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', $edit, 'Save');
     $this->assertRaw(t('The name you used (%name) belongs to a registered user.', [
       '%name' => $this->adminUser->getAccountName(),
     ]));
diff --git a/core/modules/comment/tests/src/Functional/CommentFieldsTest.php b/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
index 4aaf2d2b1751..e52ccc349795 100644
--- a/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
@@ -161,7 +161,7 @@ public function testCommentFieldCreate() {
 
     // Try to save the comment field without selecting a comment type.
     $edit = [];
-    $this->drupalPostForm('admin/config/people/accounts/fields/user.user.field_user_comment/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm('admin/config/people/accounts/fields/user.user.field_user_comment/storage', $edit, 'Save field settings');
     // We should get an error message.
     $this->assertText('An illegal choice has been detected. Please contact the site administrator.');
 
@@ -178,7 +178,7 @@ public function testCommentFieldCreate() {
     $edit = [
       'settings[comment_type]' => 'user_comment_type',
     ];
-    $this->drupalPostForm('admin/config/people/accounts/fields/user.user.field_user_comment/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm('admin/config/people/accounts/fields/user.user.field_user_comment/storage', $edit, 'Save field settings');
     // We shouldn't get an error message.
     $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
   }
@@ -207,20 +207,20 @@ public function testCommentInstallAfterContentModule() {
     // Uninstall the comment module.
     $edit = [];
     $edit['uninstall[comment]'] = TRUE;
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->rebuildContainer();
     $this->assertFalse($this->container->get('module_handler')->moduleExists('comment'), 'Comment module uninstalled.');
 
     // Install core content type module (book).
     $edit = [];
     $edit['modules[book][enable]'] = 'book';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // Now install the comment module.
     $edit = [];
     $edit['modules[comment][enable]'] = 'comment';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->rebuildContainer();
     $this->assertTrue($this->container->get('module_handler')->moduleExists('comment'), 'Comment module enabled.');
 
diff --git a/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php b/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
index bfd03eef2430..fb7a9c8aeda5 100644
--- a/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
@@ -288,7 +288,7 @@ public function testAutoFilledHtmlSubject() {
       'comment_body[0][value]' => $body_text1,
       'comment_body[0][format]' => 'filtered_html',
     ];
-    $this->drupalPostForm(NULL, $edit1, t('Save'));
+    $this->drupalPostForm(NULL, $edit1, 'Save');
     $this->assertEqual('Hello World', Comment::load(1)->getSubject());
 
     // If there's nothing other than HTML, the subject should be '(No subject)'.
@@ -297,7 +297,7 @@ public function testAutoFilledHtmlSubject() {
       'comment_body[0][value]' => $body_text2,
       'comment_body[0][format]' => 'filtered_html',
     ];
-    $this->drupalPostForm(NULL, $edit2, t('Save'));
+    $this->drupalPostForm(NULL, $edit2, 'Save');
     $this->assertEqual('(No subject)', Comment::load(2)->getSubject());
   }
 
diff --git a/core/modules/comment/tests/src/Functional/CommentLanguageTest.php b/core/modules/comment/tests/src/Functional/CommentLanguageTest.php
index 663158af6b5a..5df4c5f181e8 100644
--- a/core/modules/comment/tests/src/Functional/CommentLanguageTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentLanguageTest.php
@@ -60,11 +60,11 @@ protected function setUp(): void {
 
     // Add language.
     $edit = ['predefined_langcode' => 'fr'];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Set "Article" content type to use multilingual support.
     $edit = ['language_configuration[language_alterable]' => TRUE];
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
 
     // Enable content language negotiation UI.
     \Drupal::state()->set('language_test.content_language_type', TRUE);
@@ -78,12 +78,12 @@ protected function setUp(): void {
       'language_content[enabled][language-url]' => TRUE,
       'language_content[enabled][language-interface]' => FALSE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Change user language preference, this way interface language is always
     // French no matter what path prefix the URLs have.
     $edit = ['preferred_langcode' => 'fr'];
-    $this->drupalPostForm("user/" . $admin_user->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $admin_user->id() . "/edit", $edit, 'Save');
 
     // Create comment field on article.
     $this->addDefaultCommentField('node', 'article');
@@ -115,7 +115,7 @@ public function testCommentLanguage() {
         'langcode[0][value]' => $node_langcode,
         'comment[0][status]' => CommentItemInterface::OPEN,
       ];
-      $this->drupalPostForm("node/add/article", $edit, t('Save'));
+      $this->drupalPostForm("node/add/article", $edit, 'Save');
       $node = $this->drupalGetNodeByTitle($title);
 
       $prefixes = $this->config('language.negotiation')->get('url.prefixes');
@@ -127,8 +127,8 @@ public function testCommentLanguage() {
           'subject[0][value]' => $this->randomMachineName(),
           'comment_body[0][value]' => $comment_values[$node_langcode][$langcode],
         ];
-        $this->drupalPostForm($prefix . 'node/' . $node->id(), $edit, t('Preview'));
-        $this->drupalPostForm(NULL, $edit, t('Save'));
+        $this->drupalPostForm($prefix . 'node/' . $node->id(), $edit, 'Preview');
+        $this->drupalPostForm(NULL, $edit, 'Save');
 
         // Check that comment language matches the current content language.
         $cids = \Drupal::entityQuery('comment')
diff --git a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
index ff6d7858cdcc..3b654c9f6f44 100644
--- a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
@@ -150,19 +150,19 @@ public function postComment(EntityInterface $entity, $comment, $subject = '', $c
       case DRUPAL_REQUIRED:
         // Preview required so no save button should be found.
         $this->assertSession()->buttonNotExists(t('Save'));
-        $this->drupalPostForm(NULL, $edit, t('Preview'));
+        $this->drupalPostForm(NULL, $edit, 'Preview');
         // Don't break here so that we can test post-preview field presence and
         // function below.
       case DRUPAL_OPTIONAL:
         $this->assertSession()->buttonExists(t('Preview'));
         $this->assertSession()->buttonExists(t('Save'));
-        $this->drupalPostForm(NULL, $edit, t('Save'));
+        $this->drupalPostForm(NULL, $edit, 'Save');
         break;
 
       case DRUPAL_DISABLED:
         $this->assertSession()->buttonNotExists(t('Preview'));
         $this->assertSession()->buttonExists(t('Save'));
-        $this->drupalPostForm(NULL, $edit, t('Save'));
+        $this->drupalPostForm(NULL, $edit, 'Save');
         break;
     }
     $match = [];
@@ -235,10 +235,10 @@ public function performCommentOperation($comment, $operation, $approval = FALSE)
     $edit = [];
     $edit['operation'] = $operation;
     $edit['comments[' . $comment->id() . ']'] = TRUE;
-    $this->drupalPostForm('admin/content/comment' . ($approval ? '/approval' : ''), $edit, t('Update'));
+    $this->drupalPostForm('admin/content/comment' . ($approval ? '/approval' : ''), $edit, 'Update');
 
     if ($operation == 'delete') {
-      $this->drupalPostForm(NULL, [], t('Delete'));
+      $this->drupalPostForm(NULL, [], 'Delete');
       $this->assertRaw(\Drupal::translation()->formatPlural(1, 'Deleted 1 comment.', 'Deleted @count comments.'));
     }
     else {
@@ -415,7 +415,7 @@ public function testCommentFunctionality() {
       'default_value_input[comment][0][status]' => CommentItemInterface::CLOSED,
       'settings[anonymous]' => CommentInterface::ANONYMOUS_MAY_CONTACT,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
     $this->drupalGet('entity_test/structure/entity_test/fields/entity_test.entity_test.comment');
     $this->assertSession()->checkboxNotChecked('edit-default-value-input-comment-0-status-0');
     $this->assertSession()->checkboxChecked('edit-default-value-input-comment-0-status-1');
@@ -478,7 +478,7 @@ public function testCommentFunctionality() {
     $this->assertSession()->fieldNotExists('comment_body[0][value]');
     // Set subject field to autogenerate it.
     $edit = ['subject[0][value]' => ''];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
   }
 
   /**
diff --git a/core/modules/comment/tests/src/Functional/CommentPagerTest.php b/core/modules/comment/tests/src/Functional/CommentPagerTest.php
index 3934e7035548..83cbaca0d3df 100644
--- a/core/modules/comment/tests/src/Functional/CommentPagerTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentPagerTest.php
@@ -347,11 +347,11 @@ public function testTwoPagers() {
     $this->assertText('Pager ID: 1');
     $this->drupalPostForm(NULL, [], 'comment_settings_edit');
     // Change default pager to 2.
-    $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 2], t('Save'));
+    $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 2], 'Save');
     $this->assertText('Pager ID: 2');
     // Revert the changes.
     $this->drupalPostForm(NULL, [], 'comment_settings_edit');
-    $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 0], t('Save'));
+    $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 0], 'Save');
     $this->assertNoText('Pager ID: 0', 'No summary for standard pager');
 
     $this->drupalLogin($this->adminUser);
diff --git a/core/modules/comment/tests/src/Functional/CommentPreviewTest.php b/core/modules/comment/tests/src/Functional/CommentPreviewTest.php
index f11f39ea7b2f..6269bd3dbcce 100644
--- a/core/modules/comment/tests/src/Functional/CommentPreviewTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentPreviewTest.php
@@ -49,11 +49,11 @@ public function testCommentPreview() {
     $edit = [];
     $edit['subject[0][value]'] = $this->randomMachineName(8);
     $edit['comment_body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/' . $this->node->id(), $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $this->node->id(), $edit, 'Preview');
     $this->assertSession()->assertEscaped('<em>' . $this->webUser->id() . '</em>');
 
     \Drupal::state()->set('user_hooks_test_user_format_name_alter_safe', TRUE);
-    $this->drupalPostForm('node/' . $this->node->id(), $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $this->node->id(), $edit, 'Preview');
     $this->assertInstanceOf(MarkupInterface::class, $this->webUser->getDisplayName());
     $this->assertSession()->assertNoEscaped('<em>' . $this->webUser->id() . '</em>');
     $this->assertRaw('<em>' . $this->webUser->id() . '</em>');
@@ -61,10 +61,10 @@ public function testCommentPreview() {
     // Add a user picture.
     $image = current($this->drupalGetTestFiles('image'));
     $user_edit['files[user_picture_0]'] = \Drupal::service('file_system')->realpath($image->uri);
-    $this->drupalPostForm('user/' . $this->webUser->id() . '/edit', $user_edit, t('Save'));
+    $this->drupalPostForm('user/' . $this->webUser->id() . '/edit', $user_edit, 'Save');
 
     // As the web user, fill in the comment form and preview the comment.
-    $this->drupalPostForm('node/' . $this->node->id(), $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $this->node->id(), $edit, 'Preview');
 
     // Check that the preview is displaying the title and body.
     $this->assertSession()->titleEquals('Preview comment | Drupal');
@@ -98,7 +98,7 @@ public function testCommentPreviewDuplicateSubmission() {
     $edit = [];
     $edit['subject[0][value]'] = $this->randomMachineName(8);
     $edit['comment_body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/' . $this->node->id(), $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $this->node->id(), $edit, 'Preview');
 
     // Check that the preview is displaying the title and body.
     $this->assertSession()->titleEquals('Preview comment | Drupal');
@@ -152,7 +152,7 @@ public function testCommentEditPreviewSave() {
     $expected_form_date = $date->format('Y-m-d');
     $expected_form_time = $date->format('H:i:s');
     $comment = $this->postComment($this->node, $edit['subject[0][value]'], $edit['comment_body[0][value]'], TRUE);
-    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $edit, t('Preview'));
+    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $edit, 'Preview');
 
     // Check that the preview is displaying the subject, comment, author and date correctly.
     $this->assertSession()->titleEquals('Preview comment | Drupal');
@@ -169,7 +169,7 @@ public function testCommentEditPreviewSave() {
     $this->assertSession()->fieldValueEquals('date[time]', $edit['date[time]']);
 
     // Check that saving a comment produces a success message.
-    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $edit, 'Save');
     $this->assertText('Your comment has been posted.', 'Comment posted.');
 
     // Check that the comment fields are correct after loading the saved comment.
@@ -187,7 +187,7 @@ public function testCommentEditPreviewSave() {
     $displayed['uid'] = current($this->xpath("//input[@id='edit-uid']"))->getValue();
     $displayed['date[date]'] = current($this->xpath("//input[@id='edit-date-date']"))->getValue();
     $displayed['date[time]'] = current($this->xpath("//input[@id='edit-date-time']"))->getValue();
-    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $displayed, t('Save'));
+    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $displayed, 'Save');
 
     // Check that the saved comment is still correct.
     $comment_storage = \Drupal::entityTypeManager()->getStorage('comment');
@@ -207,7 +207,7 @@ public function testCommentEditPreviewSave() {
     $this->drupalLogin($web_user);
     // Web user cannot change the comment author.
     unset($edit['uid']);
-    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $user_edit, t('Save'));
+    $this->drupalPostForm('comment/' . $comment->id() . '/edit', $user_edit, 'Save');
     $comment_storage->resetCache([$comment->id()]);
     $comment_loaded = Comment::load($comment->id());
     $this->assertEqual($comment_loaded->getCreatedTime(), $expected_created_time, 'Expected date and time for comment edited.');
diff --git a/core/modules/comment/tests/src/Functional/CommentTestBase.php b/core/modules/comment/tests/src/Functional/CommentTestBase.php
index b6a5bae592ef..c265eebb5f64 100644
--- a/core/modules/comment/tests/src/Functional/CommentTestBase.php
+++ b/core/modules/comment/tests/src/Functional/CommentTestBase.php
@@ -149,19 +149,19 @@ public function postComment($entity, $comment, $subject = '', $contact = NULL, $
       case DRUPAL_REQUIRED:
         // Preview required so no save button should be found.
         $this->assertSession()->buttonNotExists(t('Save'));
-        $this->drupalPostForm(NULL, $edit, t('Preview'));
+        $this->drupalPostForm(NULL, $edit, 'Preview');
         // Don't break here so that we can test post-preview field presence and
         // function below.
       case DRUPAL_OPTIONAL:
         $this->assertSession()->buttonExists(t('Preview'));
         $this->assertSession()->buttonExists(t('Save'));
-        $this->drupalPostForm(NULL, $edit, t('Save'));
+        $this->drupalPostForm(NULL, $edit, 'Save');
         break;
 
       case DRUPAL_DISABLED:
         $this->assertSession()->buttonNotExists(t('Preview'));
         $this->assertSession()->buttonExists(t('Save'));
-        $this->drupalPostForm(NULL, $edit, t('Save'));
+        $this->drupalPostForm(NULL, $edit, 'Save');
         break;
     }
     $match = [];
@@ -227,7 +227,7 @@ public function commentExists(CommentInterface $comment = NULL, $reply = FALSE)
    *   Comment to delete.
    */
   public function deleteComment(CommentInterface $comment) {
-    $this->drupalPostForm('comment/' . $comment->id() . '/delete', [], t('Delete'));
+    $this->drupalPostForm('comment/' . $comment->id() . '/delete', [], 'Delete');
     $this->assertText('The comment and all its replies have been deleted.', 'Comment deleted.');
   }
 
@@ -361,10 +361,10 @@ public function performCommentOperation(CommentInterface $comment, $operation, $
     $edit = [];
     $edit['operation'] = $operation;
     $edit['comments[' . $comment->id() . ']'] = TRUE;
-    $this->drupalPostForm('admin/content/comment' . ($approval ? '/approval' : ''), $edit, t('Update'));
+    $this->drupalPostForm('admin/content/comment' . ($approval ? '/approval' : ''), $edit, 'Update');
 
     if ($operation == 'delete') {
-      $this->drupalPostForm(NULL, [], t('Delete'));
+      $this->drupalPostForm(NULL, [], 'Delete');
       $this->assertRaw(\Drupal::translation()->formatPlural(1, 'Deleted 1 comment.', 'Deleted @count comments.'));
     }
     else {
diff --git a/core/modules/comment/tests/src/Functional/CommentTypeTest.php b/core/modules/comment/tests/src/Functional/CommentTypeTest.php
index 9246b2d4913e..c15dd20128e6 100644
--- a/core/modules/comment/tests/src/Functional/CommentTypeTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTypeTest.php
@@ -75,7 +75,7 @@ public function testCommentTypeCreation() {
       'description' => '',
       'target_entity_type_id' => 'node',
     ];
-    $this->drupalPostForm('admin/structure/comment/types/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/comment/types/add', $edit, 'Save');
     $comment_type = CommentType::load('foo');
     $this->assertInstanceOf(CommentType::class, $comment_type);
 
@@ -89,7 +89,7 @@ public function testCommentTypeCreation() {
     $this->assertText('Target entity type');
     // Save the form and ensure the entity-type value is preserved even though
     // the field isn't present.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     \Drupal::entityTypeManager()->getStorage('comment_type')->resetCache(['foo']);
     $comment_type = CommentType::load('foo');
     $this->assertEqual($comment_type->getTargetEntityTypeId(), 'node');
@@ -109,7 +109,7 @@ public function testCommentTypeEditing() {
     $edit = [
       'label' => 'Bar',
     ];
-    $this->drupalPostForm('admin/structure/comment/manage/comment', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/comment/manage/comment', $edit, 'Save');
 
     $this->drupalGet('admin/structure/comment');
     $this->assertRaw('Bar');
@@ -119,9 +119,9 @@ public function testCommentTypeEditing() {
     $this->assertCount(1, $this->cssSelect('tr#comment-body'), 'Body field exists.');
 
     // Remove the body field.
-    $this->drupalPostForm('admin/structure/comment/manage/comment/fields/comment.comment.comment_body/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/comment/manage/comment/fields/comment.comment.comment_body/delete', [], 'Delete');
     // Resave the settings for this type.
-    $this->drupalPostForm('admin/structure/comment/manage/comment', [], t('Save'));
+    $this->drupalPostForm('admin/structure/comment/manage/comment', [], 'Save');
     // Check that the body field doesn't exist.
     $this->drupalGet('admin/structure/comment/manage/comment/fields');
     $this->assertCount(0, $this->cssSelect('tr#comment-body'), 'Body field does not exist.');
@@ -188,7 +188,7 @@ public function testCommentTypeDeletion() {
     }
 
     // Delete the comment type.
-    $this->drupalPostForm('admin/structure/comment/manage/' . $type->id() . '/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/comment/manage/' . $type->id() . '/delete', [], 'Delete');
     $this->assertNull(CommentType::load($type->id()), 'Comment type deleted.');
     $this->assertRaw(t('The comment type %label has been deleted.', ['%label' => $type->label()]));
   }
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php
index 2e8488dff4c2..b8ace9690e17 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php
@@ -69,7 +69,7 @@ public function testApprovalAdminInterface() {
     $this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', [
       'name' => $author_name,
       'comment_body[0][value]' => $body,
-    ], t('Save'));
+    ], 'Save');
     $this->assertText('Your comment has been queued for review by site administrators and will be published after approval.', 'Comment requires approval.');
 
     // Get unapproved comment id.
@@ -92,7 +92,7 @@ public function testApprovalAdminInterface() {
     $edit = [];
     $edit['action'] = 'comment_publish_action';
     $edit['comment_bulk_form[0]'] = $anonymous_comment4->id();
-    $this->drupalPostForm('admin/content/comment/approval', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('admin/content/comment/approval', $edit, 'Apply to selected items');
 
     $this->assertText('Publish comment was applied to 1 item.', new FormattableMarkup('Operation "@operation" was performed on comment.', ['@operation' => 'publish']));
     $this->drupalLogout();
@@ -119,11 +119,11 @@ public function testApprovalAdminInterface() {
       "comment_bulk_form[1]" => $comments[0]->id(),
       "comment_bulk_form[0]" => $comments[1]->id(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $this->assertText('Unapproved comments (0)', 'All comments were approved.');
 
     // Test message when no comments selected.
-    $this->drupalPostForm('admin/content/comment', [], t('Apply to selected items'));
+    $this->drupalPostForm('admin/content/comment', [], 'Apply to selected items');
     $this->assertText('Select one or more comments to perform the update on.');
 
     $subject_link = $this->xpath('//table/tbody/tr/td/a[contains(@href, :href) and contains(@title, :title) and text()=:text]', [
@@ -149,9 +149,9 @@ public function testApprovalAdminInterface() {
       "comment_bulk_form[0]" => $comments[1]->id(),
       "comment_bulk_form[2]" => $anonymous_comment4->id(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $this->assertText('Are you sure you want to delete these comments and all their children?', 'Confirmation required.');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertText('No comments available.', 'All comments were deleted.');
 
     // Make sure the label of unpublished node is not visible on listing page.
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentEditTest.php b/core/modules/comment/tests/src/Functional/Views/CommentEditTest.php
index fb5f736a870f..a59ada5d1cc0 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentEditTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentEditTest.php
@@ -29,7 +29,7 @@ public function testCommentEdit() {
     $edit = [
       'comment_body[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->drupalGet('admin/content/comment');
     $this->assertText($this->adminUser->label());
   }
diff --git a/core/modules/comment/tests/src/Functional/Views/WizardTest.php b/core/modules/comment/tests/src/Functional/Views/WizardTest.php
index 81e9563e4a4e..404fd3633066 100644
--- a/core/modules/comment/tests/src/Functional/Views/WizardTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/WizardTest.php
@@ -51,7 +51,7 @@ public function testCommentWizard() {
 
     // Just triggering the saving should automatically choose a proper row
     // plugin.
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
     // Verify that the view saving was successful and the browser got redirected
     // to the edit page.
     $this->assertSession()->addressEquals('admin/structure/views/view/' . $view['id']);
@@ -60,7 +60,7 @@ public function testCommentWizard() {
     // row plugins as the select field.
 
     $this->drupalGet('admin/structure/views/add');
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Update "of type" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Update "of type" choice');
 
     // Check for available options of the row plugin.
     $expected_options = ['entity:comment', 'fields'];
@@ -72,7 +72,7 @@ public function testCommentWizard() {
     $this->assertEquals($expected_options, $actual_options);
 
     $view['id'] = strtolower($this->randomMachineName(16));
-    $this->drupalPostForm(NULL, $view, t('Save and edit'));
+    $this->drupalPostForm(NULL, $view, 'Save and edit');
     // Verify that the view saving was successful and the browser got redirected
     // to the edit page.
     $this->assertSession()->addressEquals('admin/structure/views/view/' . $view['id']);
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php b/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php
index 0026c8b443ab..cb4298eeb086 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php
@@ -60,7 +60,7 @@ public function testFormsWithOverrides() {
     $edit = [
       'label' => $edited_label,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->drupalGet('admin/structure/config_test');
     $this->assertNoText($overridden_label);
     $this->assertText($edited_label);
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php b/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php
index 0fe1c35f7571..c6e052f686ad 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php
@@ -57,7 +57,7 @@ public function testListUI() {
       'id' => 'antilop',
       'langcode' => 'hu',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     // Ensure that operations for editing the Hungarian entity appear in English.
     $this->assertSession()->linkByHrefExists('admin/structure/config_test/manage/antilop');
 
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityListTest.php b/core/modules/config/tests/src/Functional/ConfigEntityListTest.php
index ddba30c94a4b..cbde42ade1c1 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityListTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityListTest.php
@@ -201,7 +201,7 @@ public function testListUI() {
       'id' => 'antelope',
       'weight' => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Ensure that the entity's sort method was called.
     $this->assertTrue(\Drupal::state()->get('config_entity_sort'), 'ConfigTest::sort() was called.');
@@ -218,7 +218,7 @@ public function testListUI() {
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->titleEquals('Edit Antelope | Drupal');
     $edit = ['label' => 'Albatross', 'id' => 'albatross'];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Confirm that the user is returned to the listing, and verify that the
     // text of the label and machine name appears in the list (versus elsewhere
@@ -231,7 +231,7 @@ public function testListUI() {
     $this->clickLink('Delete', 1);
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->titleEquals('Are you sure you want to delete the test configuration Albatross? | Drupal');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Verify that the text of the label and machine name does not appear in
     // the list (though it may appear elsewhere on the page).
@@ -242,7 +242,7 @@ public function testListUI() {
     $this->clickLink('Delete');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->titleEquals('Are you sure you want to delete the test configuration Default? | Drupal');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Verify that the text of the label and machine name does not appear in
     // the list (though it may appear elsewhere on the page).
diff --git a/core/modules/config/tests/src/Functional/ConfigExportUITest.php b/core/modules/config/tests/src/Functional/ConfigExportUITest.php
index ce23fa14503b..6ce71759fb4b 100644
--- a/core/modules/config/tests/src/Functional/ConfigExportUITest.php
+++ b/core/modules/config/tests/src/Functional/ConfigExportUITest.php
@@ -52,7 +52,7 @@ public function testExport() {
 
     // Submit the export form and verify response. This will create a file in
     // temporary directory with the default name config.tar.gz.
-    $this->drupalPostForm('admin/config/development/configuration/full/export', [], t('Export'));
+    $this->drupalPostForm('admin/config/development/configuration/full/export', [], 'Export');
     $this->assertSession()->statusCodeEquals(200);
 
     // Test if header contains file name with hostname and timestamp.
diff --git a/core/modules/config/tests/src/Functional/ConfigFormOverrideTest.php b/core/modules/config/tests/src/Functional/ConfigFormOverrideTest.php
index 95f4e1b8cb94..fbd399a40dfc 100644
--- a/core/modules/config/tests/src/Functional/ConfigFormOverrideTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigFormOverrideTest.php
@@ -46,7 +46,7 @@ public function testFormsWithOverrides() {
     $edit = [
       'site_name' => 'Custom site name',
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
     $this->assertSession()->titleEquals('Basic site settings | ' . $overridden_name);
     $elements = $this->xpath('//input[@name="site_name"]');
     $this->assertIdentical($elements[0]->getValue(), $edit['site_name']);
diff --git a/core/modules/config/tests/src/Functional/ConfigImportAllTest.php b/core/modules/config/tests/src/Functional/ConfigImportAllTest.php
index 9e60c53fbe55..ac5d94d41b08 100644
--- a/core/modules/config/tests/src/Functional/ConfigImportAllTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigImportAllTest.php
@@ -117,7 +117,7 @@ public function testInstallUninstall() {
     }
 
     // Import the configuration thereby re-installing all the modules.
-    $this->drupalPostForm('admin/config/development/configuration', [], t('Import all'));
+    $this->drupalPostForm('admin/config/development/configuration', [], 'Import all');
     // Modules have been installed that have services.
     $this->rebuildContainer();
 
diff --git a/core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php b/core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php
index dca10e46765f..3685bce03ab7 100644
--- a/core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php
@@ -59,7 +59,7 @@ public function testInstallProfileValidation() {
     unset($core['module']['testing_config_import']);
     $sync->write('core.extension', $core);
 
-    $this->drupalPostForm('admin/config/development/configuration', [], t('Import all'));
+    $this->drupalPostForm('admin/config/development/configuration', [], 'Import all');
     $this->assertText('The configuration cannot be imported because it failed validation for the following reasons:');
     $this->assertText('Unable to uninstall the Testing config import profile since it is the install profile.');
 
@@ -74,7 +74,7 @@ public function testInstallProfileValidation() {
     $theme = $sync->read('system.theme');
     $theme['default'] = 'classy';
     $sync->write('system.theme', $theme);
-    $this->drupalPostForm('admin/config/development/configuration', [], t('Import all'));
+    $this->drupalPostForm('admin/config/development/configuration', [], 'Import all');
     $this->assertText('The configuration was imported successfully.');
     $this->rebuildContainer();
     $this->assertFalse(\Drupal::moduleHandler()->moduleExists('syslog'), 'The syslog module has been uninstalled.');
diff --git a/core/modules/config/tests/src/Functional/ConfigImportUITest.php b/core/modules/config/tests/src/Functional/ConfigImportUITest.php
index 4ef7cb1aad22..2687d89cab77 100644
--- a/core/modules/config/tests/src/Functional/ConfigImportUITest.php
+++ b/core/modules/config/tests/src/Functional/ConfigImportUITest.php
@@ -128,7 +128,7 @@ public function testImport() {
     $this->assertSession()->buttonExists('Import all');
 
     // Import and verify that both do not appear anymore.
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $this->assertNoRaw('<td>' . $name);
     $this->assertNoRaw('<td>' . $dynamic_name);
     $this->assertNoRaw('<td>core.extension');
@@ -199,7 +199,7 @@ public function testImport() {
     $this->assertRaw('<td>automated_cron.settings');
 
     // Import and verify that both do not appear anymore.
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $this->assertNoRaw('<td>core.extension');
     $this->assertNoRaw('<td>system.theme');
     $this->assertNoRaw('<td>automated_cron.settings');
@@ -244,7 +244,7 @@ public function testImportLock() {
     $this->container->get('lock.persistent')->acquire($config_importer::LOCK_NAME);
 
     // Attempt to import configuration and verify that an error message appears.
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $this->assertText('Another request may be synchronizing configuration already.');
 
     // Release the lock, just to keep testing sane.
@@ -362,7 +362,7 @@ public function testImportValidation() {
 
     $this->drupalGet('admin/config/development/configuration');
     $this->assertNoText('There are no configuration changes to import.');
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
 
     // Verify that the validation messages appear.
     $this->assertText('The configuration cannot be imported because it failed validation for the following reasons:');
@@ -384,7 +384,7 @@ public function testConfigUninstallConfigException() {
     $this->assertText('core.extension');
 
     // Import and verify that both do not appear anymore.
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $this->assertText('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.');
   }
 
@@ -441,7 +441,7 @@ public function testImportErrorLog() {
     $this->assertNoText('There are no configuration changes to import.');
 
     // Attempt to import configuration and verify that an error message appears.
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $this->assertText('Deleted and replaced configuration entity "' . $name_secondary . '"');
     $this->assertText('The configuration was imported with errors.');
     $this->assertNoText('The configuration was imported successfully.');
@@ -471,7 +471,7 @@ public function testEntityBundleDelete() {
     // Attempt to import configuration and verify that an error message appears
     // and the node type, body field and entity displays are still scheduled for
     // removal.
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $validation_message = t('Entities exist of type %entity_type and %bundle_label %bundle. These entities need to be deleted before importing.', ['%entity_type' => $node->getEntityType()->getLabel(), '%bundle_label' => $node->getEntityType()->getBundleLabel(), '%bundle' => $node_type->label()]);
     $this->assertRaw($validation_message);
     $this->assertText('node.type.' . $node_type->id());
@@ -482,7 +482,7 @@ public function testEntityBundleDelete() {
 
     // Delete the node and try to import again.
     $node->delete();
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $this->assertNoRaw($validation_message);
     $this->assertText('There are no configuration changes to import.');
     $this->assertNoText('node.type.' . $node_type->id());
@@ -519,7 +519,7 @@ public function testExtensionValidation() {
     $core['theme']['does_not_exist'] = 0;
     $sync->write('core.extension', $core);
 
-    $this->drupalPostForm('admin/config/development/configuration', [], t('Import all'));
+    $this->drupalPostForm('admin/config/development/configuration', [], 'Import all');
     $this->assertText('The configuration cannot be imported because it failed validation for the following reasons:');
     $this->assertText('Unable to uninstall the Text module since the Node module is installed.');
     $this->assertText('Unable to uninstall the Theme test base theme theme since the Theme test subtheme theme is installed.');
@@ -534,7 +534,7 @@ public function testBatchErrors() {
     $new_site_name = 'Config import test ' . $this->randomString();
     $this->prepareSiteNameUpdate($new_site_name);
     \Drupal::state()->set('config_import_steps_alter.error', TRUE);
-    $this->drupalPostForm('admin/config/development/configuration', [], t('Import all'));
+    $this->drupalPostForm('admin/config/development/configuration', [], 'Import all');
     $this->assertSession()->responseContains('_config_import_test_config_import_steps_alter batch error');
     $this->assertSession()->responseContains('_config_import_test_config_import_steps_alter ConfigImporter error');
     $this->assertSession()->responseContains('The configuration was imported with errors.');
diff --git a/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php b/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php
index e3e6d6aae7fd..8d63151ba001 100644
--- a/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigImportUploadTest.php
@@ -52,7 +52,7 @@ public function testImport() {
     // Attempt to upload a non-tar file.
     $text_file = $this->getTestFiles('text')[0];
     $edit = ['files[import_tarball]' => \Drupal::service('file_system')->realpath($text_file->uri)];
-    $this->drupalPostForm('admin/config/development/configuration/full/import', $edit, t('Upload'));
+    $this->drupalPostForm('admin/config/development/configuration/full/import', $edit, 'Upload');
     $this->assertText('Could not extract the contents of the tar file');
 
     // Make the sync directory read-only.
diff --git a/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php b/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php
index a1a430ee2be1..c664adf0ec6c 100644
--- a/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php
@@ -135,19 +135,19 @@ public function testPreExistingConfigInstall() {
     // will install the config_test module first because it is a dependency of
     // config_install_fail_test.
     // @see \Drupal\system\Form\ModulesListForm::submitForm()
-    $this->drupalPostForm('admin/modules', ['modules[config_test][enable]' => TRUE, 'modules[config_install_fail_test][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[config_test][enable]' => TRUE, 'modules[config_install_fail_test][enable]' => TRUE], 'Install');
     $this->assertRaw('Unable to install Configuration install fail test, <em class="placeholder">config_test.dynamic.dotted.default</em> already exists in active configuration.');
 
     // Uninstall the config_test module to test the confirm form.
-    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[config_test]' => TRUE], t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[config_test]' => TRUE], 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
 
     // Try to install config_install_fail_test without selecting config_test.
     // The user is shown a confirm form because the config_test module is a
     // dependency.
     // @see \Drupal\system\Form\ModulesListConfirmForm::submitForm()
-    $this->drupalPostForm('admin/modules', ['modules[config_install_fail_test][enable]' => TRUE], t('Install'));
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm('admin/modules', ['modules[config_install_fail_test][enable]' => TRUE], 'Install');
+    $this->drupalPostForm(NULL, [], 'Continue');
     $this->assertRaw('Unable to install Configuration install fail test, <em class="placeholder">config_test.dynamic.dotted.default</em> already exists in active configuration.');
 
     // Test that collection configuration clashes during a module install are
@@ -160,7 +160,7 @@ public function testPreExistingConfigInstall() {
       ->set('label', 'Je suis Charlie')
       ->save();
 
-    $this->drupalPostForm('admin/modules', ['modules[config_install_fail_test][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[config_install_fail_test][enable]' => TRUE], 'Install');
     $this->assertRaw('Unable to install Configuration install fail test, <em class="placeholder">config_test.dynamic.dotted.default, language/fr/config_test.dynamic.dotted.default</em> already exist in active configuration.');
 
     // Test installing a theme through the UI that has existing configuration.
@@ -191,16 +191,16 @@ public function testUnmetDependenciesInstall() {
     $this->drupalLogin($this->adminUser);
     // We need to install separately since config_install_dependency_test does
     // not depend on config_test and order is important.
-    $this->drupalPostForm('admin/modules', ['modules[config_test][enable]' => TRUE], t('Install'));
-    $this->drupalPostForm('admin/modules', ['modules[config_install_dependency_test][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[config_test][enable]' => TRUE], 'Install');
+    $this->drupalPostForm('admin/modules', ['modules[config_install_dependency_test][enable]' => TRUE], 'Install');
     $this->assertRaw('Unable to install <em class="placeholder">Config install dependency test</em> due to unmet dependencies: <em class="placeholder">config_test.dynamic.other_module_test_with_dependency (config_other_module_config_test, config_test.dynamic.dotted.english)</em>');
 
-    $this->drupalPostForm('admin/modules', ['modules[config_test_language][enable]' => TRUE], t('Install'));
-    $this->drupalPostForm('admin/modules', ['modules[config_install_dependency_test][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[config_test_language][enable]' => TRUE], 'Install');
+    $this->drupalPostForm('admin/modules', ['modules[config_install_dependency_test][enable]' => TRUE], 'Install');
     $this->assertRaw('Unable to install <em class="placeholder">Config install dependency test</em> due to unmet dependencies: <em class="placeholder">config_test.dynamic.other_module_test_with_dependency (config_other_module_config_test)</em>');
 
-    $this->drupalPostForm('admin/modules', ['modules[config_other_module_config_test][enable]' => TRUE], t('Install'));
-    $this->drupalPostForm('admin/modules', ['modules[config_install_dependency_test][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[config_other_module_config_test][enable]' => TRUE], 'Install');
+    $this->drupalPostForm('admin/modules', ['modules[config_install_dependency_test][enable]' => TRUE], 'Install');
     $this->rebuildContainer();
     $this->assertInstanceOf(ConfigTest::class, \Drupal::entityTypeManager()->getStorage('config_test')->load('other_module_test_with_dependency'));
   }
@@ -210,7 +210,7 @@ public function testUnmetDependenciesInstall() {
    */
   public function testConfigModuleRequirements() {
     $this->drupalLogin($this->adminUser);
-    $this->drupalPostForm('admin/modules', ['modules[config][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[config][enable]' => TRUE], 'Install');
 
     $directory = Settings::get('config_sync_directory');
     try {
diff --git a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
index b2e484a36029..6b3335354bed 100644
--- a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
@@ -55,7 +55,7 @@ public function testSiteNameTranslation() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     \Drupal::languageManager()
       ->getLanguageConfigOverride($langcode, 'system.site')
       ->set('name', 'XX site name')
diff --git a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
index 273448d1bbeb..ce3234b5adc5 100644
--- a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
@@ -52,7 +52,7 @@ public function testImport() {
       'import' => '{{{',
     ];
 
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     // Assert the static portion of the error since different parsers could give different text in their error.
     $this->assertText('The import failed with the following message: ');
 
@@ -67,15 +67,15 @@ public function testImport() {
       'import' => $import,
     ];
     // Attempt an import with a missing ID.
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertText('Missing ID key "id" for this Test configuration import.');
 
     // Perform an import with no specified UUID and a unique ID.
     $this->assertNull($storage->load('first'));
     $edit['import'] = "id: first\n" . $edit['import'];
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertRaw(t('Are you sure you want to create a new %name @type?', ['%name' => 'first', '@type' => 'test configuration']));
-    $this->drupalPostForm(NULL, [], t('Confirm'));
+    $this->drupalPostForm(NULL, [], 'Confirm');
     $entity = $storage->load('first');
     $this->assertIdentical($entity->label(), 'First');
     $this->assertIdentical($entity->id(), 'first');
@@ -83,19 +83,19 @@ public function testImport() {
     $this->assertRaw(t('The configuration was imported successfully.'));
 
     // Attempt an import with an existing ID but missing UUID.
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertText('An entity with this machine name already exists but the import did not specify a UUID.');
 
     // Attempt an import with a mismatched UUID and existing ID.
     $edit['import'] .= "\nuuid: " . $uuid->generate();
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertText('An entity with this machine name already exists but the UUID does not match.');
 
     // Attempt an import with a custom ID.
     $edit['custom_entity_id'] = 'custom_id';
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertRaw(t('Are you sure you want to create a new %name @type?', ['%name' => 'custom_id', '@type' => 'test configuration']));
-    $this->drupalPostForm(NULL, [], t('Confirm'));
+    $this->drupalPostForm(NULL, [], 'Confirm');
     $this->assertRaw(t('The configuration was imported successfully.'));
 
     // Perform an import with a unique ID and UUID.
@@ -112,9 +112,9 @@ public function testImport() {
     ];
     $second_uuid = $uuid->generate();
     $edit['import'] .= "\nuuid: " . $second_uuid;
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertRaw(t('Are you sure you want to create a new %name @type?', ['%name' => 'second', '@type' => 'test configuration']));
-    $this->drupalPostForm(NULL, [], t('Confirm'));
+    $this->drupalPostForm(NULL, [], 'Confirm');
     $entity = $storage->load('second');
     $this->assertRaw(t('The configuration was imported successfully.'));
     $this->assertIdentical($entity->label(), 'Second');
@@ -135,9 +135,9 @@ public function testImport() {
       'config_type' => 'config_test',
       'import' => $import,
     ];
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertRaw(t('Are you sure you want to update the %name @type?', ['%name' => 'second', '@type' => 'test configuration']));
-    $this->drupalPostForm(NULL, [], t('Confirm'));
+    $this->drupalPostForm(NULL, [], 'Confirm');
     $entity = $storage->load('second');
     $this->assertRaw(t('The configuration was imported successfully.'));
     $this->assertIdentical($entity->label(), 'Second updated');
@@ -158,7 +158,7 @@ public function testImport() {
       'config_type' => 'config_test',
       'import' => $import,
     ];
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertRaw(t('Configuration %name depends on the %owner module that will not be installed after import.', ['%name' => 'config_test.dynamic.second', '%owner' => 'does_not_exist']));
 
     // Try to preform an update which would create a PHP object if Yaml parsing
@@ -176,7 +176,7 @@ public function testImport() {
       'config_type' => 'config_test',
       'import' => $import,
     ];
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     if (extension_loaded('yaml')) {
       // If the yaml extension is loaded it will work but not create the PHP
       // object.
@@ -184,7 +184,7 @@ public function testImport() {
         '%name' => 'second',
         '@type' => 'test configuration',
       ]));
-      $this->drupalPostForm(NULL, [], t('Confirm'));
+      $this->drupalPostForm(NULL, [], 'Confirm');
       $entity = $storage->load('second');
       $this->assertRaw(t('The configuration was imported successfully.'));
       $this->assertIsString($entity->label());
@@ -212,9 +212,9 @@ public function testImportSimpleConfiguration() {
       'config_name' => $config->getName(),
       'import' => Yaml::encode($config->get()),
     ];
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertRaw(t('Are you sure you want to update the %name @type?', ['%name' => $config->getName(), '@type' => 'simple configuration']));
-    $this->drupalPostForm(NULL, [], t('Confirm'));
+    $this->drupalPostForm(NULL, [], 'Confirm');
     $this->drupalGet('');
     $this->assertText('Test simple import');
 
@@ -228,11 +228,11 @@ public function testImportSimpleConfiguration() {
       'config_name' => 'core.extension',
       'import' => Yaml::encode($config_data),
     ];
-    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', $edit, 'Import');
     $this->assertText('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.');
 
     // Try to import without any values.
-    $this->drupalPostForm('admin/config/development/configuration/single/import', [], t('Import'));
+    $this->drupalPostForm('admin/config/development/configuration/single/import', [], 'Import');
     $this->assertText('Configuration type field is required.');
     $this->assertText('Paste your configuration here field is required.');
   }
diff --git a/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php b/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php
index c1d98ae77ce8..e17dcaf09911 100644
--- a/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php
+++ b/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php
@@ -38,7 +38,7 @@ public function testFormWithOverride() {
     $edit = [
       'predefined_langcode' => 'es',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Overridden string for language-negotiation should not exist in the form.
     $this->drupalGet('admin/config/regional/language/detection/url');
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
index a4d174a8c797..b91b9ce7eed3 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
@@ -60,13 +60,13 @@ protected function getPo($langcode) {
   }
 
   public function testConfigTranslation() {
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'en'], t('Add custom language'));
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'fr'], t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'en'], 'Add custom language');
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'fr'], 'Add custom language');
 
     $edit = [
       'modules[config_translation][enable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     $this->drupalGet('/admin/structure/types/manage/article/fields');
     $this->assertSession()->statusCodeEquals(200);
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
index edb5fc2fac78..af664351a840 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
@@ -129,7 +129,7 @@ protected function doMenuListTest() {
       'label' => $label,
     ];
     // Create the menu by posting the form.
-    $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/add', $edit, 'Save');
 
     // Get the Menu listing.
     $this->drupalGet('admin/structure/menu');
@@ -371,7 +371,7 @@ public function doResponsiveImageListTest() {
     $edit['id'] = strtolower($edit['label']);
     $edit['fallback_image_style'] = 'thumbnail';
 
-    $this->drupalPostForm('admin/config/media/responsive-image-style/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/media/responsive-image-style/add', $edit, 'Save');
     $this->assertRaw(t('Responsive image style %label saved.', ['%label' => $edit['label']]));
 
     // Get the responsive image style listing.
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
index af4e6a146cda..69afb2821182 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
@@ -153,7 +153,7 @@ public function testSiteInformationTranslationUi() {
     // original form.
     $this->clickLink(t('Edit'));
     // Also check that saving the form leads back to the translation overview.
-    $this->drupalPostForm(NULL, [], t('Save configuration'));
+    $this->drupalPostForm(NULL, [], 'Save configuration');
     $this->assertSession()->addressEquals($translation_base_url);
 
     // Check 'Add' link of French to visit add page.
@@ -170,7 +170,7 @@ public function testSiteInformationTranslationUi() {
       'translation[config_names][system.site][slogan]' => $fr_site_slogan,
     ];
 
-    $this->drupalPostForm("$translation_base_url/fr/add", $edit, t('Save translation'));
+    $this->drupalPostForm("$translation_base_url/fr/add", $edit, 'Save translation');
     $this->assertRaw(t('Successfully saved @language translation.', ['@language' => 'French']));
 
     // Check for edit, delete links (and no 'add' link) for French language.
@@ -202,14 +202,14 @@ public function testSiteInformationTranslationUi() {
       'langcode' => 'fr',
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
 
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $fr_site_name_label,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Ensure that the label is in French (and not in English).
     $this->drupalGet("fr/$translation_base_url/fr/edit");
@@ -247,7 +247,7 @@ public function testSourceValueDuplicateSave() {
       'translation[config_names][system.site][slogan]' => 'FR ' . $site_slogan,
     ];
     // First time, no overrides, so just Add link.
-    $this->drupalPostForm("$translation_base_url/fr/add", $edit, t('Save translation'));
+    $this->drupalPostForm("$translation_base_url/fr/add", $edit, 'Save translation');
 
     // Read overridden file from active config.
     $override = \Drupal::languageManager()->getLanguageConfigOverride('fr', 'system.site');
@@ -269,7 +269,7 @@ public function testSourceValueDuplicateSave() {
       'translation[config_names][system.site][name]' => $site_name,
       'translation[config_names][system.site][slogan]' => 'FR ' . $site_slogan,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save translation'));
+    $this->drupalPostForm(NULL, $edit, 'Save translation');
     $this->assertRaw(t('Successfully updated @language translation.', ['@language' => 'French']));
     $override = \Drupal::languageManager()->getLanguageConfigOverride('fr', 'system.site');
 
@@ -284,7 +284,7 @@ public function testSourceValueDuplicateSave() {
       'translation[config_names][system.site][name]' => $site_name,
       'translation[config_names][system.site][slogan]' => $site_slogan,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save translation'));
+    $this->drupalPostForm(NULL, $edit, 'Save translation');
     $override = \Drupal::languageManager()->getLanguageConfigOverride('fr', 'system.site');
 
     // Expect no language specific file.
@@ -323,7 +323,7 @@ public function testContactConfigEntityTranslation() {
       'recipients' => 'sales@example.com,support@example.com',
       'reply' => 'Thank you for your mail',
     ];
-    $this->drupalPostForm('admin/structure/contact/manage/feedback', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/contact/manage/feedback', $edit, 'Save');
 
     // Ensure translation link is present.
     $translation_base_url = 'admin/structure/contact/manage/feedback/translate';
@@ -356,7 +356,7 @@ public function testContactConfigEntityTranslation() {
       ];
 
       // Save language specific version of form.
-      $this->drupalPostForm($translation_page_url, $edit, t('Save translation'));
+      $this->drupalPostForm($translation_page_url, $edit, 'Save translation');
 
       // Expect translated values in language specific file.
       $override = \Drupal::languageManager()->getLanguageConfigOverride($langcode, 'contact.form.feedback');
@@ -380,7 +380,7 @@ public function testContactConfigEntityTranslation() {
         'subject[0][value]' => 'Test subject',
         'message[0][value]' => 'Test message',
       ];
-      $this->drupalPostForm(NULL, $edit, t('Send message'));
+      $this->drupalPostForm(NULL, $edit, 'Send message');
     }
 
     // Now that all language translations are present, check translation and
@@ -415,7 +415,7 @@ public function testContactConfigEntityTranslation() {
       // Assert link back to list page to cancel delete is present.
       $this->assertSession()->linkByHrefExists($translation_base_url);
 
-      $this->drupalPostForm(NULL, [], t('Delete'));
+      $this->drupalPostForm(NULL, [], 'Delete');
       $this->assertRaw(t('@language translation of %label was deleted', $replacements));
       $this->assertSession()->linkByHrefExists("$translation_base_url/$langcode/add");
       $this->assertSession()->linkByHrefNotExists("translation_base_url/$langcode/edit");
@@ -458,7 +458,7 @@ public function testDateFormatTranslation() {
       'id' => 'custom_medium',
       'date_format_pattern' => 'Y. m. d. H:i',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
 
     // Test translating a default shipped format and our custom format.
     $formats = [
@@ -488,7 +488,7 @@ public function testDateFormatTranslation() {
       ];
 
       // Save language specific version of form.
-      $this->drupalPostForm($translation_page_url, $edit, t('Save translation'));
+      $this->drupalPostForm($translation_page_url, $edit, 'Save translation');
 
       // Get translation and check we've got the right value.
       $override = \Drupal::languageManager()->getLanguageConfigOverride('fr', 'core.date_format.' . $id);
@@ -529,7 +529,7 @@ public function testAccountSettingsConfigurationTranslation() {
       'translation[config_names][user.mail][status_blocked][body]' => 'Testing account blocked body.',
     ];
 
-    $this->drupalPostForm('admin/config/people/accounts/translate/fr/add', $edit, t('Save translation'));
+    $this->drupalPostForm('admin/config/people/accounts/translate/fr/add', $edit, 'Save translation');
 
     // Make sure the changes are saved and loaded back properly.
     $this->drupalGet('admin/config/people/accounts/translate/fr/edit');
@@ -617,7 +617,7 @@ public function testViewsTranslationUI() {
       'translation[config_names][views.view.frontpage][display][default][display_title]' => $display_settings_master . " FR",
       'translation[config_names][views.view.frontpage][display][default][display_options][title]' => $display_options_master . " FR",
     ];
-    $this->drupalPostForm("$translation_base_url/fr/add", $edit, t('Save translation'));
+    $this->drupalPostForm("$translation_base_url/fr/add", $edit, 'Save translation');
     $this->assertRaw(t('Successfully saved @language translation.', ['@language' => 'French']));
 
     // Check for edit, delete links (and no 'add' link) for French language.
@@ -653,7 +653,7 @@ public function testPluralConfigStringsSourceElements() {
       $this->drupalPostForm('admin/config/regional/translate/import', [
         'langcode' => $langcode,
         'files[file]' => $name,
-      ], t('Import'));
+      ], 'Import');
 
       // Change the config langcode of the 'files' view.
       $config = \Drupal::service('config.factory')->getEditable('views.view.files');
@@ -689,7 +689,7 @@ public function testPluralConfigStrings() {
     $this->drupalPostForm('admin/config/regional/translate/import', [
       'langcode' => 'sl',
       'files[file]' => $name,
-    ], t('Import'));
+    ], 'Import');
 
     // Translate the files view, as this one uses numeric formatters.
     $description = 'Singular form';
@@ -713,7 +713,7 @@ public function testPluralConfigStrings() {
       'translation[config_names][views.view.files][display][default][display_options][fields][count][format_plural_string][2]' => $field_value_plural . ' 2 SL',
       'translation[config_names][views.view.files][display][default][display_options][fields][count][format_plural_string][3]' => $field_value_plural . ' 3 SL',
     ];
-    $this->drupalPostForm($translation_url, $edit, t('Save translation'));
+    $this->drupalPostForm($translation_url, $edit, 'Save translation');
 
     // Make sure the values have changed.
     $this->drupalGet($translation_url);
@@ -824,7 +824,7 @@ public function testLocaleDBStorage() {
       'label' => $name,
       'direction' => Language::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     // Make sure there is no translation stored in locale storage before edit.
     $translation = $this->getTranslation('user.settings', 'anonymous', 'fr');
@@ -834,7 +834,7 @@ public function testLocaleDBStorage() {
     $edit = [
       'translation[config_names][user.settings][anonymous]' => 'Anonyme',
     ];
-    $this->drupalPostForm('admin/config/people/accounts/translate/fr/add', $edit, t('Save translation'));
+    $this->drupalPostForm('admin/config/people/accounts/translate/fr/add', $edit, 'Save translation');
 
     // Make sure translation stored in locale storage after saved language
     // specific configuration translation.
@@ -845,7 +845,7 @@ public function testLocaleDBStorage() {
     $edit = [
       'translation[config_names][user.settings][anonymous]' => 'Anonymous',
     ];
-    $this->drupalPostForm('admin/config/people/accounts/translate/fr/edit', $edit, t('Save translation'));
+    $this->drupalPostForm('admin/config/people/accounts/translate/fr/edit', $edit, 'Save translation');
 
     // Make sure there is no translation stored in locale storage after revert.
     $translation = $this->getTranslation('user.settings', 'anonymous', 'fr');
@@ -859,18 +859,18 @@ public function testSingleLanguageUI() {
     $this->drupalLogin($this->adminUser);
 
     // Delete French language
-    $this->drupalPostForm('admin/config/regional/language/delete/fr', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/fr', [], 'Delete');
     $this->assertRaw(t('The %language (%langcode) language has been removed.', ['%language' => 'French', '%langcode' => 'fr']));
 
     // Change default language to Tamil.
     $edit = [
       'site_default_language' => 'ta',
     ];
-    $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language', $edit, 'Save configuration');
     $this->assertRaw(t('Configuration saved.'));
 
     // Delete English language
-    $this->drupalPostForm('admin/config/regional/language/delete/en', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/en', [], 'Delete');
     $this->assertRaw(t('The %language (%langcode) language has been removed.', ['%language' => 'English', '%langcode' => 'en']));
 
     // Visit account setting translation page, this should not
@@ -924,7 +924,7 @@ public function testSequenceTranslation() {
       'translation[config_names][config_translation_test.content][animals][1]' => 'llama - FR',
       'translation[config_names][config_translation_test.content][animals][2]' => 'elephant - FR',
     ];
-    $this->drupalPostForm('admin/config/media/file-system/translate/fr/add', $edit, t('Save translation'));
+    $this->drupalPostForm('admin/config/media/file-system/translate/fr/add', $edit, 'Save translation');
 
     $this->container->get('language.config_factory_override')
       ->setLanguage(new Language(['id' => 'fr']));
@@ -976,7 +976,7 @@ public function testTextFormatTranslation() {
     ];
 
     // Save language specific version of form.
-    $this->drupalPostForm($translation_page_url, $edit, t('Save translation'));
+    $this->drupalPostForm($translation_page_url, $edit, 'Save translation');
 
     // Get translation and check we've got the right value.
     $expected = [
@@ -1010,7 +1010,7 @@ public function testTextFormatTranslation() {
     $this->drupalLogin($this->translatorUser);
     $this->drupalGet($translation_page_url);
     $this->assertDisabledTextarea('edit-translation-config-names-config-translation-testcontent-content-value');
-    $this->drupalPostForm(NULL, [], t('Save translation'));
+    $this->drupalPostForm(NULL, [], 'Save translation');
     // Check that submitting the form did not update the text format of the
     // translation.
     $actual = $config_factory
@@ -1023,7 +1023,7 @@ public function testTextFormatTranslation() {
     $edit = [
       'translation[config_names][config_translation_test.content][content][format]' => 'full_html',
     ];
-    $this->drupalPostForm($translation_page_url, $edit, t('Save translation'));
+    $this->drupalPostForm($translation_page_url, $edit, 'Save translation');
     $expected = [
       'value' => '<p><strong>Hello World</strong> - FR</p>',
       'format' => 'full_html',
@@ -1118,7 +1118,7 @@ protected function setSiteInformation($site_name, $site_slogan) {
       'site_name' => $site_name,
       'site_slogan' => $site_slogan,
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
     $this->assertRaw(t('The configuration options have been saved.'));
   }
 
diff --git a/core/modules/contact/tests/src/Functional/ContactLanguageTest.php b/core/modules/contact/tests/src/Functional/ContactLanguageTest.php
index a0690a84d514..417e07d44261 100644
--- a/core/modules/contact/tests/src/Functional/ContactLanguageTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactLanguageTest.php
@@ -58,7 +58,7 @@ public function testContactLanguage() {
     $settings_path = 'admin/config/regional/content-language';
     $edit['entity_types[contact_message]'] = TRUE;
     $edit['settings[contact_message][feedback][settings][language][language_alterable]'] = TRUE;
-    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+    $this->drupalPostForm($settings_path, $edit, 'Save configuration');
 
     // Ensure that contact form now shows the language select.
     $this->drupalGet('contact');
diff --git a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
index e8abc2601dfb..2cea31d68b1f 100644
--- a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
@@ -202,7 +202,7 @@ public function testPersonalContactAccess() {
     // Disable the personal contact form.
     $this->drupalLogin($this->adminUser);
     $edit = ['contact_default_status' => FALSE];
-    $this->drupalPostForm('admin/config/people/accounts', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/people/accounts', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved.', 'Setting successfully saved.');
     $this->drupalLogout();
 
@@ -239,7 +239,7 @@ public function testPersonalContactAccess() {
     $this->drupalGet('user/' . $this->webUser->id() . '/edit');
     $this->assertSession()->checkboxNotChecked('edit-contact--2');
     $this->assertNull(\Drupal::service('user.data')->get('contact', $this->webUser->id(), 'enabled'), 'Personal contact form disabled');
-    $this->drupalPostForm(NULL, ['contact' => TRUE], t('Save'));
+    $this->drupalPostForm(NULL, ['contact' => TRUE], 'Save');
     $this->assertSession()->checkboxChecked('edit-contact--2');
     $this->assertNotEmpty(\Drupal::service('user.data')->get('contact', $this->webUser->id(), 'enabled'), 'Personal contact form enabled');
 
@@ -320,7 +320,7 @@ protected function checkContactAccess($response, $contact_value = NULL) {
     if (isset($contact_value)) {
       $edit['contact'] = $contact_value;
     }
-    $this->drupalPostForm('admin/people/create', $edit, t('Create new account'));
+    $this->drupalPostForm('admin/people/create', $edit, 'Create new account');
     $user = user_load_by_name($name);
     $this->drupalLogout();
 
@@ -345,7 +345,7 @@ protected function submitPersonalContact(AccountInterface $account, array $messa
       'subject[0][value]' => $this->randomMachineName(16) . '< " =+ >',
       'message[0][value]' => $this->randomMachineName(64) . '< " =+ >',
     ];
-    $this->drupalPostForm('user/' . $account->id() . '/contact', $message, t('Send message'));
+    $this->drupalPostForm('user/' . $account->id() . '/contact', $message, 'Send message');
     return $message;
   }
 
diff --git a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
index 394ca7ed0706..06c548cb3066 100644
--- a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
@@ -106,7 +106,7 @@ public function testSiteWideContact() {
     // Set settings.
     $edit = [];
     $edit['contact_default_status'] = TRUE;
-    $this->drupalPostForm('admin/config/people/accounts', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/people/accounts', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved.');
 
     $this->drupalGet('admin/structure/contact');
@@ -333,7 +333,7 @@ public function testSiteWideContact() {
       'message[0][value]' => $this->randomMachineName(),
       $field_name . '[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Send message'));
+    $this->drupalPostForm(NULL, $edit, 'Send message');
     $mails = $this->getMails();
     $mail = array_pop($mails);
     $this->assertEqual($mail['subject'], t('[@label] @subject', ['@label' => $label, '@subject' => $edit['subject[0][value]']]));
@@ -355,7 +355,7 @@ public function testSiteWideContact() {
       'message[0][value]' => $this->randomMachineName(),
       $field_name . '[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Send message'));
+    $this->drupalPostForm(NULL, $edit, 'Send message');
     $this->assertText('Thanks for your submission.');
     $this->assertSession()->addressEquals('user/' . $admin_user->id());
 
@@ -375,7 +375,7 @@ public function testSiteWideContact() {
       'message[0][value]' => $this->randomMachineName(),
       $field_name . '[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Send message'));
+    $this->drupalPostForm(NULL, $edit, 'Send message');
     $result = $this->xpath('//div[@role=:role]', [':role' => 'contentinfo']);
     $this->assertCount(0, $result, 'Messages not found.');
     $this->assertSession()->addressEquals('user/' . $admin_user->id());
@@ -387,7 +387,7 @@ public function testSiteWideContact() {
       'message[0][value]' => $this->randomMachineName(),
       $field_name . '[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm($form->toUrl('canonical'), $edit, t('Preview'));
+    $this->drupalPostForm($form->toUrl('canonical'), $edit, 'Preview');
 
     // Message is now by default displayed twice, once for the form element and
     // once for the viewed message.
@@ -400,9 +400,9 @@ public function testSiteWideContact() {
     $display_edit = [
       'fields[message][label]' => 'hidden',
     ];
-    $this->drupalPostForm('admin/structure/contact/manage/' . $contact_form . '/display', $display_edit, t('Save'));
+    $this->drupalPostForm('admin/structure/contact/manage/' . $contact_form . '/display', $display_edit, 'Save');
 
-    $this->drupalPostForm($form->toUrl('canonical'), $edit, t('Preview'));
+    $this->drupalPostForm($form->toUrl('canonical'), $edit, 'Preview');
     // Message should only be displayed once now.
     $page_text = $this->getSession()->getPage()->getText();
     $this->assertEquals(1, substr_count($page_text, t('Message')));
@@ -505,7 +505,7 @@ public function addContactForm($id, $label, $recipients, $reply, $selected, $mes
     $edit['reply'] = $reply;
     $edit['selected'] = ($selected ? TRUE : FALSE);
     $edit += $third_party_settings;
-    $this->drupalPostForm('admin/structure/contact/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/contact/add', $edit, 'Save');
   }
 
   /**
@@ -536,7 +536,7 @@ public function updateContactForm($id, $label, $recipients, $reply, $selected, $
     $edit['selected'] = ($selected ? TRUE : FALSE);
     $edit['message'] = $message;
     $edit['redirect'] = $redirect;
-    $this->drupalPostForm("admin/structure/contact/manage/$id", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/contact/manage/$id", $edit, 'Save');
   }
 
   /**
@@ -560,10 +560,10 @@ public function submitContact($name, $mail, $subject, $id, $message) {
     $edit['subject[0][value]'] = $subject;
     $edit['message[0][value]'] = $message;
     if ($id == $this->config('contact.settings')->get('default_form')) {
-      $this->drupalPostForm('contact', $edit, t('Send message'));
+      $this->drupalPostForm('contact', $edit, 'Send message');
     }
     else {
-      $this->drupalPostForm('contact/' . $id, $edit, t('Send message'));
+      $this->drupalPostForm('contact/' . $id, $edit, 'Send message');
     }
   }
 
@@ -579,7 +579,7 @@ public function deleteContactForms() {
         $this->assertSession()->statusCodeEquals(403);
       }
       else {
-        $this->drupalPostForm("admin/structure/contact/manage/$id/delete", [], t('Delete'));
+        $this->drupalPostForm("admin/structure/contact/manage/$id/delete", [], 'Delete');
         $this->assertRaw(t('The contact form %label has been deleted.', ['%label' => $contact_form->label()]));
         $this->assertNull(ContactForm::load($id), new FormattableMarkup('Form %contact_form not found', ['%contact_form' => $contact_form->label()]));
       }
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
index 4e57a16624cf..10707a7931e4 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
@@ -90,7 +90,7 @@ public function testModerationForm() {
     $this->drupalPostForm($edit_path, [
       'body[0][value]' => 'Second version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
 
     // The canonical view should have a moderation form, because it is not the
     // live revision.
@@ -102,7 +102,7 @@ public function testModerationForm() {
     $this->drupalPostForm($edit_path, [
       'body[0][value]' => 'Second version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Preview'));
+    ], 'Preview');
 
     // The preview view should not have a moderation form.
     $preview_url = Url::fromRoute('entity.node.preview', [
@@ -122,7 +122,7 @@ public function testModerationForm() {
     $this->drupalPostForm($edit_path, [
       'body[0][value]' => 'Third version of the content.',
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
 
     // Check widget default value.
     $this->drupalGet($edit_path);
@@ -152,7 +152,7 @@ public function testModerationForm() {
     $this->drupalPostForm($edit_path, [
       'body[0][value]' => 'Fourth version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
 
     // The published view should not have a moderation form, because it is the
     // live revision.
@@ -170,7 +170,7 @@ public function testModerationForm() {
     // Submit the moderation form to change status to published.
     $this->drupalPostForm($latest_version_path, [
       'new_state' => 'published',
-    ], t('Apply'));
+    ], 'Apply');
 
     // The latest version page should not show, because there is no
     // pending revision.
@@ -187,7 +187,7 @@ public function testNonBundleModerationForm() {
     $this->workflow->save();
 
     // Create new moderated content in draft.
-    $this->drupalPostForm('entity_test_mulrevpub/add', ['moderation_state[0][state]' => 'draft'], t('Save'));
+    $this->drupalPostForm('entity_test_mulrevpub/add', ['moderation_state[0][state]' => 'draft'], 'Save');
 
     // The latest version page should not show, because there is no pending
     // revision.
@@ -195,7 +195,7 @@ public function testNonBundleModerationForm() {
     $this->assertSession()->statusCodeEquals(403);
 
     // Update the draft.
-    $this->drupalPostForm('entity_test_mulrevpub/manage/1/edit', ['moderation_state[0][state]' => 'draft'], t('Save'));
+    $this->drupalPostForm('entity_test_mulrevpub/manage/1/edit', ['moderation_state[0][state]' => 'draft'], 'Save');
 
     // The latest version page should not show, because there is still no
     // pending revision.
@@ -203,7 +203,7 @@ public function testNonBundleModerationForm() {
     $this->assertSession()->statusCodeEquals(403);
 
     // Publish the draft.
-    $this->drupalPostForm('entity_test_mulrevpub/manage/1/edit', ['moderation_state[0][state]' => 'published'], t('Save'));
+    $this->drupalPostForm('entity_test_mulrevpub/manage/1/edit', ['moderation_state[0][state]' => 'published'], 'Save');
 
     // The published view should not have a moderation form, because it is the
     // default revision.
@@ -217,7 +217,7 @@ public function testNonBundleModerationForm() {
     $this->assertSession()->statusCodeEquals(403);
 
     // Make a pending revision.
-    $this->drupalPostForm('entity_test_mulrevpub/manage/1/edit', ['moderation_state[0][state]' => 'draft'], t('Save'));
+    $this->drupalPostForm('entity_test_mulrevpub/manage/1/edit', ['moderation_state[0][state]' => 'draft'], 'Save');
 
     // The published view should not have a moderation form, because it is the
     // default revision.
@@ -235,7 +235,7 @@ public function testNonBundleModerationForm() {
     // Submit the moderation form to change status to published.
     $this->drupalPostForm('entity_test_mulrevpub/manage/1/latest', [
       'new_state' => 'published',
-    ], t('Apply'));
+    ], 'Apply');
 
     // The latest version page should not show, because there is no
     // pending revision.
@@ -260,7 +260,7 @@ public function testModerationFormSetsRevisionAuthor() {
     $this->drupalLogin($another_user);
     $this->drupalPostForm(sprintf('node/%d/latest', $node->id()), [
       'new_state' => 'published',
-    ], t('Apply'));
+    ], 'Apply');
 
     $this->drupalGet(sprintf('node/%d/revisions', $node->id()));
     $this->assertText('by ' . $another_user->getAccountName());
@@ -280,7 +280,7 @@ public function testContentTranslationNodeForm() {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable content translation on articles.
     $this->drupalGet('admin/config/regional/content-language');
@@ -289,7 +289,7 @@ public function testContentTranslationNodeForm() {
       'settings[node][moderated_content][translatable]' => TRUE,
       'settings[node][moderated_content][settings][language][language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
 
     // Adding languages requires a container rebuild in the test running
     // environment so that multilingual services are used.
@@ -300,7 +300,7 @@ public function testContentTranslationNodeForm() {
       'title[0][value]' => 'Some moderated content',
       'body[0][value]' => 'First version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $this->assertNotEmpty($this->xpath('//ul[@class="entity-moderation-form"]'));
 
     $node = $this->drupalGetNodeByTitle('Some moderated content');
@@ -322,7 +322,7 @@ public function testContentTranslationNodeForm() {
     $this->drupalPostForm(NULL, [
       'body[0][value]' => 'Second version of the content.',
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     $this->drupalGet($latest_version_path, ['language' => $french]);
     $this->assertSession()->statusCodeEquals('403');
@@ -346,7 +346,7 @@ public function testContentTranslationNodeForm() {
     $this->drupalPostForm(NULL, [
       'body[0][value]' => 'Third version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     $this->drupalGet($latest_version_path, ['language' => $french]);
     $this->assertNotEmpty($this->xpath('//ul[@class="entity-moderation-form"]'));
@@ -366,7 +366,7 @@ public function testContentTranslationNodeForm() {
     $this->drupalPostForm(NULL, [
       'body[0][value]' => 'Fifth version of the content.',
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     $this->drupalGet($latest_version_path, ['language' => $french]);
     $this->assertEmpty($this->xpath('//ul[@class="entity-moderation-form"]'));
@@ -379,7 +379,7 @@ public function testContentTranslationNodeForm() {
     $this->drupalPostForm(NULL, [
       'body[0][value]' => 'Sixth version of the content.',
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     $this->drupalGet($latest_version_path);
     $this->assertEmpty($this->xpath('//ul[@class="entity-moderation-form"]'));
@@ -398,7 +398,7 @@ public function testContentTranslationNodeForm() {
     $this->drupalPostForm(NULL, [
       'body[0][value]' => 'Seventh version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     $this->drupalGet($latest_version_path);
     $this->assertNotEmpty($this->xpath('//ul[@class="entity-moderation-form"]'));
@@ -413,7 +413,7 @@ public function testContentTranslationNodeForm() {
     $this->drupalPostForm(NULL, [
       'body[0][value]' => 'Eighth version of the content.',
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     $this->drupalGet($latest_version_path);
     $this->assertEmpty($this->xpath('//ul[@class="entity-moderation-form"]'));
@@ -434,7 +434,7 @@ public function testContentTranslationNodeForm() {
     $this->drupalPostForm('node/add/moderated_content', [
       'title[0][value]' => 'Third moderated content',
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
 
     $node = $this->drupalGetNodeByTitle('Third moderated content');
     $this->assertNotEmpty($node->language(), 'en');
@@ -448,7 +448,7 @@ public function testContentTranslationNodeForm() {
     $this->assertSession()->optionExists('moderation_state[0][state]', 'archived');
     $this->drupalPostForm(NULL, [
       'moderation_state[0][state]' => 'draft',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     // Add another draft for the translation (revision 3).
     $this->drupalGet($edit_path, ['language' => $french]);
@@ -457,7 +457,7 @@ public function testContentTranslationNodeForm() {
     $this->assertSession()->optionNotExists('moderation_state[0][state]', 'archived');
     $this->drupalPostForm(NULL, [
       'moderation_state[0][state]' => 'draft',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     // Updating and publishing the french translation is still possible.
     $this->drupalGet($edit_path, ['language' => $french]);
@@ -466,7 +466,7 @@ public function testContentTranslationNodeForm() {
     $this->assertSession()->optionNotExists('moderation_state[0][state]', 'archived');
     $this->drupalPostForm(NULL, [
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
 
     // Now the french translation is published, an english draft can be added.
     $this->drupalGet($edit_path);
@@ -475,7 +475,7 @@ public function testContentTranslationNodeForm() {
     $this->assertSession()->optionExists('moderation_state[0][state]', 'archived');
     $this->drupalPostForm(NULL, [
       'moderation_state[0][state]' => 'draft',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
   }
 
   /**
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php
index 00566a8039ad..adc787b9bcb3 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php
@@ -44,7 +44,7 @@ protected function setUp(): void {
       $edit = [
         'predefined_langcode' => $langcode,
       ];
-      $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+      $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     }
 
     // Enable content translation on articles.
@@ -54,7 +54,7 @@ protected function setUp(): void {
       'settings[node][article][translatable]' => TRUE,
       'settings[node][article][settings][language][language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
 
     // Adding languages requires a container rebuild in the test running
     // environment so that multilingual services are used.
@@ -71,7 +71,7 @@ public function testTranslateModeratedContent() {
       'langcode[0][value]' => 'en',
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $this->assertText('Article Published English node has been created.');
     $english_node = $this->drupalGetNodeByTitle('Published English node');
 
@@ -82,7 +82,7 @@ public function testTranslateModeratedContent() {
       'title[0][value]' => 'French node Draft',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     // Here the error has occurred "The website encountered an unexpected error.
     // Please try again later."
     // If the translation has got lost.
@@ -94,7 +94,7 @@ public function testTranslateModeratedContent() {
       'langcode[0][value]' => 'en',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $this->assertText('Article English node has been created.');
     $english_node = $this->drupalGetNodeByTitle('English node');
 
@@ -105,7 +105,7 @@ public function testTranslateModeratedContent() {
       'title[0][value]' => 'French node',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $this->assertText('Article French node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('English node', TRUE);
 
@@ -113,7 +113,7 @@ public function testTranslateModeratedContent() {
     // unpublished.
     $this->drupalPostForm('node/' . $english_node->id() . '/edit', [
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
     $this->assertText('Article English node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('English node', TRUE);
     $french_node = $english_node->getTranslation('fr');
@@ -130,7 +130,7 @@ public function testTranslateModeratedContent() {
       'title[0][value]' => 'Another node',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $this->assertText('Article Another node has been created.');
     $english_node = $this->drupalGetNodeByTitle('Another node');
 
@@ -141,7 +141,7 @@ public function testTranslateModeratedContent() {
       'title[0][value]' => 'Translated node',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $this->assertText('Article Translated node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
 
@@ -149,7 +149,7 @@ public function testTranslateModeratedContent() {
     // unpublished.
     $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', [
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
     $this->assertText('Article Translated node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
@@ -163,7 +163,7 @@ public function testTranslateModeratedContent() {
       'title[0][value]' => 'New draft of translated node',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', $edit, t('Save (this translation)'));
+    $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', $edit, 'Save (this translation)');
     $this->assertText('Article New draft of translated node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
@@ -174,7 +174,7 @@ public function testTranslateModeratedContent() {
     // Publish the French article before testing the archive transition.
     $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', [
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
     $this->assertText('Article New draft of translated node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
@@ -185,7 +185,7 @@ public function testTranslateModeratedContent() {
     // Publish the English article before testing the archive transition.
     $this->drupalPostForm('node/' . $english_node->id() . '/edit', [
       'moderation_state[0][state]' => 'published',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
     $this->assertText('Article Another node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $this->assertEqual($english_node->moderation_state->value, 'published');
@@ -193,11 +193,11 @@ public function testTranslateModeratedContent() {
     // Archive the node and its translation.
     $this->drupalPostForm('node/' . $english_node->id() . '/edit', [
       'moderation_state[0][state]' => 'archived',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
     $this->assertText('Article Another node has been updated.');
     $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', [
       'moderation_state[0][state]' => 'archived',
-    ], t('Save (this translation)'));
+    ], 'Save (this translation)');
     $this->assertText('Article New draft of translated node has been updated.');
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
@@ -466,7 +466,7 @@ protected function submitNodeForm($title, $moderation_state, $default_translatio
       $default_translation = TRUE;
       $edit['langcode[0][value]'] = $langcode;
     }
-    $submit = $default_translation ? t('Save') : t('Save (this translation)');
+    $submit = $default_translation ? 'Save' : 'Save (this translation)';
     $this->drupalPostForm(NULL, $edit, $submit);
     $message = $is_new ? "Article $title has been created." : "Article $title has been updated.";
     $this->assertSession()->pageTextContains($message);
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php
index 217df4cdb53b..dff3847ea0c9 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php
@@ -67,13 +67,13 @@ public function testEditingAfterRevertRevision() {
     $this->drupalPostForm('node/add/moderated_bundle', [
       'title[0][value]' => 'First draft node',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
 
     // Now make it published.
     $this->drupalPostForm('node/1/edit', [
       'title[0][value]' => 'Published node',
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
 
     // Check the editing form that show the published title.
     $this->drupalGet('node/1/edit');
@@ -93,7 +93,7 @@ public function testEditingAfterRevertRevision() {
     // Try to save the node.
     $this->drupalPostForm('node/1/edit', [
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
 
     // Check if the submission passed the EntityChangedConstraintValidator.
     $this->assertSession()
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationStateBlockTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationStateBlockTest.php
index 2296f73be6c3..a2062ebc9492 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationStateBlockTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationStateBlockTest.php
@@ -58,7 +58,7 @@ public function testCustomBlockModeration() {
 
     // Enable moderation for custom blocks.
     $edit['bundles[basic]'] = TRUE;
-    $this->drupalPostForm('admin/config/workflow/workflows/manage/editorial/type/block_content', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/workflow/workflows/manage/editorial/type/block_content', $edit, 'Save');
 
     // Create a custom block at block/add and save it as draft.
     $body = 'Body of moderated block';
@@ -67,7 +67,7 @@ public function testCustomBlockModeration() {
       'moderation_state[0][state]' => 'draft',
       'body[0][value]' => $body,
     ];
-    $this->drupalPostForm('block/add', $edit, t('Save'));
+    $this->drupalPostForm('block/add', $edit, 'Save');
     $this->assertText('basic Moderated block has been created.');
 
     // Place the block in the Sidebar First region.
@@ -78,7 +78,7 @@ public function testCustomBlockModeration() {
     ];
     $block = BlockContent::load(1);
     $url = 'admin/structure/block/add/block_content:' . $block->uuid() . '/' . $this->config('system.theme')->get('default');
-    $this->drupalPostForm($url, $instance, t('Save block'));
+    $this->drupalPostForm($url, $instance, 'Save block');
 
     // Navigate to home page and check that the block is visible. It should be
     // visible because it is the default revision.
@@ -91,7 +91,7 @@ public function testCustomBlockModeration() {
       'body[0][value]' => $updated_body,
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('block/' . $block->id(), $edit, t('Save'));
+    $this->drupalPostForm('block/' . $block->id(), $edit, 'Save');
     $this->assertText('basic Moderated block has been updated.');
 
     // Navigate to the home page and check that the block shows the updated
@@ -103,7 +103,7 @@ public function testCustomBlockModeration() {
     // Publish the block so we can create a pending revision.
     $this->drupalPostForm('block/' . $block->id(), [
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
 
     // Create a pending revision.
     $pending_revision_body = 'This is the pending revision body value';
@@ -111,7 +111,7 @@ public function testCustomBlockModeration() {
       'body[0][value]' => $pending_revision_body,
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('block/' . $block->id(), $edit, t('Save'));
+    $this->drupalPostForm('block/' . $block->id(), $edit, 'Save');
     $this->assertText('basic Moderated block has been updated.');
 
     // Navigate to home page and check that the pending revision doesn't show,
@@ -123,7 +123,7 @@ public function testCustomBlockModeration() {
     $edit = [
       'new_state' => 'published',
     ];
-    $this->drupalPostForm('block/' . $block->id() . '/latest', $edit, t('Apply'));
+    $this->drupalPostForm('block/' . $block->id() . '/latest', $edit, 'Apply');
     $this->assertText('The moderation state has been updated.');
 
     // Navigate to home page and check that the pending revision is now the
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php
index 8044b01a6518..21b042f1f61e 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php
@@ -34,7 +34,7 @@ public function testCreatingContent() {
     $this->drupalPostForm('node/add/moderated_content', [
       'title[0][value]' => 'moderated content',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $node = $this->getNodeByTitle('moderated content');
     if (!$node) {
       $this->fail('Test node was not saved correctly.');
@@ -45,7 +45,7 @@ public function testCreatingContent() {
     // Set up published revision.
     $this->drupalPostForm($path, [
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
     \Drupal::entityTypeManager()->getStorage('node')->resetCache([$node->id()]);
     /* @var \Drupal\node\NodeInterface $node */
     $node = \Drupal::entityTypeManager()->getStorage('node')->load($node->id());
@@ -56,12 +56,12 @@ public function testCreatingContent() {
     $this->assertNoText('Published');
 
     // Delete the node.
-    $this->drupalPostForm('node/' . $node->id() . '/delete', [], t('Delete'));
+    $this->drupalPostForm('node/' . $node->id() . '/delete', [], 'Delete');
     $this->assertText('The Moderated content moderated content has been deleted.');
 
     // Disable content moderation.
     $edit['bundles[moderated_content]'] = FALSE;
-    $this->drupalPostForm('admin/config/workflow/workflows/manage/editorial/type/node', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/workflow/workflows/manage/editorial/type/node', $edit, 'Save');
     // Ensure the parent environment is up-to-date.
     // @see content_moderation_workflow_insert()
     \Drupal::service('entity_type.bundle.info')->clearCachedBundles();
@@ -70,7 +70,7 @@ public function testCreatingContent() {
     // Create a new node.
     $this->drupalPostForm('node/add/moderated_content', [
       'title[0][value]' => 'non-moderated content',
-    ], t('Save'));
+    ], 'Save');
 
     $node = $this->getNodeByTitle('non-moderated content');
     if (!$node) {
@@ -88,7 +88,7 @@ public function testFormSaveDestination() {
       'title[0][value]' => 'Some moderated content',
       'body[0][value]' => 'First version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
 
     $node = $this->drupalGetNodeByTitle('Some moderated content');
     $edit_path = sprintf('node/%d/edit', $node->id());
@@ -103,7 +103,7 @@ public function testFormSaveDestination() {
     $this->drupalPostForm($edit_path, [
       'body[0][value]' => 'Second version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.node.canonical', ['node' => $node->id()]));
     $this->assertText('Second version of the content.');
 
@@ -112,7 +112,7 @@ public function testFormSaveDestination() {
     $this->drupalPostForm($edit_path, [
       'body[0][value]' => 'Third version of the content.',
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.node.canonical', ['node' => $node->id()]));
     $this->assertText('Third version of the content.');
 
@@ -121,7 +121,7 @@ public function testFormSaveDestination() {
     $this->drupalPostForm($edit_path, [
       'body[0][value]' => 'Fourth version of the content.',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.node.latest_version', ['node' => $node->id()]));
     $this->assertText('Fourth version of the content.');
   }
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTypeTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTypeTest.php
index 44c714dd7db3..247f78a4b98d 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTypeTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTypeTest.php
@@ -29,7 +29,7 @@ public function testNotModerated() {
     $this->assertRaw('Save');
     $this->drupalPostForm(NULL, [
       'title[0][value]' => 'Test',
-    ], t('Save'));
+    ], 'Save');
     $this->assertText('Not moderated Test has been created.');
   }
 
@@ -64,7 +64,7 @@ public function testEnablingOnExistingContent() {
     $this->drupalGet('node/add/not_moderated');
     $this->drupalPostForm(NULL, [
       'title[0][value]' => 'Test',
-    ], t('Save'));
+    ], 'Save');
     $this->assertText('Not moderated Test has been created.');
 
     // Check that the 'Create new revision' is not disabled.
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php b/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php
index 82562d94aa07..27ede2103732 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php
@@ -116,7 +116,7 @@ protected function createContentTypeFromUi($content_type_name, $content_type_id,
       'name' => $content_type_name,
       'type' => $content_type_id,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save content type'));
+    $this->drupalPostForm(NULL, $edit, 'Save content type');
 
     // Check the content type has been set to create new revisions.
     $this->assertTrue(NodeType::load($content_type_id)->shouldCreateNewRevision());
@@ -138,7 +138,7 @@ public function enableModerationThroughUi($content_type_id, $workflow_id = 'edit
     $this->drupalGet('/admin/config/workflow/workflows');
     $this->assertSession()->linkByHrefExists('admin/config/workflow/workflows/manage/' . $workflow_id);
     $edit['bundles[' . $content_type_id . ']'] = TRUE;
-    $this->drupalPostForm('admin/config/workflow/workflows/manage/' . $workflow_id . '/type/node', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/workflow/workflows/manage/' . $workflow_id . '/type/node', $edit, 'Save');
     // Ensure the parent environment is up-to-date.
     // @see content_moderation_workflow_insert()
     \Drupal::service('entity_type.bundle.info')->clearCachedBundles();
diff --git a/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php b/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php
index 6be4d3e00c12..23247e65b0c8 100644
--- a/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/NodeAccessTest.php
@@ -90,7 +90,7 @@ public function testPageAccess() {
     $this->drupalPostForm(NULL, [
       'title[0][value]' => 'moderated content',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $node = $this->getNodeByTitle('moderated content');
     if (!$node) {
       $this->fail('Test node was not saved correctly.');
@@ -120,7 +120,7 @@ public function testPageAccess() {
     $this->drupalLogin($this->adminUser);
     $this->drupalPostForm($edit_path, [
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
 
     // Ensure access works correctly for anonymous users.
     $this->drupalLogout();
@@ -138,7 +138,7 @@ public function testPageAccess() {
     $this->drupalPostForm($edit_path, [
       'title[0][value]' => 'moderated content revised',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
 
     $this->drupalLogin($user);
 
@@ -184,7 +184,7 @@ public function testPageAccess() {
     $this->assertSession()->statusCodeEquals(200);
 
     // Verify the moderation form is in place by publishing the node.
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm(NULL, [], 'Apply');
     $node = \Drupal::entityTypeManager()->getStorage('node')->loadUnchanged($node->id());
     $this->assertEquals('published', $node->moderation_state->value);
   }
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php
index 51058b89ee48..ffd226768bd1 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php
@@ -120,7 +120,7 @@ public function testContentTranslationContextualLinks() {
       'settings[node][' . $this->bundle . '][translatable]' => TRUE,
       'settings[node][' . $this->bundle . '][fields][field_test_text]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
     $this->drupalLogout();
 
     // Check that the link leads to the translate page.
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php
index ffd8a675aa63..b94826b14997 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php
@@ -32,7 +32,7 @@ public function testEnable() {
       'modules[content_translation][enable]' => TRUE,
       'modules[language][enable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // Status messages are shown.
     $this->assertText('This site has only a single language enabled. Add at least one more language in order to translate content.');
@@ -54,7 +54,7 @@ public function testEnable() {
       'entity_types[entity_test_mul]' => TRUE,
       'settings[entity_test_mul][entity_test_mul][translatable]' => TRUE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
 
     // No pending updates should be available.
     $this->drupalGet('admin/reports/status');
@@ -68,7 +68,7 @@ public function testEnable() {
       'title_label' => 'title for foo',
       'type' => 'foo',
     ];
-    $this->drupalPostForm('admin/structure/types/add', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/add', $edit, 'Save content type');
     $this->drupalGet('admin/config/regional/content-language');
     $this->assertRaw('entity_types[node]');
   }
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
index a68b99d53a6c..aabbd2c36c81 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
@@ -68,7 +68,7 @@ protected function setUp(): void {
       'settings[node][article][translatable]' => TRUE,
       'settings[node][article][settings][language][language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     // Add an image field.
     $this->drupalGet('admin/structure/types/manage/article/fields/add-field');
@@ -77,9 +77,9 @@ protected function setUp(): void {
       'field_name' => 'image_field',
       'label' => 'image_field',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save and continue'));
-    $this->drupalPostForm(NULL, [], t('Save field settings'));
-    $this->drupalPostForm(NULL, [], t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save and continue');
+    $this->drupalPostForm(NULL, [], 'Save field settings');
+    $this->drupalPostForm(NULL, [], 'Save settings');
   }
 
   /**
@@ -91,12 +91,12 @@ public function testLanguageChange() {
     $edit = [
       'title[0][value]' => 'english_title',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Create a translation in French.
     $this->clickLink('Translate');
     $this->clickLink('Add');
-    $this->drupalPostForm(NULL, [], t('Save (this translation)'));
+    $this->drupalPostForm(NULL, [], 'Save (this translation)');
     $this->clickLink('Translate');
 
     // Edit English translation.
@@ -107,8 +107,8 @@ public function testLanguageChange() {
       'langcode[0][value]' => 'de',
       'files[field_image_field_0]' => $images->uri,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
-    $this->drupalPostForm(NULL, ['field_image_field[0][alt]' => 'alternative_text'], t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
+    $this->drupalPostForm(NULL, ['field_image_field[0][alt]' => 'alternative_text'], 'Save (this translation)');
 
     // Check that the translation languages are correct.
     $node = $this->getNodeByTitle('english_title');
@@ -127,13 +127,13 @@ public function testTitleDoesNotChangesOnChangingLanguageWidgetAndTriggeringAjax
       'title[0][value]' => 'english_title',
       'test_field_only_en_fr' => 'node created',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertEqual('node created', \Drupal::state()->get('test_field_only_en_fr'));
 
     // Create a translation in French.
     $this->clickLink('Translate');
     $this->clickLink('Add');
-    $this->drupalPostForm(NULL, [], t('Save (this translation)'));
+    $this->drupalPostForm(NULL, [], 'Save (this translation)');
     $this->clickLink('Translate');
 
     // Edit English translation.
@@ -147,7 +147,7 @@ public function testTitleDoesNotChangesOnChangingLanguageWidgetAndTriggeringAjax
       'langcode[0][value]' => 'de',
       'files[field_image_field_0]' => $images->uri,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
     // Test the expected title after triggering an ajax call with a new
     // language selected.
     $this->assertRaw('<title>Edit Article english_title | Drupal</title>');
@@ -155,7 +155,7 @@ public function testTitleDoesNotChangesOnChangingLanguageWidgetAndTriggeringAjax
       'langcode[0][value]' => 'en',
       'field_image_field[0][alt]' => 'alternative_text',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
 
     // Check that the translation languages are correct.
     $node = $this->getNodeByTitle('english_title');
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php
index 94de9378ad02..28d9bccee97d 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php
@@ -129,7 +129,7 @@ public function testOperationTranslateLink() {
     $this->drupalLogin($this->baseUser2);
     $this->drupalGet('node/' . $node->id());
     $this->assertSession()->linkByHrefExists('node/' . $node->id() . '/translations');
-    $this->drupalPostForm('admin/config/regional/content-language', ['settings[node][article][translatable]' => FALSE], t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', ['settings[node][article][translatable]' => FALSE], 'Save configuration');
     $this->drupalGet('node/' . $node->id());
     $this->assertSession()->linkByHrefNotExists('node/' . $node->id() . '/translations');
   }
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php
index fd1ac2eaa59f..5875b3b4474a 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php
@@ -55,7 +55,7 @@ public function testFlagAsOutdatedHidden() {
       'title[0][value]' => 'Test 1.2 IT',
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
 
     // Add a published French translation.
     $add_translation_url = Url::fromRoute("entity.{$this->entityTypeId}.content_translation_add", [
@@ -74,7 +74,7 @@ public function testFlagAsOutdatedHidden() {
       'title[0][value]' => 'Test 1.3 FR',
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
 
     // Create an English draft.
     $entity = $this->storage->loadUnchanged($id);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php
index 428eed9e5924..f66208d1220d 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php
@@ -81,7 +81,7 @@ protected function enableContentModeration() {
     $workflow_id = 'editorial';
     $this->drupalGet('/admin/config/workflow/workflows');
     $edit['bundles[' . $this->bundle . ']'] = TRUE;
-    $this->drupalPostForm('admin/config/workflow/workflows/manage/' . $workflow_id . '/type/' . $this->entityTypeId, $edit, t('Save'));
+    $this->drupalPostForm('admin/config/workflow/workflows/manage/' . $workflow_id . '/type/' . $this->entityTypeId, $edit, 'Save');
     // Ensure the parent environment is up-to-date.
     // @see content_moderation_workflow_insert()
     \Drupal::service('entity_type.bundle.info')->clearCachedBundles();
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php
index 83d9d2ebea71..fa680fe94241 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php
@@ -77,7 +77,7 @@ public function doTestOverview($index) {
       'title[0][value]' => "Test $index.2 IT",
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $entity = $this->storage->loadUnchanged($id);
     $this->assertFalse($entity->hasTranslation('it'));
     $it_revision = $this->loadRevisionTranslation($entity, 'it');
@@ -99,7 +99,7 @@ public function doTestOverview($index) {
       'title[0][value]' => "Test $index.3 IT",
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $entity = $this->storage->loadUnchanged($id);
     $this->assertTrue($entity->hasTranslation('it'));
     $it_revision = $this->loadRevisionTranslation($entity, 'it');
@@ -119,7 +119,7 @@ public function doTestOverview($index) {
       'title[0][value]' => "Test $index.4 EN",
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $entity = $this->storage->loadUnchanged($id);
     $this->assertTrue($entity->hasTranslation('it'));
     $en_revision = $this->loadRevisionTranslation($entity, 'en');
@@ -149,7 +149,7 @@ public function doTestOverview($index) {
       'title[0][value]' => "Test $index.6 EN",
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $entity = $this->storage->loadUnchanged($id);
     $this->assertFalse($entity->hasTranslation('it'));
     $this->drupalLogin($this->currentAccount);
@@ -160,7 +160,7 @@ public function doTestOverview($index) {
       'title[0][value]' => "Test $index.7 IT",
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $entity = $this->storage->loadUnchanged($id);
     $this->assertTrue($entity->hasTranslation('it'));
     $it_revision = $this->loadRevisionTranslation($entity, 'it');
@@ -174,7 +174,7 @@ public function doTestOverview($index) {
       'title[0][value]' => "Test $index.8 IT",
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $entity = $this->storage->loadUnchanged($id);
     $this->assertTrue($entity->hasTranslation('it'));
     $it_revision = $this->loadRevisionTranslation($entity, 'it');
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
index b07f7062f664..a74c7364e3a1 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
@@ -169,7 +169,7 @@ public function testSettingsUI() {
     $this->drupalGet('admin/structure/types/manage/article');
     $this->assertSession()->fieldExists('language_configuration[content_translation]');
     $this->assertSession()->checkboxNotChecked('edit-language-configuration-content-translation');
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
     $this->drupalGet('admin/structure/types/manage/article');
     $this->assertSession()->checkboxChecked('edit-language-configuration-content-translation');
 
@@ -195,7 +195,7 @@ public function testSettingsUI() {
       // Test that also the Field UI form behaves correctly.
       $translatable = !$translatable;
       $edit = ['translatable' => $translatable];
-      $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.body', $edit, t('Save settings'));
+      $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.body', $edit, 'Save settings');
       $entity_field_manager->clearCachedFieldDefinitions();
       $field = FieldConfig::loadByName('node', 'article', 'body');
       $definitions = $entity_field_manager->getFieldDefinitions('node', 'article');
@@ -234,7 +234,7 @@ public function testAccountLanguageSettingsUI() {
     $edit = [
       'language[content_translation]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/people/accounts', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/people/accounts', $edit, 'Save configuration');
     $this->drupalGet('admin/config/people/accounts');
     $this->assertSession()->checkboxChecked('edit-language-content-translation');
 
@@ -260,7 +260,7 @@ public function testAccountLanguageSettingsUI() {
    *   TRUE if the assertion succeeded, FALSE otherwise.
    */
   protected function assertSettings($entity_type, $bundle, $enabled, $edit) {
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
     $args = ['@entity_type' => $entity_type, '@bundle' => $bundle, '@enabled' => $enabled ? 'enabled' : 'disabled'];
     $message = new FormattableMarkup('Translation for entity @entity_type (@bundle) is @enabled.', $args);
     return $this->assertEqual(\Drupal::service('content_translation.manager')->isEnabled($entity_type, $bundle), $enabled, $message);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php
index 14c72d3ee952..2ec9a7a50542 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php
@@ -109,7 +109,7 @@ public function testImageFieldSync() {
       'third_party_settings[content_translation][translation_sync][alt]' => FALSE,
       'third_party_settings[content_translation][translation_sync][title]' => FALSE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
 
     // Check that the content translation settings page reflects the changes
     // performed in the field edit page.
@@ -121,7 +121,7 @@ public function testImageFieldSync() {
       'settings[entity_test_mul][entity_test_mul][columns][field_test_et_ui_image][alt]' => TRUE,
       'settings[entity_test_mul][entity_test_mul][columns][field_test_et_ui_image][title]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
     $errors = $this->xpath('//div[contains(@class, "messages--error")]');
     $this->assertEmpty($errors, 'Settings correctly stored.');
     $this->assertSession()->checkboxChecked('edit-settings-entity-test-mul-entity-test-mul-columns-field-test-et-ui-image-alt');
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
index f9ae86f2a341..16f0c9eb6e75 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
@@ -178,7 +178,7 @@ protected function doTestBasicTranslation() {
     ], ['language' => $language]);
     // This does not save anything, it merely reloads the form and fills in the
     // fields with the values from the different source language.
-    $this->drupalPostForm($add_url, $edit, t('Change'));
+    $this->drupalPostForm($add_url, $edit, 'Change');
     $this->assertSession()->fieldValueEquals("{$this->fieldName}[0][value]", $values[$source_langcode][$this->fieldName][0]['value']);
 
     // Add another translation and mark the other ones as outdated.
@@ -370,8 +370,8 @@ protected function doTestTranslationDeletion() {
     $entity = $storage->load($this->entityId);
     $language = ConfigurableLanguage::load($langcode);
     $url = $entity->toUrl('edit-form', ['language' => $language]);
-    $this->drupalPostForm($url, [], t('Delete translation'));
-    $this->drupalPostForm(NULL, [], t('Delete @language translation', ['@language' => $language->getName()]));
+    $this->drupalPostForm($url, [], 'Delete translation');
+    $this->drupalPostForm(NULL, [], 'Delete ' . $language->getName() . ' translation');
     $storage->resetCache([$this->entityId]);
     $entity = $storage->load($this->entityId, TRUE);
     $this->assertIsObject($entity);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php
index 9183e69dd666..3c37a708426f 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php
@@ -172,7 +172,7 @@ protected function setupEntity(UserInterface $user = NULL) {
       'name[0][value]' => 'translation name',
       'content_translation[status]' => FALSE,
     ];
-    $this->drupalPostForm($add_translation_url, $edit, t('Save'));
+    $this->drupalPostForm($add_translation_url, $edit, 'Save');
 
     $storage->resetCache([$id]);
     $this->entity = $storage->load($id);
diff --git a/core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationContextualLinksTest.php b/core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationContextualLinksTest.php
index 5a3bb717872b..b0b58d513a6d 100644
--- a/core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationContextualLinksTest.php
+++ b/core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationContextualLinksTest.php
@@ -48,7 +48,7 @@ protected function setUp(): void {
       'entity_types[node]' => TRUE,
       'settings[node][page][translatable]' => TRUE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->drupalLogout();
 
     // Create a translator user.
diff --git a/core/modules/datetime/tests/src/Functional/DateFilterTest.php b/core/modules/datetime/tests/src/Functional/DateFilterTest.php
index 0487fa1d56c0..9f9e197d437e 100644
--- a/core/modules/datetime/tests/src/Functional/DateFilterTest.php
+++ b/core/modules/datetime/tests/src/Functional/DateFilterTest.php
@@ -99,8 +99,8 @@ public function testLimitExposedOperators() {
     $edit = [];
     $edit['options[operator]'] = '>';
     $edit['options[expose][operator_list][]'] = ['>', '>=', 'between'];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_filter_datetime/default/filter/field_date_value', $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_exposed_filter_datetime/edit/default', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_filter_datetime/default/filter/field_date_value', $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_exposed_filter_datetime/edit/default', [], 'Save');
 
     $this->drupalGet('test_exposed_filter_datetime');
     $this->assertSession()->statusCodeEquals(200);
@@ -118,7 +118,7 @@ public function testLimitExposedOperators() {
     $edit = [];
     $edit['options[operator]'] = '=';
     $edit['options[expose][operator_list][]'] = ['<', '>'];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_filter_datetime/default/filter/field_date_value', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_filter_datetime/default/filter/field_date_value', $edit, 'Apply');
     $this->assertText('You selected the "Is equal to" operator as the default value but is not included in the list of limited operators.');
   }
 
diff --git a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
index 6dd409f5a578..d0bf17eb3353 100644
--- a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
+++ b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
@@ -74,7 +74,7 @@ public function testDateField() {
       $edit = [
         "{$field_name}[0][value][date]" => $date->format($date_format),
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
       $id = $match[1];
       $this->assertText('entity_test ' . $id . ' has been created.');
@@ -86,11 +86,11 @@ public function testDateField() {
       $entity = EntityTest::load($id);
       $this->assertEqual('2012-12-31', $entity->{$field_name}->value);
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $entity = EntityTest::load($id);
       $this->assertEqual('2012-12-31', $entity->{$field_name}->value);
 
@@ -269,7 +269,7 @@ public function testDatetimeField() {
       "{$field_name}[0][value][date]" => $date->format($date_format),
       "{$field_name}[0][value][time]" => $date->format($time_format),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -496,7 +496,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -536,7 +536,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -573,7 +573,7 @@ public function testDatelistWidget() {
         $edit["{$field_name}[0][value][$part]"] = $value;
       }
 
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       $this->assertSession()->statusCodeEquals(200);
       foreach ($expected as $expected_text) {
         $this->assertText($expected_text);
@@ -589,7 +589,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
@@ -604,7 +604,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertTrue($this->assertSession()->optionExists("edit-$field_name-0-value-minute", '0')->isSelected());
   }
@@ -700,7 +700,7 @@ public function testDefaultValue() {
       $field_edit = [
         'default_value_input[default_date_type]' => 'now',
       ];
-      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
       // Check that default value is selected in default value form.
       $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name);
@@ -730,7 +730,7 @@ public function testDefaultValue() {
         'default_value_input[default_date_type]' => 'relative',
         'default_value_input[default_date]' => 'invalid date',
       ];
-      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
       $this->assertText('The relative date value entered is invalid.');
 
@@ -739,7 +739,7 @@ public function testDefaultValue() {
         'default_value_input[default_date_type]' => 'relative',
         'default_value_input[default_date]' => '+90 days',
       ];
-      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
       // Check that default value is selected in default value form.
       $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name);
@@ -769,7 +769,7 @@ public function testDefaultValue() {
       $field_edit = [
         'default_value_input[default_date_type]' => '',
       ];
-      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+      $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
       // Check that default value is selected in default value form.
       $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name);
@@ -812,7 +812,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Empty date value has been caught.');
 
     $date_value = 'aaaa-12-01';
@@ -820,7 +820,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => '00:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', new FormattableMarkup('Invalid year value %date has been caught.', ['%date' => $date_value]));
 
     $date_value = '2012-75-01';
@@ -828,7 +828,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => '00:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', new FormattableMarkup('Invalid month value %date has been caught.', ['%date' => $date_value]));
 
     $date_value = '2012-12-99';
@@ -836,7 +836,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => '00:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', new FormattableMarkup('Invalid day value %date has been caught.', ['%date' => $date_value]));
 
     $date_value = '2012-12-01';
@@ -845,7 +845,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Empty time value has been caught.');
 
     $date_value = '2012-12-01';
@@ -854,7 +854,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', new FormattableMarkup('Invalid hour value %time has been caught.', ['%time' => $time_value]));
 
     $date_value = '2012-12-01';
@@ -863,7 +863,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', new FormattableMarkup('Invalid minute value %time has been caught.', ['%time' => $time_value]));
 
     $date_value = '2012-12-01';
@@ -872,7 +872,7 @@ public function testInvalidField() {
       "{$field_name}[0][value][date]" => $date_value,
       "{$field_name}[0][value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', new FormattableMarkup('Invalid second value %time has been caught.', ['%time' => $time_value]));
   }
 
@@ -912,7 +912,7 @@ public function testDateStorageSettings() {
       'body[0][value]' => $this->randomString(),
       $field_name . '[0][value][date]' => '2016-04-01',
     ];
-    $this->drupalPostForm('node/add/date_content', $edit, t('Save'));
+    $this->drupalPostForm('node/add/date_content', $edit, 'Save');
     $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name . '/storage');
     $result = $this->xpath("//*[@id='edit-settings-datetime-type' and contains(@disabled, 'disabled')]");
     $this->assertCount(1, $result, "Changing datetime setting is disabled.");
diff --git a/core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php b/core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php
index 266187122f8a..450cd559c0d0 100644
--- a/core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php
+++ b/core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php
@@ -109,7 +109,7 @@ public function testSettings() {
       'fields[field_datetime][region]' => 'content',
       'fields[field_datetime][type]' => 'datetime_time_ago',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     $this->drupalPostForm(NULL, [], 'field_datetime_settings_edit');
     $edit = [
diff --git a/core/modules/datetime/tests/src/Functional/Views/FilterDateTest.php b/core/modules/datetime/tests/src/Functional/Views/FilterDateTest.php
index 34246b7b34ae..8922fdddfe12 100644
--- a/core/modules/datetime/tests/src/Functional/Views/FilterDateTest.php
+++ b/core/modules/datetime/tests/src/Functional/Views/FilterDateTest.php
@@ -117,7 +117,7 @@ protected function setUp(): void {
    */
   public function testExposedGroupedFilters() {
     // Expose the empty and not empty operators in a grouped filter.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_datetime/default/filter/' . $this->fieldName . '_value', [], t('Expose filter'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_datetime/default/filter/' . $this->fieldName . '_value', [], 'Expose filter');
     $this->drupalPostForm(NULL, [], 'Grouped filters');
 
     $edit = [];
@@ -132,7 +132,7 @@ public function testExposedGroupedFilters() {
     $path = 'test_filter_datetime-path';
     $this->drupalPostForm('admin/structure/views/view/test_filter_datetime/edit', [], 'Add Page');
     $this->drupalPostForm('admin/structure/views/nojs/display/test_filter_datetime/page_1/path', ['path' => $path], 'Apply');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $this->drupalGet($path);
 
diff --git a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
index 8cdc936c5e91..f6abf3159856 100644
--- a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
+++ b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
@@ -89,7 +89,7 @@ public function testDateRangeField() {
         "{$field_name}[0][value][date]" => $start_date->format($date_format),
         "{$field_name}[0][end_value][date]" => $end_date->format($date_format),
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
       $id = $match[1];
       $this->assertText('entity_test ' . $id . ' has been created.');
@@ -103,11 +103,11 @@ public function testDateRangeField() {
       $this->assertEqual('2012-12-31', $entity->{$field_name}->value);
       $this->assertEqual('2013-06-06', $entity->{$field_name}->end_value);
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $entity = EntityTest::load($id);
       $this->assertEqual('2012-12-31', $entity->{$field_name}->value);
       $this->assertEqual('2013-06-06', $entity->{$field_name}->end_value);
@@ -215,7 +215,7 @@ public function testDateRangeField() {
         "{$field_name}[0][end_value][date]" => $start_date->format($date_format),
       ];
 
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
       $id = $match[1];
       $this->assertText('entity_test ' . $id . ' has been created.');
@@ -322,7 +322,7 @@ public function testDatetimeRangeField() {
       "{$field_name}[0][end_value][date]" => $end_date->format($date_format),
       "{$field_name}[0][end_value][time]" => $end_date->format($time_format),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -407,7 +407,7 @@ public function testDatetimeRangeField() {
       "{$field_name}[0][end_value][time]" => $start_date->format($time_format),
     ];
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -495,7 +495,7 @@ public function testAlldayRangeField() {
       "{$field_name}[0][value][date]" => $start_date->format($date_format),
       "{$field_name}[0][end_value][date]" => $end_date->format($date_format),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -579,7 +579,7 @@ public function testAlldayRangeField() {
       "{$field_name}[0][value][date]" => $start_date->format($date_format),
       "{$field_name}[0][end_value][date]" => $start_date->format($date_format),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -767,7 +767,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][end_value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -822,7 +822,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][end_value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -868,7 +868,7 @@ public function testDatelistWidget() {
         $edit["{$field_name}[0][end_value][$part]"] = $value;
       }
 
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       $this->assertSession()->statusCodeEquals(200);
       foreach ($expected as $expected_text) {
         $this->assertText($expected_text);
@@ -888,7 +888,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][end_value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
@@ -907,7 +907,7 @@ public function testDatelistWidget() {
       $edit["{$field_name}[0][end_value][$part]"] = $value;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertTrue($this->assertSession()->optionExists("edit-$field_name-0-value-minute", '0')->isSelected());
     $this->assertTrue($this->assertSession()->optionExists("edit-$field_name-0-end-value-minute", '0')->isSelected());
@@ -1020,7 +1020,7 @@ public function testDefaultValue() {
       'default_value_input[default_date_type]' => 'now',
       'default_value_input[default_end_date_type]' => 'now',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
     // Check that default value is selected in default value form.
     $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name);
@@ -1056,7 +1056,7 @@ public function testDefaultValue() {
       'default_value_input[default_end_date_type]' => 'relative',
       'default_value_input[default_end_date]' => '+1 day',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
     $this->assertText('The relative start date value entered is invalid.');
 
     $field_edit = [
@@ -1065,7 +1065,7 @@ public function testDefaultValue() {
       'default_value_input[default_end_date_type]' => 'relative',
       'default_value_input[default_end_date]' => 'invalid date',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
     $this->assertText('The relative end date value entered is invalid.');
 
     // Set a relative default_value.
@@ -1075,7 +1075,7 @@ public function testDefaultValue() {
       'default_value_input[default_end_date_type]' => 'relative',
       'default_value_input[default_end_date]' => '+90 days',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
     // Check that default value is selected in default value form.
     $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name);
@@ -1110,7 +1110,7 @@ public function testDefaultValue() {
       'default_value_input[default_date_type]' => '',
       'default_value_input[default_end_date_type]' => '',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
     // Check that default value is selected in default value form.
     $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name);
@@ -1146,7 +1146,7 @@ public function testDefaultValue() {
       'default_value_input[default_date_type]' => 'now',
       'default_value_input[default_end_date_type]' => '',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
     // Make sure only the start value is populated on node add page.
     $this->drupalGet('node/add/date_content');
@@ -1158,7 +1158,7 @@ public function testDefaultValue() {
       'default_value_input[default_date_type]' => '',
       'default_value_input[default_end_date_type]' => 'now',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name, $field_edit, 'Save settings');
 
     // Make sure only the start value is populated on node add page.
     $this->drupalGet('node/add/date_content');
@@ -1190,7 +1190,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Empty start date value has been caught.');
 
     $date_value = 'aaaa-12-01';
@@ -1200,7 +1200,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid start year value ' . $date_value . ' has been caught.');
 
     $date_value = '2012-75-01';
@@ -1210,7 +1210,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid start month value ' . $date_value . ' has been caught.');
 
     $date_value = '2012-12-99';
@@ -1220,7 +1220,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid start day value ' . $date_value . ' has been caught.');
 
     // Submit invalid start times and ensure they is not accepted.
@@ -1231,7 +1231,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Empty start time value has been caught.');
 
     $time_value = '49:00:00';
@@ -1241,7 +1241,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid start hour value ' . $time_value . ' has been caught.');
 
     $time_value = '12:99:00';
@@ -1251,7 +1251,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid start minute value ' . $time_value . ' has been caught.');
 
     $time_value = '12:15:99';
@@ -1261,7 +1261,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid start second value ' . $time_value . ' has been caught.');
 
     // Submit invalid end dates and ensure they is not accepted.
@@ -1272,7 +1272,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => $date_value,
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Empty end date value has been caught.');
 
     $date_value = 'aaaa-12-01';
@@ -1282,7 +1282,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => $date_value,
       "{$field_name}[0][end_value][time]" => '00:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid end year value ' . $date_value . ' has been caught.');
 
     $date_value = '2012-75-01';
@@ -1292,7 +1292,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => $date_value,
       "{$field_name}[0][end_value][time]" => '00:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid end month value ' . $date_value . ' has been caught.');
 
     $date_value = '2012-12-99';
@@ -1302,7 +1302,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => $date_value,
       "{$field_name}[0][end_value][time]" => '00:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid end day value ' . $date_value . ' has been caught.');
 
     // Submit invalid start times and ensure they is not accepted.
@@ -1313,7 +1313,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Empty end time value has been caught.');
 
     $time_value = '49:00:00';
@@ -1323,7 +1323,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid end hour value ' . $time_value . ' has been caught.');
 
     $time_value = '12:99:00';
@@ -1333,7 +1333,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid end minute value ' . $time_value . ' has been caught.');
 
     $time_value = '12:15:99';
@@ -1343,7 +1343,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => $time_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('date is invalid', 'Invalid end second value ' . $time_value . ' has been caught.');
 
     $edit = [
@@ -1352,7 +1352,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2010-12-01',
       "{$field_name}[0][end_value][time]" => '12:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('The ' . $field_label . ' end date cannot be before the start date', 'End date before start date has been caught.');
 
     $edit = [
@@ -1361,7 +1361,7 @@ public function testInvalidField() {
       "{$field_name}[0][end_value][date]" => '2012-12-01',
       "{$field_name}[0][end_value][time]" => '11:00:00',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('The ' . $field_label . ' end date cannot be before the start date', 'End time before start time has been caught.');
   }
 
@@ -1402,7 +1402,7 @@ public function testDateStorageSettings() {
       $field_name . '[0][value][date]' => '2016-04-01',
       $field_name . '[0][end_value][date]' => '2016-04-02',
     ];
-    $this->drupalPostForm('node/add/date_content', $edit, t('Save'));
+    $this->drupalPostForm('node/add/date_content', $edit, 'Save');
     $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name . '/storage');
     $result = $this->xpath("//*[@id='edit-settings-datetime-type' and contains(@disabled, 'disabled')]");
     $this->assertCount(1, $result, "Changing datetime setting is disabled.");
diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php
index defc24fcb810..67ad71d5da6e 100644
--- a/core/modules/dblog/tests/src/Functional/DbLogTest.php
+++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php
@@ -255,7 +255,7 @@ private function verifyRowLimit($row_limit) {
     // Change the database log row limit.
     $edit = [];
     $edit['dblog_row_limit'] = $row_limit;
-    $this->drupalPostForm('admin/config/development/logging', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/development/logging', $edit, 'Save configuration');
     $this->assertSession()->statusCodeEquals(200);
 
     // Check row limit variable.
@@ -286,7 +286,7 @@ protected function filterLogsEntries($type = NULL, $severity = NULL) {
     if (isset($severity)) {
       $edit['severity[]'] = $severity;
     }
-    $this->drupalPostForm(NULL, $edit, t('Filter'));
+    $this->drupalPostForm(NULL, $edit, 'Filter');
   }
 
   /**
@@ -419,7 +419,7 @@ private function doUser() {
     $edit['pass[pass1]'] = $pass;
     $edit['pass[pass2]'] = $pass;
     $edit['status'] = 1;
-    $this->drupalPostForm('admin/people/create', $edit, t('Create new account'));
+    $this->drupalPostForm('admin/people/create', $edit, 'Create new account');
     $this->assertSession()->statusCodeEquals(200);
     // Retrieve the user object.
     $user = user_load_by_name($name);
@@ -442,7 +442,7 @@ private function doUser() {
     $this->drupalLogin($this->adminUser);
     // Delete the user created at the start of this test.
     // We need to POST here to invoke batch_process() in the internal browser.
-    $this->drupalPostForm('user/' . $user->id() . '/cancel', ['user_cancel_method' => 'user_cancel_reassign'], t('Cancel account'));
+    $this->drupalPostForm('user/' . $user->id() . '/cancel', ['user_cancel_method' => 'user_cancel_reassign'], 'Cancel account');
 
     // View the database log report.
     $this->drupalGet('admin/reports/dblog');
@@ -502,17 +502,17 @@ private function doNode($type) {
     // (which is not triggered by drupalCreateNode).
     $edit = $this->getContent($type);
     $title = $edit['title[0][value]'];
-    $this->drupalPostForm('node/add/' . $type, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $type, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     // Retrieve the node object.
     $node = $this->drupalGetNodeByTitle($title);
     $this->assertNotNull($node, new FormattableMarkup('Node @title was loaded', ['@title' => $title]));
     // Edit the node.
     $edit = $this->getContentUpdate($type);
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     // Delete the node.
-    $this->drupalPostForm('node/' . $node->id() . '/delete', [], t('Delete'));
+    $this->drupalPostForm('node/' . $node->id() . '/delete', [], 'Delete');
     $this->assertSession()->statusCodeEquals(200);
     // View the node (to generate page not found event).
     $this->drupalGet('node/' . $node->id());
diff --git a/core/modules/editor/tests/src/Functional/EditorAdminTest.php b/core/modules/editor/tests/src/Functional/EditorAdminTest.php
index 4015bd1403c7..2cb0c7840499 100644
--- a/core/modules/editor/tests/src/Functional/EditorAdminTest.php
+++ b/core/modules/editor/tests/src/Functional/EditorAdminTest.php
@@ -86,7 +86,7 @@ public function testAddEditorToExistingFormat() {
     $edit = $this->selectUnicornEditor();
     // Configure Unicorn Editor's setting to another value.
     $edit['editor[settings][ponies_too]'] = FALSE;
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->verifyUnicornEditorConfiguration('filtered_html', FALSE);
 
     // Switch back to 'None' and check the Unicorn Editor's settings are gone.
@@ -174,7 +174,7 @@ protected function addEditorToNewFormat($format_id, $format_name) {
       'format' => $format_id,
     ];
     $edit += $this->selectUnicornEditor();
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
   }
 
   /**
diff --git a/core/modules/editor/tests/src/Functional/EditorUploadImageScaleTest.php b/core/modules/editor/tests/src/Functional/EditorUploadImageScaleTest.php
index fafba031e5c6..0aaf1064dbc0 100644
--- a/core/modules/editor/tests/src/Functional/EditorUploadImageScaleTest.php
+++ b/core/modules/editor/tests/src/Functional/EditorUploadImageScaleTest.php
@@ -203,7 +203,7 @@ protected function uploadImage($uri) {
       'files[fid]' => \Drupal::service('file_system')->realpath($uri),
     ];
     $this->drupalGet('editor/dialog/image/basic_html');
-    $this->drupalPostForm('editor/dialog/image/basic_html', $edit, t('Upload'));
+    $this->drupalPostForm('editor/dialog/image/basic_html', $edit, 'Upload');
     $uploaded_image_file = $this->container->get('image.factory')->get('public://inline-images/' . basename($uri));
     return [
       (int) $uploaded_image_file->getWidth(),
diff --git a/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php b/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php
index c3b00e830fe1..c271edae88dc 100644
--- a/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php
+++ b/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php
@@ -114,7 +114,7 @@ public function testBooleanField() {
     $edit = [
       "{$field_name}[value]" => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -144,7 +144,7 @@ public function testBooleanField() {
     $edit = [
       'settings[on_label]' => $on,
     ];
-    $this->drupalPostForm('entity_test/structure/entity_test/fields/entity_test.entity_test.' . $field_name, $edit, t('Save settings'));
+    $this->drupalPostForm('entity_test/structure/entity_test/fields/entity_test.entity_test.' . $field_name, $edit, 'Save settings');
     // Check if we see the updated labels in the creation form.
     $this->drupalGet('entity_test/add');
     $this->assertRaw($on);
@@ -233,7 +233,7 @@ public function testFormAccess() {
     $this->assertSession()->fieldExists("{$field_name}[value]");
 
     // Should be posted OK.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -244,7 +244,7 @@ public function testFormAccess() {
     // Field should not be there anymore.
     $this->assertSession()->fieldNotExists("{$field_name}[value]");
     // Should still be able to post the form.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
diff --git a/core/modules/field/tests/src/Functional/Email/EmailFieldTest.php b/core/modules/field/tests/src/Functional/Email/EmailFieldTest.php
index 1a92eb088307..9a32063607b5 100644
--- a/core/modules/field/tests/src/Functional/Email/EmailFieldTest.php
+++ b/core/modules/field/tests/src/Functional/Email/EmailFieldTest.php
@@ -97,7 +97,7 @@ public function testEmailField() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php
index ffc1652d3ddd..c44856573d52 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php
@@ -90,22 +90,22 @@ public function testFieldAdminHandler() {
       'page[style][style_plugin]' => 'default',
       'page[style][row_plugin]' => 'fields',
     ];
-    $this->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit'));
-    $this->drupalPostForm(NULL, [], t('Duplicate as Entity Reference'));
+    $this->drupalPostForm('admin/structure/views/add', $edit, 'Save and edit');
+    $this->drupalPostForm(NULL, [], 'Duplicate as Entity Reference');
     $this->clickLink(t('Settings'));
     $edit = [
       'style_options[search_fields][title]' => 'title',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
 
     // Set sort to NID ascending.
     $edit = [
       'name[node_field_data.nid]' => 1,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/node_test_view/entity_reference_1/sort', $edit, t('Add and configure sort criteria'));
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/node_test_view/entity_reference_1/sort', $edit, 'Add and configure sort criteria');
+    $this->drupalPostForm(NULL, [], 'Apply');
 
-    $this->drupalPostForm('admin/structure/views/view/node_test_view/edit/entity_reference_1', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/view/node_test_view/edit/entity_reference_1', [], 'Save');
     $this->clickLink(t('Settings'));
 
     // Create a test entity reference field.
@@ -115,24 +115,24 @@ public function testFieldAdminHandler() {
       'label' => 'Test Entity Reference Field',
       'field_name' => $field_name,
     ];
-    $this->drupalPostForm($bundle_path . '/fields/add-field', $edit, t('Save and continue'));
+    $this->drupalPostForm($bundle_path . '/fields/add-field', $edit, 'Save and continue');
 
     // Set to unlimited.
     $edit = [
       'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save field settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save field settings');
 
     // Add the view to the test field.
     $edit = [
       'settings[handler]' => 'views',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Change handler'));
+    $this->drupalPostForm(NULL, $edit, 'Change handler');
     $edit = [
       'required' => FALSE,
       'settings[handler_settings][view][view_and_display]' => 'node_test_view:entity_reference_1',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
 
     // Create nodes.
     $node1 = Node::create([
@@ -156,20 +156,20 @@ public function testFieldAdminHandler() {
 
     // Try to add a new node, fill the entity reference field and submit the
     // form.
-    $this->drupalPostForm('node/add/' . $this->type, [], t('Add another item'));
+    $this->drupalPostForm('node/add/' . $this->type, [], 'Add another item');
     $edit = [
       'title[0][value]' => 'Example',
       'field_test_entity_ref_field[0][target_id]' => 'Foo Node (' . $node1->id() . ')',
       'field_test_entity_ref_field[1][target_id]' => 'Foo Node (' . $node2->id() . ')',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     $edit = [
       'title[0][value]' => 'Example',
       'field_test_entity_ref_field[0][target_id]' => 'Test',
     ];
-    $this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $this->type, $edit, 'Save');
 
     // Assert that entity reference autocomplete field is validated.
     $this->assertText('There are no entities matching "Test"');
@@ -178,7 +178,7 @@ public function testFieldAdminHandler() {
       'title[0][value]' => 'Test',
       'field_test_entity_ref_field[0][target_id]' => $node1->getTitle(),
     ];
-    $this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $this->type, $edit, 'Save');
 
     // Assert the results multiple times to avoid sorting problem of nodes with
     // the same title.
@@ -191,7 +191,7 @@ public function testFieldAdminHandler() {
       'title[0][value]' => 'Test',
       'field_test_entity_ref_field[0][target_id]' => $node1->getTitle() . ' (' . $node1->id() . ')',
     ];
-    $this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $this->type, $edit, 'Save');
     $this->assertSession()->linkExists($node1->getTitle());
 
     // Tests adding default values to autocomplete widgets.
@@ -202,7 +202,7 @@ public function testFieldAdminHandler() {
     $edit = [
       'cardinality' => -1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save field settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save field settings');
     $this->drupalGet($bundle_path . '/fields/' . $field_path);
     $term_name = $this->randomString();
     $result = \Drupal::entityQuery('taxonomy_term')
@@ -215,13 +215,13 @@ public function testFieldAdminHandler() {
       // This must be set before new entities will be auto-created.
       'settings[handler_settings][auto_create]' => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
     $this->drupalGet($bundle_path . '/fields/' . $field_path);
     $edit = [
       // A term that doesn't yet exist.
       'default_value_input[field_' . $taxonomy_term_field_name . '][0][target_id]' => $term_name,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
     // The term should now exist.
     $result = \Drupal::entityQuery('taxonomy_term')
       ->condition('name', $term_name)
@@ -330,7 +330,7 @@ public function testMultipleTargetBundles() {
       'settings[handler_settings][auto_create]' => TRUE,
       'settings[handler_settings][auto_create_bundle]' => $vocabularies[1]->id(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
 
     /** @var \Drupal\field\Entity\FieldConfig $field_config */
     $field_config = FieldConfig::load($field_id);
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
index f775b61a0403..adc5c73303ea 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
@@ -86,7 +86,7 @@ public function testEntityReferenceDefaultValue() {
     $field_edit = [
       'default_value_input[' . $field_name . '][0][target_id]' => $referenced_node->getTitle() . ' (' . $referenced_node->id() . ')',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/reference_content/fields/node.reference_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/reference_content/fields/node.reference_content.' . $field_name, $field_edit, 'Save settings');
 
     // Check that default value is selected in default value form.
     $this->drupalGet('admin/structure/types/manage/reference_content/fields/node.reference_content.' . $field_name);
@@ -150,7 +150,7 @@ public function testEntityReferenceDefaultConfigValue() {
       'default_value_input[' . $field_name . '][0][target_id]' => $referenced_node_type->label() . ' (' . $referenced_node_type->id() . ')',
       'default_value_input[' . $field_name . '][1][target_id]' => $referenced_node_type2->label() . ' (' . $referenced_node_type2->id() . ')',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/reference_content/fields/node.reference_content.' . $field_name, $field_edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/reference_content/fields/node.reference_content.' . $field_name, $field_edit, 'Save settings');
 
     // Check that the field has a dependency on the default value.
     $config_entity = $this->config('field.field.node.reference_content.' . $field_name)->get();
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
index b8893e534e12..c609637a5d5c 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
@@ -163,7 +163,7 @@ public function testEntityReferenceDisplay() {
 
     // Disable translation for referrer content type.
     $this->drupalLogin($this->rootUser);
-    $this->drupalPostForm('admin/config/regional/content-language', ['settings[node][referrer][translatable]' => FALSE], t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', ['settings[node][referrer][translatable]' => FALSE], 'Save configuration');
     $this->drupalLogout();
 
     // Create a referrer entity without translation.
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php
index 82804909e76b..aa19bb103995 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php
@@ -92,7 +92,7 @@ public function testSupportedEntityTypesAndWidgets() {
         // Test an input of the entity label without an ' (entity_id)' suffix.
         $this->fieldName . '[1][target_id]' => $referenced_entities[1]->label(),
       ];
-      $this->drupalPostForm($this->entityType . '/add', $edit, t('Save'));
+      $this->drupalPostForm($this->entityType . '/add', $edit, 'Save');
       $this->assertFieldValues($entity_name, $referenced_entities);
 
       // Try to post the form again with no modification and check if the field
@@ -104,7 +104,7 @@ public function testSupportedEntityTypesAndWidgets() {
       $this->assertSession()->fieldValueEquals($this->fieldName . '[0][target_id]', $referenced_entities[0]->label() . ' (' . $referenced_entities[0]->id() . ')');
       $this->assertSession()->fieldValueEquals($this->fieldName . '[1][target_id]', $referenced_entities[1]->label() . ' (' . $referenced_entities[1]->id() . ')');
 
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $this->assertFieldValues($entity_name, $referenced_entities);
 
       // Test the 'entity_reference_autocomplete_tags' widget.
@@ -121,7 +121,7 @@ public function testSupportedEntityTypesAndWidgets() {
         'name[0][value]' => $entity_name,
         $this->fieldName . '[target_id]' => $target_id,
       ];
-      $this->drupalPostForm($this->entityType . '/add', $edit, t('Save'));
+      $this->drupalPostForm($this->entityType . '/add', $edit, 'Save');
       $this->assertFieldValues($entity_name, $referenced_entities);
 
       // Try to post the form again with no modification and check if the field
@@ -130,7 +130,7 @@ public function testSupportedEntityTypesAndWidgets() {
       $this->drupalGet($this->entityType . '/manage/' . $entity->id() . '/edit');
       $this->assertSession()->fieldValueEquals($this->fieldName . '[target_id]', $target_id . ' (' . $referenced_entities[1]->id() . ')');
 
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $this->assertFieldValues($entity_name, $referenced_entities);
 
       // Test all the other widgets supported by the entity reference field.
@@ -147,7 +147,7 @@ public function testSupportedEntityTypesAndWidgets() {
             'type' => $widget_type,
           ])->save();
 
-        $this->drupalPostForm($this->entityType . '/manage/' . $entity->id() . '/edit', [], t('Save'));
+        $this->drupalPostForm($this->entityType . '/manage/' . $entity->id() . '/edit', [], 'Save');
         $this->assertFieldValues($entity_name, $referenced_entities);
       }
 
@@ -163,7 +163,7 @@ public function testSupportedEntityTypesAndWidgets() {
       if ($key == 'content') {
         $field_edit['settings[handler_settings][target_bundles][' . $referenced_entities[0]->getEntityTypeId() . ']'] = TRUE;
       }
-      $this->drupalPostForm($this->entityType . '/structure/' . $this->bundle . '/fields/' . $this->entityType . '.' . $this->bundle . '.' . $this->fieldName, $field_edit, t('Save settings'));
+      $this->drupalPostForm($this->entityType . '/structure/' . $this->bundle . '/fields/' . $this->entityType . '.' . $this->bundle . '.' . $this->fieldName, $field_edit, 'Save settings');
       // Ensure the configuration has the expected dependency on the entity that
       // is being used a default value.
       $field = FieldConfig::loadByName($this->entityType, $this->bundle, $this->fieldName);
diff --git a/core/modules/field/tests/src/Functional/FieldImportDeleteUninstallUiTest.php b/core/modules/field/tests/src/Functional/FieldImportDeleteUninstallUiTest.php
index d1c7647aab80..5441d75bb1c0 100644
--- a/core/modules/field/tests/src/Functional/FieldImportDeleteUninstallUiTest.php
+++ b/core/modules/field/tests/src/Functional/FieldImportDeleteUninstallUiTest.php
@@ -116,7 +116,7 @@ public function testImportDeleteUninstall() {
 
     // This will purge all the data, delete the field and uninstall the
     // Telephone and Text modules.
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $this->assertNoText('Field data will be deleted by this synchronization.');
     $this->rebuildContainer();
     $this->assertFalse(\Drupal::moduleHandler()->moduleExists('telephone'));
diff --git a/core/modules/field/tests/src/Functional/FormTest.php b/core/modules/field/tests/src/Functional/FormTest.php
index 976ecc9a262f..e54634b2df9a 100644
--- a/core/modules/field/tests/src/Functional/FormTest.php
+++ b/core/modules/field/tests/src/Functional/FormTest.php
@@ -137,7 +137,7 @@ public function testFieldFormSingle() {
     $edit = [
       "{$field_name}[0][value]" => -1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('%name does not accept the value -1.', ['%name' => $this->field['label']]));
     // TODO : check that the correct field is flagged for error.
 
@@ -146,7 +146,7 @@ public function testFieldFormSingle() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -165,7 +165,7 @@ public function testFieldFormSingle() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('entity_test ' . $id . ' has been updated.', 'Entity was updated');
     $this->container->get('entity_type.manager')->getStorage('entity_test')->resetCache([$id]);
     $entity = EntityTest::load($id);
@@ -176,7 +176,7 @@ public function testFieldFormSingle() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm('entity_test/manage/' . $id . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/manage/' . $id . '/edit', $edit, 'Save');
     $this->assertText('entity_test ' . $id . ' has been updated.', 'Entity was updated');
     $this->container->get('entity_type.manager')->getStorage('entity_test')->resetCache([$id]);
     $entity = EntityTest::load($id);
@@ -208,7 +208,7 @@ public function testFieldFormDefaultValue() {
     $edit = [
       "{$field_name}[0][value]" => '',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created.');
@@ -230,7 +230,7 @@ public function testFieldFormSingleRequired() {
 
     // Submit with missing required value.
     $edit = [];
-    $this->drupalPostForm('entity_test/add', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/add', $edit, 'Save');
     $this->assertRaw(t('@name field is required.', ['@name' => $this->field['label']]));
 
     // Create an entity
@@ -238,7 +238,7 @@ public function testFieldFormSingleRequired() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -250,7 +250,7 @@ public function testFieldFormSingleRequired() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm('entity_test/manage/' . $id . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/manage/' . $id . '/edit', $edit, 'Save');
     $this->assertRaw(t('@name field is required.', ['@name' => $this->field['label']]));
   }
 
@@ -276,7 +276,7 @@ public function testFieldFormUnlimited() {
     $this->assertTrue(isset($elements[0]), 'aria-describedby attribute is properly placed on multiple value widgets.');
 
     // Press 'add more' button -> 2 widgets.
-    $this->drupalPostForm(NULL, [], t('Add another item'));
+    $this->drupalPostForm(NULL, [], 'Add another item');
     $this->assertSession()->fieldValueEquals("{$field_name}[0][value]", '');
     $this->assertSession()->fieldValueEquals("{$field_name}[1][value]", '');
     // Verify that no extraneous widget is displayed.
@@ -284,7 +284,7 @@ public function testFieldFormUnlimited() {
     // TODO : check that non-field inputs are preserved ('title'), etc.
 
     // Yet another time so that we can play with more values -> 3 widgets.
-    $this->drupalPostForm(NULL, [], t('Add another item'));
+    $this->drupalPostForm(NULL, [], 'Add another item');
 
     // Prepare values and weights.
     $count = 3;
@@ -309,7 +309,7 @@ public function testFieldFormUnlimited() {
     }
 
     // Press 'add more' button -> 4 widgets
-    $this->drupalPostForm(NULL, $edit, t('Add another item'));
+    $this->drupalPostForm(NULL, $edit, 'Add another item');
     for ($delta = 0; $delta <= $delta_range; $delta++) {
       $this->assertSession()->fieldValueEquals("{$field_name}[$delta][value]", $values[$delta]);
       $this->assertSession()->fieldValueEquals("{$field_name}[$delta][_weight]", $weights[$delta]);
@@ -324,7 +324,7 @@ public function testFieldFormUnlimited() {
     $this->assertSession()->fieldNotExists("{$field_name}[" . ($delta + 1) . '][value]');
 
     // Submit the form and create the entity.
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -410,7 +410,7 @@ public function testFieldFormMultivalueWithRequiredRadio() {
     $this->drupalGet('entity_test/add');
 
     // Press the 'Add more' button.
-    $this->drupalPostForm(NULL, [], t('Add another item'));
+    $this->drupalPostForm(NULL, [], 'Add another item');
 
     // Verify that no error is thrown by the radio element.
     $this->assertSession()->elementNotExists('xpath', '//div[contains(@class, "error")]');
@@ -448,7 +448,7 @@ public function testFieldFormMultipleWidget() {
     $edit = [
       $field_name => '1, 2, 3',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
 
@@ -462,7 +462,7 @@ public function testFieldFormMultipleWidget() {
 
     // Submit the form with more values than the field accepts.
     $edit = [$field_name => '1, 2, 3, 4, 5'];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw('this field cannot hold more than 4 values');
     // Check that the field values were not submitted.
     $this->assertFieldValues($entity_init, $field_name, [1, 2, 3]);
@@ -542,7 +542,7 @@ public function testFieldFormAccess() {
     $edit = [
       "{$field_name}[0][value]" => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match("|$entity_type/manage/(\d+)|", $this->getUrl(), $match);
     $id = $match[1];
 
@@ -558,7 +558,7 @@ public function testFieldFormAccess() {
       "{$field_name}[0][value]" => 2,
       'revision' => TRUE,
     ];
-    $this->drupalPostForm($entity_type . '/manage/' . $id . '/edit', $edit, t('Save'));
+    $this->drupalPostForm($entity_type . '/manage/' . $id . '/edit', $edit, 'Save');
 
     // Check that the new revision has the expected values.
     $storage->resetCache([$id]);
@@ -598,7 +598,7 @@ public function testHiddenField() {
     // Create an entity and test that the default value is assigned correctly to
     // the field that uses the hidden widget.
     $this->assertSession()->fieldNotExists("{$field_name}[0][value]");
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     preg_match('|' . $entity_type . '/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test_rev ' . $id . ' has been created.', 'Entity was created');
@@ -626,7 +626,7 @@ public function testHiddenField() {
     // Update the entity.
     $value = mt_rand(1, 127);
     $edit = ["{$field_name}[0][value]" => $value];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('entity_test_rev ' . $id . ' has been updated.', 'Entity was updated');
     $storage->resetCache([$id]);
     $entity = $storage->load($id);
@@ -640,7 +640,7 @@ public function testHiddenField() {
 
     // Create a new revision.
     $edit = ['revision' => TRUE];
-    $this->drupalPostForm($entity_type . '/manage/' . $id . '/edit', $edit, t('Save'));
+    $this->drupalPostForm($entity_type . '/manage/' . $id . '/edit', $edit, 'Save');
 
     // Check that the expected value has been carried over to the new revision.
     $storage->resetCache([$id]);
diff --git a/core/modules/field/tests/src/Functional/NestedFormTest.php b/core/modules/field/tests/src/Functional/NestedFormTest.php
index b3c4d2a68757..a009a92828c0 100644
--- a/core/modules/field/tests/src/Functional/NestedFormTest.php
+++ b/core/modules/field/tests/src/Functional/NestedFormTest.php
@@ -114,7 +114,7 @@ public function testNestedFieldForm() {
       'entity_2[field_unlimited][0][value]' => 12,
       'entity_2[field_unlimited][1][value]' => 13,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $entity_1 = $storage->load(1);
     $entity_2 = $storage->load(2);
     $this->assertFieldValues($entity_1, 'field_single', [1]);
@@ -127,14 +127,14 @@ public function testNestedFieldForm() {
     $edit = [
       'field_unlimited[1][value]' => -1,
     ];
-    $this->drupalPostForm('test-entity/nested/1/2', $edit, t('Save'));
+    $this->drupalPostForm('test-entity/nested/1/2', $edit, 'Save');
     $this->assertRaw(t('%label does not accept the value -1', ['%label' => 'Unlimited field']));
     $error_field = $this->xpath('//input[@id=:id and contains(@class, "error")]', [':id' => 'edit-field-unlimited-1-value']);
     $this->assertCount(1, $error_field, 'Entity 1: the error was flagged on the correct element.');
     $edit = [
       'entity_2[field_unlimited][1][value]' => -1,
     ];
-    $this->drupalPostForm('test-entity/nested/1/2', $edit, t('Save'));
+    $this->drupalPostForm('test-entity/nested/1/2', $edit, 'Save');
     $this->assertRaw(t('%label does not accept the value -1', ['%label' => 'Unlimited field']));
     $error_field = $this->xpath('//input[@id=:id and contains(@class, "error")]', [':id' => 'edit-entity-2-field-unlimited-1-value']);
     $this->assertCount(1, $error_field, 'Entity 2: the error was flagged on the correct element.');
@@ -146,7 +146,7 @@ public function testNestedFieldForm() {
       'entity_2[field_unlimited][0][_weight]' => 0,
       'entity_2[field_unlimited][1][_weight]' => -1,
     ];
-    $this->drupalPostForm('test-entity/nested/1/2', $edit, t('Save'));
+    $this->drupalPostForm('test-entity/nested/1/2', $edit, 'Save');
     $this->assertFieldValues($entity_1, 'field_unlimited', [3, 2]);
     $this->assertFieldValues($entity_2, 'field_unlimited', [13, 12]);
 
@@ -170,7 +170,7 @@ public function testNestedFieldForm() {
     $this->assertSession()->fieldValueEquals('entity_2[field_unlimited][2][value]', 15);
     $this->assertSession()->fieldValueEquals('entity_2[field_unlimited][3][value]', '');
     // Save the form and check values are saved correctly.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertFieldValues($entity_1, 'field_unlimited', [3, 2]);
     $this->assertFieldValues($entity_2, 'field_unlimited', [13, 14, 15]);
   }
diff --git a/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php b/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php
index 590a2e72eca7..37fcbdebcc26 100644
--- a/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php
+++ b/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php
@@ -83,7 +83,7 @@ public function testNumberDecimalField() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -103,7 +103,7 @@ public function testNumberDecimalField() {
       $edit = [
         "{$field_name}[0][value]" => $wrong_entry,
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       $this->assertRaw(t('%name must be a number.', ['%name' => $field_name]));
     }
 
@@ -121,7 +121,7 @@ public function testNumberDecimalField() {
       $edit = [
         "{$field_name}[0][value]" => $wrong_entry,
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       $this->assertRaw(t('%name must be a number.', ['%name' => $field_name]));
     }
   }
@@ -198,7 +198,7 @@ public function testNumberIntegerField() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -208,7 +208,7 @@ public function testNumberIntegerField() {
     $edit = [
       "{$field_name}[0][value]" => $minimum - 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('%name must be higher than or equal to %minimum.', ['%name' => $field_name, '%minimum' => $minimum]));
 
     // Try to set a decimal value
@@ -216,7 +216,7 @@ public function testNumberIntegerField() {
     $edit = [
       "{$field_name}[0][value]" => 1.5,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('%name is not a valid number.', ['%name' => $field_name]));
 
     // Try to set a value above the maximum value
@@ -224,7 +224,7 @@ public function testNumberIntegerField() {
     $edit = [
       "{$field_name}[0][value]" => $maximum + 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('%name must be lower than or equal to %maximum.', ['%name' => $field_name, '%maximum' => $maximum]));
 
     // Try to set a wrong integer value.
@@ -232,7 +232,7 @@ public function testNumberIntegerField() {
     $edit = [
       "{$field_name}[0][value]" => '20-40',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('%name must be a number.', ['%name' => $field_name]));
 
     // Test with valid entries.
@@ -247,7 +247,7 @@ public function testNumberIntegerField() {
       $edit = [
         "{$field_name}[0][value]" => $valid_entry,
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
       $id = $match[1];
       $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -271,7 +271,7 @@ public function testNumberIntegerField() {
     $edit = [
       "{$field_name}[0][value]" => $integer_value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -327,7 +327,7 @@ public function testNumberFloatField() {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -351,7 +351,7 @@ public function testNumberFloatField() {
       $edit = [
         "{$field_name}[0][value]" => $wrong_entry,
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       $this->assertRaw(t('%name must be a number.', ['%name' => $field_name]));
     }
 
@@ -369,7 +369,7 @@ public function testNumberFloatField() {
       $edit = [
         "{$field_name}[0][value]" => $wrong_entry,
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       $this->assertRaw(t('%name must be a number.', ['%name' => $field_name]));
     }
   }
@@ -434,7 +434,7 @@ public function assertSetMinimumValue($field, $minimum_value) {
     $edit = [
       'settings[min]' => $minimum_value,
     ];
-    $this->drupalPostForm($field_configuration_url, $edit, t('Save settings'));
+    $this->drupalPostForm($field_configuration_url, $edit, 'Save settings');
     // Check if an error message is shown.
     $this->assertNoRaw(t('%name is not a valid number.', ['%name' => t('Minimum')]));
     // Check if a success message is shown.
diff --git a/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php b/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php
index cf2fb1dc7c90..4f3d1531b4b3 100644
--- a/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php
+++ b/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php
@@ -91,7 +91,7 @@ public function testReEnabledField() {
       'title[0][value]' => $this->randomMachineName(),
       'field_telephone[0][value]' => "123456789",
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw('<a href="tel:123456789">');
 
     // Test that the module can't be uninstalled from the UI while there is data
diff --git a/core/modules/field/tests/src/Functional/String/StringFieldTest.php b/core/modules/field/tests/src/Functional/String/StringFieldTest.php
index c8e66c0d1f5c..0943858886bb 100644
--- a/core/modules/field/tests/src/Functional/String/StringFieldTest.php
+++ b/core/modules/field/tests/src/Functional/String/StringFieldTest.php
@@ -99,7 +99,7 @@ public function _testTextfieldWidgets($field_type, $widget_type) {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
diff --git a/core/modules/field/tests/src/Functional/TranslationWebTest.php b/core/modules/field/tests/src/Functional/TranslationWebTest.php
index 3367d271f143..f8df68d70a2e 100644
--- a/core/modules/field/tests/src/Functional/TranslationWebTest.php
+++ b/core/modules/field/tests/src/Functional/TranslationWebTest.php
@@ -120,7 +120,7 @@ public function testFieldFormTranslationRevisions() {
       "{$field_name}[0][value]" => $entity->{$field_name}->value,
       'revision' => TRUE,
     ];
-    $this->drupalPostForm($this->entityTypeId . '/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm($this->entityTypeId . '/manage/' . $entity->id() . '/edit', $edit, 'Save');
 
     // Check translation revisions.
     $this->checkTranslationRevisions($entity->id(), $entity->getRevisionId(), $available_langcodes);
diff --git a/core/modules/field/tests/src/Functional/Views/FieldUITest.php b/core/modules/field/tests/src/Functional/Views/FieldUITest.php
index 28b336779a46..e7c7be5875d8 100644
--- a/core/modules/field/tests/src/Functional/Views/FieldUITest.php
+++ b/core/modules/field/tests/src/Functional/Views/FieldUITest.php
@@ -69,18 +69,18 @@ public function testHandlerUI() {
     sort($options, SORT_STRING);
     $this->assertEqual($options, ['text_default', 'text_trimmed'], 'The text formatters for a simple text field appear as expected.');
 
-    $this->drupalPostForm(NULL, ['options[type]' => 'text_trimmed'], t('Apply'));
+    $this->drupalPostForm(NULL, ['options[type]' => 'text_trimmed'], 'Apply');
 
     $this->drupalGet($url);
     $this->assertTrue($this->assertSession()->optionExists('edit-options-type', 'text_trimmed')->isSelected());
 
     $random_number = rand(100, 400);
-    $this->drupalPostForm(NULL, ['options[settings][trim_length]' => $random_number], t('Apply'));
+    $this->drupalPostForm(NULL, ['options[settings][trim_length]' => $random_number], 'Apply');
     $this->drupalGet($url);
     $this->assertSession()->fieldValueEquals('options[settings][trim_length]', $random_number);
 
     // Save the view and test whether the settings are saved.
-    $this->drupalPostForm('admin/structure/views/view/test_view_fieldapi', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/view/test_view_fieldapi', [], 'Save');
     $view = Views::getView('test_view_fieldapi');
     $view->initHandlers();
     $this->assertEqual($view->field['field_name_0']->options['type'], 'text_trimmed');
@@ -89,8 +89,8 @@ public function testHandlerUI() {
     // Now change the formatter back to 'default' which doesn't have any
     // settings. We want to ensure that the settings are empty then.
     $edit['options[type]'] = 'text_default';
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_view_fieldapi/default/field/field_name_0', $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_view_fieldapi', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_view_fieldapi/default/field/field_name_0', $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_view_fieldapi', [], 'Save');
     $view = Views::getView('test_view_fieldapi');
     $view->initHandlers();
     $this->assertEqual($view->field['field_name_0']->options['type'], 'text_default');
@@ -107,7 +107,7 @@ public function testHandlerUI() {
   public function testHandlerUIAggregation() {
     // Enable aggregation.
     $edit = ['group_by' => '1'];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view_fieldapi/default/group_by', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view_fieldapi/default/group_by', $edit, 'Apply');
 
     $url = "admin/structure/views/nojs/handler/test_view_fieldapi/default/field/field_name_0";
     $this->drupalGet($url);
@@ -143,7 +143,7 @@ public function testBooleanFilterHandler() {
     $field->save();
 
     $url = "admin/structure/views/nojs/add-handler/test_view_fieldapi/default/filter";
-    $this->drupalPostForm($url, ['name[node__' . $field_name . '.' . $field_name . '_value]' => TRUE], t('Add and configure @handler', ['@handler' => t('filter criteria')]));
+    $this->drupalPostForm($url, ['name[node__' . $field_name . '.' . $field_name . '_value]' => TRUE], 'Add and configure filter criteria');
     $this->assertSession()->statusCodeEquals(200);
     // Verify that using a boolean field as a filter also results in using the
     // boolean plugin.
diff --git a/core/modules/field/tests/src/FunctionalJavascript/Boolean/BooleanFormatterSettingsTest.php b/core/modules/field/tests/src/FunctionalJavascript/Boolean/BooleanFormatterSettingsTest.php
index a8629e0a8ce2..3769f6eaf6c8 100644
--- a/core/modules/field/tests/src/FunctionalJavascript/Boolean/BooleanFormatterSettingsTest.php
+++ b/core/modules/field/tests/src/FunctionalJavascript/Boolean/BooleanFormatterSettingsTest.php
@@ -115,7 +115,7 @@ public function testBooleanFormatterSettings() {
       $this->drupalPostForm(NULL, [
         'settings[on_label]' => $values[0],
         'settings[off_label]' => $values[1],
-      ], t('Save settings'));
+      ], 'Save settings');
 
       // Open the Manage Display page and trigger the field settings form.
       $this->drupalGet('admin/structure/types/manage/' . $this->bundle . '/display');
diff --git a/core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php b/core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php
index 98d470c90ca7..51301362ebc5 100644
--- a/core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php
+++ b/core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php
@@ -99,7 +99,7 @@ public function testFieldAdminHandler() {
     $this->assertFieldSelectOptions('settings[target_type]', array_keys(\Drupal::entityTypeManager()->getDefinitions()));
 
     // Second step: 'Field settings' form.
-    $this->drupalPostForm(NULL, [], t('Save field settings'));
+    $this->drupalPostForm(NULL, [], 'Save field settings');
 
     // The base handler should be selected by default.
     $this->assertSession()->fieldValueEquals('settings[handler]', 'default:node');
@@ -176,9 +176,7 @@ public function testFieldAdminHandler() {
     }
 
     // Third step: confirm.
-    $this->drupalPostForm(NULL, [
-      'required' => '1',
-    ], t('Save settings'));
+    $this->drupalPostForm(NULL, ['required' => '1'], 'Save settings');
 
     // Check that the field appears in the overview form.
     $this->assertSession()->elementTextContains('xpath', '//table[@id="field-overview"]//tr[@id="field-test"]/td[1]', "Test");
@@ -187,7 +185,7 @@ public function testFieldAdminHandler() {
     // field is required.
     // The first 'Edit' link is for the Body field.
     $this->clickLink(t('Edit'), 1);
-    $this->drupalPostForm(NULL, [], t('Save settings'));
+    $this->drupalPostForm(NULL, [], 'Save settings');
 
     // Switch the target type to 'taxonomy_term' and check that the settings
     // specific to its selection handler are displayed.
@@ -195,7 +193,7 @@ public function testFieldAdminHandler() {
     $edit = [
       'settings[target_type]' => 'taxonomy_term',
     ];
-    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, 'Save field settings');
     $this->drupalGet($bundle_path . '/fields/' . $field_name);
     $this->assertSession()->fieldExists('settings[handler_settings][auto_create]');
 
@@ -205,7 +203,7 @@ public function testFieldAdminHandler() {
     $edit = [
       'settings[target_type]' => 'user',
     ];
-    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, 'Save field settings');
     $this->drupalGet($bundle_path . '/fields/' . $field_name);
     $this->assertSession()->fieldValueEquals('settings[handler_settings][filter][type]', '_none');
     $this->assertSession()->fieldValueEquals('settings[handler_settings][sort][field]', '_none');
@@ -222,7 +220,7 @@ public function testFieldAdminHandler() {
     $edit = [
       'settings[target_type]' => 'node',
     ];
-    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, 'Save field settings');
 
     // Try to select the views handler.
     $this->drupalGet($bundle_path . '/fields/' . $field_name);
@@ -234,7 +232,7 @@ public function testFieldAdminHandler() {
     $assert_session->waitForElement('xpath', '//a[contains(text(), "Create a view")]');
     $assert_session->responseContains($views_text);
 
-    $this->drupalPostForm(NULL, [], t('Save settings'));
+    $this->drupalPostForm(NULL, [], 'Save settings');
     // If no eligible view is available we should see a message.
     $assert_session->pageTextContains('The views entity selection mode requires a view.');
 
@@ -247,14 +245,14 @@ public function testFieldAdminHandler() {
     $assert_session
       ->waitForField('settings[handler_settings][view][view_and_display]')
       ->setValue('test_entity_reference:entity_reference_1');
-    $this->drupalPostForm(NULL, [], t('Save settings'));
+    $this->drupalPostForm(NULL, [], 'Save settings');
     $assert_session->pageTextContains('Saved Test configuration.');
 
     // Switch the target type to 'entity_test'.
     $edit = [
       'settings[target_type]' => 'entity_test',
     ];
-    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm($bundle_path . '/fields/' . $field_name . '/storage', $edit, 'Save field settings');
     $this->drupalGet($bundle_path . '/fields/' . $field_name);
     $page->findField('settings[handler]')->setValue('views');
     $assert_session
@@ -263,7 +261,7 @@ public function testFieldAdminHandler() {
     $edit = [
       'required' => FALSE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
     $assert_session->pageTextContains('Saved Test configuration.');
   }
 
diff --git a/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php b/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php
index 39f5a6542b0a..d0aa02edf415 100644
--- a/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php
+++ b/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php
@@ -146,7 +146,7 @@ public function testNumberFormatter() {
     }
     $page->pressButton("${float_field}_plugin_settings_update");
     $assert_session->waitForElement('css', '.field-plugin-summary-cell > .ajax-new-content');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Check number_decimal and number_unformatted formatters behavior.
     $this->drupalGet('node/' . $node->id());
@@ -176,7 +176,7 @@ public function testNumberFormatter() {
     }
     $page->pressButton("${integer_field}_plugin_settings_update");
     $assert_session->waitForElement('css', '.field-plugin-summary-cell > .ajax-new-content');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Check number_integer formatter behavior.
     $this->drupalGet('node/' . $node->id());
diff --git a/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php b/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php
index bdf411905f5f..8e274e1d5569 100644
--- a/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php
+++ b/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php
@@ -68,7 +68,7 @@ public function testEntityViewModeUI() {
       'id' => strtolower($this->randomMachineName()) . '.' . strtolower($this->randomMachineName()),
       'label' => $this->randomString(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw('The machine-readable name must contain only lowercase letters, numbers, and underscores.');
 
     // Test adding a view mode.
@@ -76,7 +76,7 @@ public function testEntityViewModeUI() {
       'id' => strtolower($this->randomMachineName()),
       'label' => $this->randomString(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('Saved the %label view mode.', ['%label' => $edit['label']]));
 
     // Test editing the view mode.
@@ -93,7 +93,7 @@ public function testEntityViewModeUI() {
     // Test deleting the view mode.
     $this->clickLink(t('Delete'));
     $this->assertRaw(t('Are you sure you want to delete the view mode %label?', ['%label' => $edit['label']]));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('The view mode %label has been deleted.', ['%label' => $edit['label']]));
   }
 
@@ -122,7 +122,7 @@ public function testEntityFormModeUI() {
       'id' => strtolower($this->randomMachineName()) . '.' . strtolower($this->randomMachineName()),
       'label' => $this->randomString(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw('The machine-readable name must contain only lowercase letters, numbers, and underscores.');
 
     // Test adding a form mode.
@@ -130,7 +130,7 @@ public function testEntityFormModeUI() {
       'id' => strtolower($this->randomMachineName()),
       'label' => $this->randomString(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('Saved the %label form mode.', ['%label' => $edit['label']]));
 
     // Test editing the form mode.
@@ -147,7 +147,7 @@ public function testEntityFormModeUI() {
     // Test deleting the form mode.
     $this->clickLink(t('Delete'));
     $this->assertRaw(t('Are you sure you want to delete the form mode %label?', ['%label' => $edit['label']]));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('The form mode %label has been deleted.', ['%label' => $edit['label']]));
   }
 
diff --git a/core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php b/core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php
index 572475a62cac..894c9e3dfce2 100644
--- a/core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php
+++ b/core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php
@@ -55,7 +55,7 @@ public function testFieldUIRoutes() {
     $this->assertLocalTasks();
 
     $edit = ['display_modes_custom[compact]' => TRUE];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->drupalGet('admin/config/people/accounts/display/compact');
     $this->assertSession()->titleEquals('Manage display | Drupal');
     $this->assertLocalTasks();
@@ -69,7 +69,7 @@ public function testFieldUIRoutes() {
     $this->assertLocalTasks();
 
     $edit = ['display_modes_custom[register]' => TRUE];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->drupalGet('admin/config/people/accounts/form-display/register');
     $this->assertSession()->titleEquals('Manage form display | Drupal');
@@ -86,7 +86,7 @@ public function testFieldUIRoutes() {
     $this->container->get('router.builder')->rebuildIfNeeded();
 
     $edit = ['display_modes_custom[test]' => TRUE];
-    $this->drupalPostForm('admin/config/people/accounts/display', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/people/accounts/display', $edit, 'Save');
     $this->assertSession()->linkExists('Test');
 
     // Create new form mode and verify it's available on the Manage Form
@@ -99,7 +99,7 @@ public function testFieldUIRoutes() {
     $this->container->get('router.builder')->rebuildIfNeeded();
 
     $edit = ['display_modes_custom[test]' => TRUE];
-    $this->drupalPostForm('admin/config/people/accounts/form-display', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/people/accounts/form-display', $edit, 'Save');
     $this->assertSession()->linkExists('Test');
   }
 
diff --git a/core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php b/core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php
index 444c4a91105d..40976a0121d5 100644
--- a/core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php
+++ b/core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php
@@ -121,14 +121,14 @@ public function testViewModeCustom() {
       'fields[field_test][type]' => 'field_test_with_prepare_view',
       'fields[field_test][region]' => 'content',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, 'Save');
     $this->assertNodeViewText($node, 'rss', $output['field_test_with_prepare_view'], "The field is displayed as expected in view modes that use 'default' settings.");
 
     // Specialize the 'rss' mode, check that the field is displayed the same.
     $edit = [
       "display_modes_custom[rss]" => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, 'Save');
     $this->assertNodeViewText($node, 'rss', $output['field_test_with_prepare_view'], "The field is displayed as expected in newly specialized 'rss' mode.");
 
     // Set the field to 'hidden' in the view mode, check that the field is
@@ -136,7 +136,7 @@ public function testViewModeCustom() {
     $edit = [
       'fields[field_test][region]' => 'hidden',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display/rss', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display/rss', $edit, 'Save');
     $this->assertNodeViewNoText($node, 'rss', $value, "The field is hidden in 'rss' mode.");
 
     // Set the view mode back to 'default', check that the field is displayed
@@ -144,14 +144,14 @@ public function testViewModeCustom() {
     $edit = [
       "display_modes_custom[rss]" => FALSE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, 'Save');
     $this->assertNodeViewText($node, 'rss', $output['field_test_with_prepare_view'], "The field is displayed as expected when 'rss' mode is set back to 'default' settings.");
 
     // Specialize the view mode again.
     $edit = [
       "display_modes_custom[rss]" => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/types/manage/' . $this->type . '/display', $edit, 'Save');
     // Check that the previous settings for the view mode have been kept.
     $this->assertNodeViewNoText($node, 'rss', $value, "The previous settings are kept when 'rss' mode is specialized again.");
   }
@@ -191,7 +191,7 @@ public function testSingleViewMode() {
     $this->assertNoText('Use custom display settings for the following view modes', 'Custom display settings fieldset found.');
 
     // This may not trigger a notice when 'view_modes_custom' isn't available.
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary . '/overview/display', [], t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary . '/overview/display', [], 'Save');
   }
 
   /**
diff --git a/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php b/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
index 30c793dab346..42d47fb43161 100644
--- a/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
+++ b/core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.php
@@ -226,7 +226,7 @@ public function updateField() {
     $edit = [
       'settings[test_field_storage_setting]' => $string,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save field settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save field settings');
 
     // Go to the field edit page.
     $this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/' . $field_id);
@@ -234,7 +234,7 @@ public function updateField() {
       'settings[test_field_setting]' => $string,
     ];
     $this->assertText('Default value', 'Default value heading is shown');
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
 
     // Assert the field settings are correct.
     $this->assertFieldSettings($this->contentType, $this->fieldName, $string);
@@ -276,7 +276,7 @@ public function cardinalitySettings() {
       'cardinality' => 'number',
       'cardinality_number' => '',
     ];
-    $this->drupalPostForm($field_edit_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($field_edit_path, $edit, 'Save field settings');
     $this->assertText('Number of values is required.');
 
     // Submit a custom number.
@@ -284,7 +284,7 @@ public function cardinalitySettings() {
       'cardinality' => 'number',
       'cardinality_number' => 6,
     ];
-    $this->drupalPostForm($field_edit_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($field_edit_path, $edit, 'Save field settings');
     $this->assertText('Updated field Body field settings.');
     $this->drupalGet($field_edit_path);
     $this->assertSession()->fieldValueEquals('cardinality', 'number');
@@ -306,7 +306,7 @@ public function cardinalitySettings() {
       'cardinality' => 'number',
       'cardinality_number' => 1,
     ];
-    $this->drupalPostForm($field_edit_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($field_edit_path, $edit, 'Save field settings');
     $this->assertRaw(t('There is @count entity with @delta or more values in this field.', ['@count' => 1, '@delta' => 2]));
 
     // Create a second entity with three values.
@@ -317,7 +317,7 @@ public function cardinalitySettings() {
     $edit = [
       'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
     ];
-    $this->drupalPostForm($field_edit_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($field_edit_path, $edit, 'Save field settings');
     $this->assertText('Updated field Body field settings.');
     $this->drupalGet($field_edit_path);
     $this->assertSession()->fieldValueEquals('cardinality', FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
@@ -329,21 +329,21 @@ public function cardinalitySettings() {
       'cardinality' => 'number',
       'cardinality_number' => 1,
     ];
-    $this->drupalPostForm($field_edit_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($field_edit_path, $edit, 'Save field settings');
     $this->assertRaw(t('There are @count entities with @delta or more values in this field.', ['@count' => 2, '@delta' => 2]));
 
     $edit = [
       'cardinality' => 'number',
       'cardinality_number' => 2,
     ];
-    $this->drupalPostForm($field_edit_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($field_edit_path, $edit, 'Save field settings');
     $this->assertRaw(t('There is @count entity with @delta or more values in this field.', ['@count' => 1, '@delta' => 3]));
 
     $edit = [
       'cardinality' => 'number',
       'cardinality_number' => 3,
     ];
-    $this->drupalPostForm($field_edit_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($field_edit_path, $edit, 'Save field settings');
   }
 
   /**
@@ -369,7 +369,7 @@ protected function addPersistentFieldStorage() {
       // Delete all the body field instances.
       $this->drupalGet('admin/structure/types/manage/' . $node_type . '/fields/node.' . $node_type . '.' . $this->fieldName);
       $this->clickLink(t('Delete'));
-      $this->drupalPostForm(NULL, [], t('Delete'));
+      $this->drupalPostForm(NULL, [], 'Delete');
     }
     // Check "Re-use existing field" appears.
     $this->drupalGet('admin/structure/types/manage/page/fields/add-field');
@@ -420,7 +420,7 @@ public function testFieldPrefix() {
       'label' => $field_exceed_max_length_label,
       'field_name' => $field_exceed_max_length_input,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/' . $this->contentType . '/fields/add-field', $edit, t('Save and continue'));
+    $this->drupalPostForm('admin/structure/types/manage/' . $this->contentType . '/fields/add-field', $edit, 'Save and continue');
     $this->assertText('Machine-readable name cannot be longer than 22 characters but is currently 23 characters long.');
 
     // Create a valid field.
@@ -462,12 +462,12 @@ public function testDefaultValue() {
 
     // Check that invalid default values are rejected.
     $edit = [$element_name => '-1'];
-    $this->drupalPostForm($admin_path, $edit, t('Save settings'));
+    $this->drupalPostForm($admin_path, $edit, 'Save settings');
     $this->assertText("$field_name does not accept the value -1", 'Form validation failed.');
 
     // Check that the default value is saved.
     $edit = [$element_name => '1'];
-    $this->drupalPostForm($admin_path, $edit, t('Save settings'));
+    $this->drupalPostForm($admin_path, $edit, 'Save settings');
     $this->assertText("Saved $field_name configuration", 'The form was successfully submitted.');
     $field = FieldConfig::loadByName('node', $this->contentType, $field_name);
     $this->assertEqual($field->getDefaultValueLiteral(), [['value' => 1]], 'The default value was correctly saved.');
@@ -478,7 +478,7 @@ public function testDefaultValue() {
 
     // Check that the default value can be emptied.
     $edit = [$element_name => ''];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
     $this->assertText("Saved $field_name configuration", 'The form was successfully submitted.');
     $field = FieldConfig::loadByName('node', $this->contentType, $field_name);
     $this->assertEqual($field->getDefaultValueLiteral(), [], 'The default value was correctly saved.');
@@ -493,10 +493,10 @@ public function testDefaultValue() {
     $edit = [
       'required' => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
 
     $this->drupalGet($admin_path);
-    $this->drupalPostForm(NULL, [], t('Save settings'));
+    $this->drupalPostForm(NULL, [], 'Save settings');
     $this->assertText("Saved $field_name configuration", 'The form was successfully submitted.');
     $field = FieldConfig::loadByName('node', $this->contentType, $field_name);
     $this->assertEqual($field->getDefaultValueLiteral(), [], 'The default value was correctly saved.');
@@ -559,13 +559,13 @@ public function testDisallowedFieldNames() {
     // Try with an entity key.
     $edit['field_name'] = 'title';
     $bundle_path = 'admin/structure/types/manage/' . $this->contentType;
-    $this->drupalPostForm("$bundle_path/fields/add-field", $edit, t('Save and continue'));
+    $this->drupalPostForm("$bundle_path/fields/add-field", $edit, 'Save and continue');
     $this->assertText('The machine-readable name is already in use. It must be unique.');
 
     // Try with a base field.
     $edit['field_name'] = 'sticky';
     $bundle_path = 'admin/structure/types/manage/' . $this->contentType;
-    $this->drupalPostForm("$bundle_path/fields/add-field", $edit, t('Save and continue'));
+    $this->drupalPostForm("$bundle_path/fields/add-field", $edit, 'Save and continue');
     $this->assertText('The machine-readable name is already in use. It must be unique.');
   }
 
@@ -667,7 +667,7 @@ public function testDuplicateFieldName() {
       'new_storage_type' => 'entity_reference',
     ];
     $url = 'admin/structure/types/manage/' . $this->contentType . '/fields/add-field';
-    $this->drupalPostForm($url, $edit, t('Save and continue'));
+    $this->drupalPostForm($url, $edit, 'Save and continue');
 
     $this->assertText('The machine-readable name is already in use. It must be unique.');
     $this->assertSession()->addressEquals($url);
@@ -731,7 +731,7 @@ public function testHelpDescriptions() {
     $edit = [
       'description' => '<strong>Test with an upload field.',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_image', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_image', $edit, 'Save settings');
 
     // Check that hook_field_widget_form_alter() does believe this is the
     // default value form.
@@ -741,7 +741,7 @@ public function testHelpDescriptions() {
     $edit = [
       'description' => '<em>Test with a non upload field.',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_tags', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_tags', $edit, 'Save settings');
 
     $this->drupalGet('node/add/article');
     $this->assertRaw('<strong>Test with an upload field.</strong>');
diff --git a/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php b/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php
index a8cb459adecd..b38a62e7e439 100644
--- a/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php
+++ b/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php
@@ -44,17 +44,17 @@ public function fieldUIAddNewField($bundle_path, $field_name, $label = NULL, $fi
     }
 
     // First step: 'Add field' page.
-    $this->drupalPostForm($bundle_path, $initial_edit, t('Save and continue'));
+    $this->drupalPostForm($bundle_path, $initial_edit, 'Save and continue');
     $this->assertRaw(t('These settings apply to the %label field everywhere it is used.', ['%label' => $label]));
     // Test Breadcrumbs.
     $this->assertSession()->linkExists($label, 0, 'Field label is correct in the breadcrumb of the storage settings page.');
 
     // Second step: 'Storage settings' form.
-    $this->drupalPostForm(NULL, $storage_edit, t('Save field settings'));
+    $this->drupalPostForm(NULL, $storage_edit, 'Save field settings');
     $this->assertRaw(t('Updated field %label field settings.', ['%label' => $label]));
 
     // Third step: 'Field settings' form.
-    $this->drupalPostForm(NULL, $field_edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $field_edit, 'Save settings');
     $this->assertRaw(t('Saved %label configuration.', ['%label' => $label]));
 
     // Check that the field appears in the overview form.
@@ -86,7 +86,7 @@ public function fieldUIAddExistingField($bundle_path, $existing_storage_name, $l
     ];
 
     // First step: 'Re-use existing field' on the 'Add field' page.
-    $this->drupalPostForm("$bundle_path/fields/add-field", $initial_edit, t('Save and continue'));
+    $this->drupalPostForm("$bundle_path/fields/add-field", $initial_edit, 'Save and continue');
     // Set the main content to only the content region because the label can
     // contain HTML which will be auto-escaped by Twig.
     $this->assertRaw('field-config-edit-form');
@@ -94,7 +94,7 @@ public function fieldUIAddExistingField($bundle_path, $existing_storage_name, $l
     $this->assertNoRaw('&amp;lt;');
 
     // Second step: 'Field settings' form.
-    $this->drupalPostForm(NULL, $field_edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $field_edit, 'Save settings');
     $this->assertRaw(t('Saved %label configuration.', ['%label' => $label]));
 
     // Check that the field appears in the overview form.
@@ -125,7 +125,7 @@ public function fieldUIDeleteField($bundle_path, $field_name, $label, $bundle_la
     $this->assertSession()->linkExists($label, 0, 'Field label is correct in the breadcrumb of the field delete page.');
 
     // Submit confirmation form.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('The field %label has been deleted from the %type content type.', ['%label' => $label, '%type' => $bundle_label]));
 
     // Check that the field does not appear in the overview form.
diff --git a/core/modules/file/tests/src/Functional/FileFieldDisplayTest.php b/core/modules/file/tests/src/Functional/FileFieldDisplayTest.php
index c6e080cb0ac7..e610e7d8ba44 100644
--- a/core/modules/file/tests/src/Functional/FileFieldDisplayTest.php
+++ b/core/modules/file/tests/src/Functional/FileFieldDisplayTest.php
@@ -54,7 +54,7 @@ public function testNodeDisplay() {
           "fields[$field_name][region]" => 'content',
         ];
       }
-      $this->drupalPostForm("admin/structure/types/manage/$type_name/display", $edit, t('Save'));
+      $this->drupalPostForm("admin/structure/types/manage/$type_name/display", $edit, 'Save');
       $this->drupalGet('node/' . $node->id());
       $this->assertNoText($field_name, new FormattableMarkup('Field label is hidden when no file attached for formatter %formatter', ['%formatter' => $formatter]));
     }
@@ -83,7 +83,7 @@ public function testNodeDisplay() {
 
     // Turn the "display" option off and check that the file is no longer displayed.
     $edit = [$field_name . '[0][display]' => FALSE];
-    $this->drupalPostForm('node/' . $nid . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $nid . '/edit', $edit, 'Save');
 
     $this->assertNoRaw($default_output);
 
@@ -93,7 +93,7 @@ public function testNodeDisplay() {
       $field_name . '[0][description]' => $description,
       $field_name . '[0][display]' => TRUE,
     ];
-    $this->drupalPostForm('node/' . $nid . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $nid . '/edit', $edit, 'Save');
     $this->assertText($description);
 
     // Ensure the filename in the link's title attribute is escaped.
@@ -103,12 +103,12 @@ public function testNodeDisplay() {
     // Add a second file.
     $name = 'files[' . $field_name . '_1][]';
     $edit_upload[$name] = \Drupal::service('file_system')->realpath($test_file->getFileUri());
-    $this->drupalPostForm("node/$nid/edit", $edit_upload, t('Upload'));
+    $this->drupalPostForm("node/$nid/edit", $edit_upload, 'Upload');
 
     // Uncheck the display checkboxes and go to the preview.
     $edit[$field_name . '[0][display]'] = FALSE;
     $edit[$field_name . '[1][display]'] = FALSE;
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
+    $this->drupalPostForm(NULL, $edit, 'Preview');
     $this->clickLink(t('Back to content editing'));
     // First file.
     $this->assertRaw($field_name . '[0][display]');
@@ -159,20 +159,20 @@ public function testDescToggle() {
       'name' => $type_name,
       'type' => $type_name,
     ];
-    $this->drupalPostForm('admin/structure/types/add', $edit, t('Save and manage fields'));
+    $this->drupalPostForm('admin/structure/types/add', $edit, 'Save and manage fields');
     $edit = [
       'new_storage_type' => $field_type,
       'field_name' => $field_name,
       'label' => $this->randomString(),
     ];
-    $this->drupalPostForm('/admin/structure/types/manage/' . $type_name . '/fields/add-field', $edit, t('Save and continue'));
-    $this->drupalPostForm(NULL, [], t('Save field settings'));
+    $this->drupalPostForm('/admin/structure/types/manage/' . $type_name . '/fields/add-field', $edit, 'Save and continue');
+    $this->drupalPostForm(NULL, [], 'Save field settings');
     // Ensure the description field is selected on the field instance settings
     // form. That's what this test is all about.
     $edit = [
       'settings[description_field]' => TRUE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->drupalPostForm(NULL, $edit, 'Save settings');
     // Add a node of our new type and upload a file to it.
     $file = current($this->drupalGetTestFiles('text'));
     $title = $this->randomString();
@@ -180,7 +180,7 @@ public function testDescToggle() {
       'title[0][value]' => $title,
       'files[field_' . $field_name . '_0]' => \Drupal::service('file_system')->realpath($file->uri),
     ];
-    $this->drupalPostForm('node/add/' . $type_name, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $type_name, $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($title);
     $this->drupalGet('node/' . $node->id() . '/edit');
     $this->assertText('The description may be used as the label of the link to the file.');
@@ -210,7 +210,7 @@ public function testDescriptionDefaultFileFieldDisplay() {
 
     // Add file description.
     $description = 'This is the test file description';
-    $this->drupalPostForm("node/$nid/edit", [$field_name . '[0][description]' => $description], t('Save'));
+    $this->drupalPostForm("node/$nid/edit", [$field_name . '[0][description]' => $description], 'Save');
 
     // Load uncached node.
     \Drupal::entityTypeManager()->getStorage('node')->resetCache([$nid]);
diff --git a/core/modules/file/tests/src/Functional/FileFieldRSSContentTest.php b/core/modules/file/tests/src/Functional/FileFieldRSSContentTest.php
index bb46881e4c75..72fb4bb44438 100644
--- a/core/modules/file/tests/src/Functional/FileFieldRSSContentTest.php
+++ b/core/modules/file/tests/src/Functional/FileFieldRSSContentTest.php
@@ -38,7 +38,7 @@ public function testFileFieldRSSContent() {
     $edit = [
       "display_modes_custom[rss]" => '1',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Change the format to 'RSS enclosure'.
     $this->drupalGet("admin/structure/types/manage/$type_name/display/rss");
@@ -46,7 +46,7 @@ public function testFileFieldRSSContent() {
       "fields[$field_name][type]" => 'file_rss_enclosure',
       "fields[$field_name][region]" => 'content',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Create a new node with a file field set. Promote to frontpage
     // needs to be set so this node will appear in the RSS feed.
diff --git a/core/modules/file/tests/src/Functional/FileFieldRevisionTest.php b/core/modules/file/tests/src/Functional/FileFieldRevisionTest.php
index e812cd8ee4c7..49c60380ac5e 100644
--- a/core/modules/file/tests/src/Functional/FileFieldRevisionTest.php
+++ b/core/modules/file/tests/src/Functional/FileFieldRevisionTest.php
@@ -75,7 +75,7 @@ public function testRevisions() {
 
     // Save a new version of the node without any changes.
     // Check that the file is still the same as the previous revision.
-    $this->drupalPostForm('node/' . $nid . '/edit', ['revision' => '1'], t('Save'));
+    $this->drupalPostForm('node/' . $nid . '/edit', ['revision' => '1'], 'Save');
     $node_storage->resetCache([$nid]);
     $node = $node_storage->load($nid);
     $node_file_r3 = File::load($node->{$field_name}->target_id);
@@ -84,7 +84,7 @@ public function testRevisions() {
     $this->assertFileIsPermanent($node_file_r3, 'New revision file is permanent.');
 
     // Revert to the first revision and check that the original file is active.
-    $this->drupalPostForm('node/' . $nid . '/revisions/' . $node_vid_r1 . '/revert', [], t('Revert'));
+    $this->drupalPostForm('node/' . $nid . '/revisions/' . $node_vid_r1 . '/revert', [], 'Revert');
     $node_storage->resetCache([$nid]);
     $node = $node_storage->load($nid);
     $node_file_r4 = File::load($node->{$field_name}->target_id);
@@ -93,7 +93,7 @@ public function testRevisions() {
 
     // Delete the second revision and check that the file is kept (since it is
     // still being used by the third revision).
-    $this->drupalPostForm('node/' . $nid . '/revisions/' . $node_vid_r2 . '/delete', [], t('Delete'));
+    $this->drupalPostForm('node/' . $nid . '/revisions/' . $node_vid_r2 . '/delete', [], 'Delete');
     $this->assertFileExists($node_file_r3->getFileUri());
     $this->assertFileEntryExists($node_file_r3, 'Second file entry is still available after deleting second revision, since it is being used by the third revision.');
     $this->assertFileIsPermanent($node_file_r3, 'Second file entry is still permanent after deleting second revision, since it is being used by the third revision.');
@@ -106,7 +106,7 @@ public function testRevisions() {
     $this->drupalGet('user/' . $user->id() . '/edit');
 
     // Delete the third revision and check that the file is not deleted yet.
-    $this->drupalPostForm('node/' . $nid . '/revisions/' . $node_vid_r3 . '/delete', [], t('Delete'));
+    $this->drupalPostForm('node/' . $nid . '/revisions/' . $node_vid_r3 . '/delete', [], 'Delete');
     $this->assertFileExists($node_file_r3->getFileUri());
     $this->assertFileEntryExists($node_file_r3, 'Second file entry is still available after deleting third revision, since it is being used by the user.');
     $this->assertFileIsPermanent($node_file_r3, 'Second file entry is still permanent after deleting third revision, since it is being used by the user.');
@@ -138,7 +138,7 @@ public function testRevisions() {
     $this->assertFileEntryNotExists($node_file_r3, 'Second file entry is now deleted after deleting third revision, since it is no longer being used by any other nodes.');
 
     // Delete the entire node and check that the original file is deleted.
-    $this->drupalPostForm('node/' . $nid . '/delete', [], t('Delete'));
+    $this->drupalPostForm('node/' . $nid . '/delete', [], 'Delete');
     // Call file_cron() to clean up the file. Make sure the changed timestamp
     // of the file is older than the system.file.temporary_maximum_age
     // configuration value. We use an UPDATE statement because using the API
diff --git a/core/modules/file/tests/src/Functional/FileFieldTestBase.php b/core/modules/file/tests/src/Functional/FileFieldTestBase.php
index dbb7a4e4b0c8..2292c8bdf316 100644
--- a/core/modules/file/tests/src/Functional/FileFieldTestBase.php
+++ b/core/modules/file/tests/src/Functional/FileFieldTestBase.php
@@ -175,11 +175,11 @@ public function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_re
       }
       else {
         $page->attachFileToField($name, $file_path);
-        $this->drupalPostForm(NULL, [], t('Upload'));
+        $this->drupalPostForm(NULL, [], 'Upload');
       }
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     return $nid;
   }
@@ -194,8 +194,8 @@ public function removeNodeFile($nid, $new_revision = TRUE) {
       'revision' => (string) (int) $new_revision,
     ];
 
-    $this->drupalPostForm('node/' . $nid . '/edit', [], t('Remove'));
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm('node/' . $nid . '/edit', [], 'Remove');
+    $this->drupalPostForm(NULL, $edit, 'Save');
   }
 
   /**
@@ -207,8 +207,8 @@ public function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE)
       'revision' => (string) (int) $new_revision,
     ];
 
-    $this->drupalPostForm('node/' . $nid . '/edit', [], t('Remove'));
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm('node/' . $nid . '/edit', [], 'Remove');
+    $this->drupalPostForm(NULL, $edit, 'Save');
   }
 
   /**
diff --git a/core/modules/file/tests/src/Functional/FileFieldValidateTest.php b/core/modules/file/tests/src/Functional/FileFieldValidateTest.php
index 9b4d14bd50d7..5aa8489052f3 100644
--- a/core/modules/file/tests/src/Functional/FileFieldValidateTest.php
+++ b/core/modules/file/tests/src/Functional/FileFieldValidateTest.php
@@ -35,7 +35,7 @@ public function testRequired() {
     // Try to post a new node without uploading a file.
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
-    $this->drupalPostForm('node/add/' . $type_name, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $type_name, $edit, 'Save');
     $this->assertRaw(t('@title field is required.', ['@title' => $field->getLabel()]));
 
     // Create a new node with the uploaded file.
@@ -56,7 +56,7 @@ public function testRequired() {
     // Try to post a new node without uploading a file in the multivalue field.
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
-    $this->drupalPostForm('node/add/' . $type_name, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $type_name, $edit, 'Save');
     $this->assertRaw(t('@title field is required.', ['@title' => $field->getLabel()]));
 
     // Create a new node with the uploaded file into the multivalue field.
diff --git a/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php b/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php
index 3486c626ada0..5a8cd503ddff 100644
--- a/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php
+++ b/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php
@@ -99,7 +99,7 @@ public function testSingleValuedWidget() {
     $this->drupalGet("node/$nid/edit");
     $this->assertSession()->buttonNotExists('Upload');
     $this->assertSession()->buttonExists('Remove');
-    $this->drupalPostForm(NULL, [], t('Remove'));
+    $this->drupalPostForm(NULL, [], 'Remove');
 
     // Ensure the page now has an upload button instead of a remove button.
     $this->assertSession()->buttonNotExists('Remove');
@@ -110,7 +110,7 @@ public function testSingleValuedWidget() {
     $this->assertTrue(isset($label[0]), 'Label for upload found.');
 
     // Save the node and ensure it does not have the file.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $node = $node_storage->loadUnchanged($nid);
     $this->assertTrue(empty($node->{$field_name}->target_id), 'File was successfully removed from the node.');
   }
@@ -146,7 +146,7 @@ public function testMultiValuedWidget() {
         $edit = ['files[' . $each_field_name . '_' . $delta . '][]' => \Drupal::service('file_system')->realpath($test_file->getFileUri())];
         // If the Upload button doesn't exist, drupalPostForm() will
         // automatically fail with an assertion message.
-        $this->drupalPostForm(NULL, $edit, t('Upload'));
+        $this->drupalPostForm(NULL, $edit, 'Upload');
       }
     }
     $this->assertSession()->buttonNotExists('Upload');
@@ -200,7 +200,7 @@ public function testMultiValuedWidget() {
     $this->assertSession()->buttonNotExists('Remove');
 
     // Save the node and ensure it does not have any files.
-    $this->drupalPostForm(NULL, ['title[0][value]' => $this->randomMachineName()], t('Save'));
+    $this->drupalPostForm(NULL, ['title[0][value]' => $this->randomMachineName()], 'Save');
     preg_match('/node\/([0-9])/', $this->getUrl(), $matches);
     $nid = $matches[1];
     $node = $node_storage->loadUnchanged($nid);
@@ -259,7 +259,7 @@ public function testPrivateFileSetting() {
 
     // Change the field setting to make its files private, and upload a file.
     $edit = ['settings[uri_scheme]' => 'private'];
-    $this->drupalPostForm("admin/structure/types/manage/$type_name/fields/$field_id/storage", $edit, t('Save field settings'));
+    $this->drupalPostForm("admin/structure/types/manage/$type_name/fields/$field_id/storage", $edit, 'Save field settings');
     $nid = $this->uploadNodeFile($test_file, $field_name, $type_name);
     $node = $node_storage->loadUnchanged($nid);
     $node_file = File::load($node->{$field_name}->target_id);
@@ -310,7 +310,7 @@ public function testPrivateFileComment() {
     $edit = [
       'title[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
     // Add a comment with a file.
@@ -319,7 +319,7 @@ public function testPrivateFileComment() {
       'files[field_' . $name . '_' . 0 . ']' => \Drupal::service('file_system')->realpath($text_file->getFileUri()),
       'comment_body[0][value]' => $comment_body = $this->randomMachineName(),
     ];
-    $this->drupalPostForm('node/' . $node->id(), $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id(), $edit, 'Save');
 
     // Get the comment ID.
     preg_match('/comment-([0-9]+)/', $this->getUrl(), $matches);
@@ -345,7 +345,7 @@ public function testPrivateFileComment() {
     // Unpublishes node.
     $this->drupalLogin($this->adminUser);
     $edit = ['status[value]' => FALSE];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Ensures normal user can no longer download the file.
     $this->drupalLogin($user);
@@ -373,14 +373,14 @@ public function testWidgetValidation() {
 
     // Upload file with incorrect extension, check for validation error.
     $edit[$name] = \Drupal::service('file_system')->realpath($test_file_image->getFileUri());
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
 
     $error_message = t('Only files with the following extensions are allowed: %files-allowed.', ['%files-allowed' => 'txt']);
     $this->assertRaw($error_message);
 
     // Upload file with correct extension, check that error message is removed.
     $edit[$name] = \Drupal::service('file_system')->realpath($test_file_text->getFileUri());
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
     $this->assertNoRaw($error_message);
   }
 
@@ -502,7 +502,7 @@ protected function doTestTemporaryFileRemovalExploit(UserInterface $victim_user,
 
     // Attach a file to a node.
     $edit['files[' . $field_name . '_0]'] = $this->container->get('file_system')->realpath($test_file->getFileUri());
-    $this->drupalPostForm(Url::fromRoute('node.add', ['node_type' => $type_name]), $edit, t('Save'));
+    $this->drupalPostForm(Url::fromRoute('node.add', ['node_type' => $type_name]), $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
     /** @var \Drupal\file\FileInterface $node_file */
diff --git a/core/modules/file/tests/src/Functional/FileListingTest.php b/core/modules/file/tests/src/Functional/FileListingTest.php
index 4a9a4f33a0c6..69dfb0c30399 100644
--- a/core/modules/file/tests/src/Functional/FileListingTest.php
+++ b/core/modules/file/tests/src/Functional/FileListingTest.php
@@ -107,7 +107,7 @@ public function testFileListingPages() {
       $edit = [
         'files[file_0]' => \Drupal::service('file_system')->realpath($file->getFileUri()),
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save'));
+      $this->drupalPostForm(NULL, $edit, 'Save');
       $node = Node::load($node->id());
     }
 
diff --git a/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php b/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php
index 872aa9e09b1f..d04dc0fcb12c 100644
--- a/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php
+++ b/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php
@@ -38,7 +38,7 @@ public function testManagedFile() {
           $file_field_name = $multiple ? 'files[' . $input_base_name . '][]' : 'files[' . $input_base_name . ']';
 
           // Submit without a file.
-          $this->drupalPostForm($path, [], t('Save'));
+          $this->drupalPostForm($path, [], 'Save');
           $this->assertRaw(t('The file ids are %fids.', ['%fids' => implode(',', [])]));
 
           // Submit with a file, but with an invalid form token. Ensure the file
@@ -50,7 +50,7 @@ public function testManagedFile() {
           $edit = [
             $file_field_name => \Drupal::service('file_system')->realpath($test_file->getFileUri()),
           ];
-          $this->drupalPostForm(NULL, $edit, t('Save'));
+          $this->drupalPostForm(NULL, $edit, 'Save');
           $this->assertText('The form has become outdated.');
           $last_fid = $this->getLastFileId();
           $this->assertEqual($last_fid_prior, $last_fid, 'File was not saved when uploaded with an invalid form token.');
@@ -58,27 +58,27 @@ public function testManagedFile() {
           // Submit a new file, without using the Upload button.
           $last_fid_prior = $this->getLastFileId();
           $edit = [$file_field_name => \Drupal::service('file_system')->realpath($test_file->getFileUri())];
-          $this->drupalPostForm($path, $edit, t('Save'));
+          $this->drupalPostForm($path, $edit, 'Save');
           $last_fid = $this->getLastFileId();
           $this->assertTrue($last_fid > $last_fid_prior, 'New file got saved.');
           $this->assertRaw(t('The file ids are %fids.', ['%fids' => implode(',', [$last_fid])]));
 
           // Submit no new input, but with a default file.
-          $this->drupalPostForm($path . '/' . $last_fid, [], t('Save'));
+          $this->drupalPostForm($path . '/' . $last_fid, [], 'Save');
           $this->assertRaw(t('The file ids are %fids.', ['%fids' => implode(',', [$last_fid])]));
 
           // Upload, then Submit.
           $last_fid_prior = $this->getLastFileId();
           $this->drupalGet($path);
           $edit = [$file_field_name => \Drupal::service('file_system')->realpath($test_file->getFileUri())];
-          $this->drupalPostForm(NULL, $edit, t('Upload'));
+          $this->drupalPostForm(NULL, $edit, 'Upload');
           $last_fid = $this->getLastFileId();
           $this->assertTrue($last_fid > $last_fid_prior, 'New file got uploaded.');
-          $this->drupalPostForm(NULL, [], t('Save'));
+          $this->drupalPostForm(NULL, [], 'Save');
           $this->assertRaw(t('The file ids are %fids.', ['%fids' => implode(',', [$last_fid])]));
 
           // Remove, then Submit.
-          $remove_button_title = $multiple ? t('Remove selected') : t('Remove');
+          $remove_button_title = $multiple ? 'Remove selected' : 'Remove';
           $remove_edit = [];
           if ($multiple) {
             $selected_checkbox = ($tree ? 'nested[file]' : 'file') . '[file_' . $last_fid . '][selected]';
@@ -86,13 +86,13 @@ public function testManagedFile() {
           }
           $this->drupalGet($path . '/' . $last_fid);
           $this->drupalPostForm(NULL, $remove_edit, $remove_button_title);
-          $this->drupalPostForm(NULL, [], t('Save'));
+          $this->drupalPostForm(NULL, [], 'Save');
           $this->assertRaw(t('The file ids are %fids.', ['%fids' => '']));
 
           // Upload, then Remove, then Submit.
           $this->drupalGet($path);
           $edit = [$file_field_name => \Drupal::service('file_system')->realpath($test_file->getFileUri())];
-          $this->drupalPostForm(NULL, $edit, t('Upload'));
+          $this->drupalPostForm(NULL, $edit, 'Upload');
           $remove_edit = [];
           if ($multiple) {
             $selected_checkbox = ($tree ? 'nested[file]' : 'file') . '[file_' . $this->getLastFileId() . '][selected]';
@@ -100,7 +100,7 @@ public function testManagedFile() {
           }
           $this->drupalPostForm(NULL, $remove_edit, $remove_button_title);
 
-          $this->drupalPostForm(NULL, [], t('Save'));
+          $this->drupalPostForm(NULL, [], 'Save');
           $this->assertRaw(t('The file ids are %fids.', ['%fids' => '']));
         }
       }
@@ -114,17 +114,17 @@ public function testManagedFile() {
     $this->drupalGet($path);
 
     // Add a single file to the upload field.
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
     $fid_list[] = $this->getLastFileId();
     $this->assertSession()->fieldExists("nested[file][file_{$fid_list[0]}][selected]");
 
     // Add another file to the same upload field.
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
     $fid_list[] = $this->getLastFileId();
     $this->assertSession()->fieldExists("nested[file][file_{$fid_list[1]}][selected]");
 
     // Save the entire form.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     // Check that two files are saved into a single multiple file element.
     $this->assertRaw(t('The file ids are %fids.', ['%fids' => implode(',', $fid_list)]));
 
@@ -132,7 +132,7 @@ public function testManagedFile() {
     $edit = [
       'nested[file][file_' . $fid_list[0] . '][selected]' => '1',
     ];
-    $this->drupalPostForm($path . '/' . implode(',', $fid_list), $edit, t('Remove selected'));
+    $this->drupalPostForm($path . '/' . implode(',', $fid_list), $edit, 'Remove selected');
 
     // Check that the first file has been deleted but not the second.
     $this->assertSession()->fieldNotExists("nested[file][file_{$fid_list[0]}][selected]");
@@ -148,13 +148,13 @@ public function testManagedFileRemoved() {
     $file_field_name = 'files[nested_file][]';
 
     $edit = [$file_field_name => \Drupal::service('file_system')->realpath($test_file->getFileUri())];
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
 
     $fid = $this->getLastFileId();
     $file = \Drupal::entityTypeManager()->getStorage('file')->load($fid);
     $file->delete();
 
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
     // We expect the title 'Managed <em>file & butter</em>' which got escaped
     // via a t() call before.
     $this->assertRaw('The file referenced by the Managed <em>file &amp; butter</em> field does not exist.');
@@ -168,7 +168,7 @@ public function testFileNameTrim() {
     $last_fid_prior = $this->getLastFileId();
     $this->drupalPostForm('file/test/0/0/0', [
       'files[file]' => \Drupal::service('file_system')->realpath('public://.leading-period.txt'),
-    ], t('Save'));
+    ], 'Save');
     $next_fid = $this->getLastFileId();
     $this->assertGreaterThan($last_fid_prior, $next_fid);
     $file = File::load($next_fid);
@@ -184,8 +184,8 @@ public function testFileRemovedFromDisk() {
     $file_field_name = 'files[nested_file][]';
 
     $edit = [$file_field_name => \Drupal::service('file_system')->realpath($test_file->getFileUri())];
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $fid = $this->getLastFileId();
     /** @var $file \Drupal\file\FileInterface */
diff --git a/core/modules/file/tests/src/Functional/FileOnTranslatedEntityTest.php b/core/modules/file/tests/src/Functional/FileOnTranslatedEntityTest.php
index b36fe78683b3..df2a308c52f6 100644
--- a/core/modules/file/tests/src/Functional/FileOnTranslatedEntityTest.php
+++ b/core/modules/file/tests/src/Functional/FileOnTranslatedEntityTest.php
@@ -66,11 +66,11 @@ protected function setUp(): void {
     // Add a second and third language.
     $edit = [];
     $edit['predefined_langcode'] = 'fr';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     $edit = [];
     $edit['predefined_langcode'] = 'nl';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable translation for "Basic page" nodes.
     $edit = [
@@ -78,7 +78,7 @@ protected function setUp(): void {
       'settings[node][page][translatable]' => 1,
       "settings[node][page][fields][$this->fieldName]" => 1,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
   }
 
   /**
@@ -96,18 +96,18 @@ public function testSyncedFiles() {
     $edit = [];
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('text')[0]->uri);
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/edit', $edit, 'Save');
     $first_fid = $this->getLastFileId();
 
     // Translate the node into French: remove the existing file.
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/fr', [], t('Remove'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/fr', [], 'Remove');
 
     // Upload a different file.
     $edit = [];
     $edit['title[0][value]'] = 'Bill Murray';
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('text')[1]->uri);
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     // This inspects the HTML after the post of the translation, the file
     // should be displayed on the original node.
     $this->assertRaw('file--mime-text-plain');
@@ -126,14 +126,14 @@ public function testSyncedFiles() {
     $this->assertTrue($file->isPermanent());
 
     // Translate the node into dutch: remove the existing file.
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/nl', [], t('Remove'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/nl', [], 'Remove');
 
     // Upload a different file.
     $edit = [];
     $edit['title[0][value]'] = 'Scarlett Johansson';
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('text')[2]->uri);
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $third_fid = $this->getLastFileId();
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
@@ -154,14 +154,14 @@ public function testSyncedFiles() {
     $this->assertTrue($file->isPermanent());
 
     // Edit the second translation: remove the existing file.
-    $this->drupalPostForm('fr/node/' . $default_language_node->id() . '/edit', [], t('Remove'));
+    $this->drupalPostForm('fr/node/' . $default_language_node->id() . '/edit', [], 'Remove');
 
     // Upload a different file.
     $edit = [];
     $edit['title[0][value]'] = 'David Bowie';
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('text')[3]->uri);
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $replaced_second_fid = $this->getLastFileId();
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
@@ -178,7 +178,7 @@ public function testSyncedFiles() {
     $this->assertTrue($file->isPermanent());
 
     // Delete the third translation.
-    $this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', [], t('Delete Dutch translation'));
+    $this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', [], 'Delete Dutch translation');
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
 
@@ -194,7 +194,7 @@ public function testSyncedFiles() {
     $this->assertTrue($file->isTemporary());
 
     // Delete the all translations.
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/delete', [], t('Delete all translations'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/delete', [], 'Delete all translations');
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
 
diff --git a/core/modules/file/tests/src/Functional/FilePrivateTest.php b/core/modules/file/tests/src/Functional/FilePrivateTest.php
index 500b53ed3fc9..317205869c04 100644
--- a/core/modules/file/tests/src/Functional/FilePrivateTest.php
+++ b/core/modules/file/tests/src/Functional/FilePrivateTest.php
@@ -83,7 +83,7 @@ public function testPrivateFile() {
     // Attempt to reuse the file when editing a node.
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
-    $this->drupalPostForm('node/add/' . $type_name, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $type_name, $edit, 'Save');
     $new_node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
     // Can't use drupalPostForm() to set hidden fields.
@@ -141,7 +141,7 @@ public function testPrivateFile() {
     $test_file = $this->getTestFile('text');
     $this->drupalGet('node/add/' . $type_name);
     $edit = ['files[' . $field_name . '_0]' => $file_system->realpath($test_file->getFileUri())];
-    $this->drupalPostForm(NULL, $edit, t('Upload'));
+    $this->drupalPostForm(NULL, $edit, 'Upload');
     /** @var \Drupal\file\FileStorageInterface $file_storage */
     $file_storage = $this->container->get('entity_type.manager')->getStorage('file');
     $files = $file_storage->loadByProperties(['uid' => 0]);
@@ -168,7 +168,7 @@ public function testPrivateFile() {
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
     $edit['files[' . $field_name . '_0]'] = $file_system->realpath($test_file->getFileUri());
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $new_node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $file_id = $new_node->{$field_name}->target_id;
     $file = File::load($file_id);
@@ -197,7 +197,7 @@ public function testPrivateFile() {
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
     $edit['files[' . $field_name . '_0]'] = $file_system->realpath($test_file->getFileUri());
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $new_node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $file = File::load($new_node->{$field_name}->target_id);
     $this->assertTrue($file->isPermanent(), 'File is permanent.');
@@ -222,7 +222,7 @@ public function testPrivateFile() {
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
     $edit['files[' . $field_name . '_0]'] = $file_system->realpath($test_file->getFileUri());
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $new_node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $new_node->setUnpublished();
     $new_node->save();
diff --git a/core/modules/file/tests/src/Functional/PrivateFileOnTranslatedEntityTest.php b/core/modules/file/tests/src/Functional/PrivateFileOnTranslatedEntityTest.php
index 72e777b66b99..6ee7b82592a8 100644
--- a/core/modules/file/tests/src/Functional/PrivateFileOnTranslatedEntityTest.php
+++ b/core/modules/file/tests/src/Functional/PrivateFileOnTranslatedEntityTest.php
@@ -59,7 +59,7 @@ protected function setUp(): void {
     // Add a second language.
     $edit = [];
     $edit['predefined_langcode'] = 'fr';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable translation for "Basic page" nodes.
     $edit = [
@@ -67,7 +67,7 @@ protected function setUp(): void {
       'settings[node][page][translatable]' => 1,
       "settings[node][page][fields][$this->fieldName]" => 1,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
   }
 
   /**
@@ -85,7 +85,7 @@ public function testPrivateLanguageFile() {
     $edit = [];
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('text')[0]->uri);
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/edit', $edit, 'Save');
     $last_fid_prior = $this->getLastFileId();
 
     // Languages are cached on many levels, and we need to clear those caches.
@@ -103,14 +103,14 @@ public function testPrivateLanguageFile() {
     $this->clickLink(t('Add'));
 
     // Remove the existing file.
-    $this->drupalPostForm(NULL, [], t('Remove'));
+    $this->drupalPostForm(NULL, [], 'Remove');
 
     // Upload a different file.
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('text')[1]->uri);
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $last_fid = $this->getLastFileId();
 
     // Verify the translation was created.
diff --git a/core/modules/file/tests/src/Functional/SaveUploadFormTest.php b/core/modules/file/tests/src/Functional/SaveUploadFormTest.php
index 07524ad439e3..643dbcf37c62 100644
--- a/core/modules/file/tests/src/Functional/SaveUploadFormTest.php
+++ b/core/modules/file/tests/src/Functional/SaveUploadFormTest.php
@@ -85,7 +85,7 @@ protected function setUp(): void {
       'file_test_replace' => FileSystemInterface::EXISTS_REPLACE,
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
 
@@ -114,7 +114,7 @@ public function testNormal() {
     /** @var \Drupal\Core\File\FileSystemInterface $file_system */
     $file_system = \Drupal::service('file_system');
     $edit = ['files[file_test_upload][]' => $file_system->realpath($image2->uri)];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
     $max_fid_after = (int) \Drupal::entityQueryAggregate('file')->aggregate('fid', 'max')->execute()[0]['fid_max'];
@@ -140,7 +140,7 @@ public function testNormal() {
       'files[file_test_upload][]' => $image3_realpath,
       'file_subdir' => $dir,
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
     $this->assertFileExists('temporary://' . $dir . '/' . trim(\Drupal::service('file_system')->basename($image3_realpath)));
@@ -163,7 +163,7 @@ public function testHandleExtension() {
       'extensions' => $extensions,
     ];
 
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $message = t('Only files with the following extensions are allowed:') . ' <em class="placeholder">' . $extensions . '</em>';
     $this->assertRaw($message);
@@ -183,7 +183,7 @@ public function testHandleExtension() {
       'extensions' => $extensions,
     ];
 
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('Only files with the following extensions are allowed:'));
     $this->assertRaw(t('You WIN!'));
@@ -200,7 +200,7 @@ public function testHandleExtension() {
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
       'allow_all_extensions' => TRUE,
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('Only files with the following extensions are allowed:'));
     $this->assertRaw(t('You WIN!'));
@@ -225,7 +225,7 @@ public function testHandleDangerousFile() {
       'extensions' => 'php',
     ];
 
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $message = t('For security reasons, your upload has been renamed to') . ' <em class="placeholder">' . $this->phpfile->filename . '.txt' . '</em>';
     $this->assertRaw($message);
@@ -241,7 +241,7 @@ public function testHandleDangerousFile() {
     // Reset the hook counters.
     file_test_reset();
 
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('For security reasons, your upload has been renamed'));
     $this->assertRaw(t('File name is @filename', ['@filename' => $this->phpfile->filename]));
@@ -277,7 +277,7 @@ public function testHandleFileMunge() {
     $munged_filename = substr($munged_filename, 0, strrpos($munged_filename, '.'));
     $munged_filename .= '_.' . $this->imageExtension;
 
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('For security reasons, your upload has been renamed'));
     $this->assertRaw(t('File name is @filename', ['@filename' => $munged_filename]));
@@ -295,7 +295,7 @@ public function testHandleFileMunge() {
       'allow_all_extensions' => TRUE,
     ];
 
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('For security reasons, your upload has been renamed'));
     $this->assertRaw(t('File name is @filename', ['@filename' => $this->image->getFilename()]));
@@ -315,7 +315,7 @@ public function testExistingRename() {
       'file_test_replace' => FileSystemInterface::EXISTS_RENAME,
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
 
@@ -333,7 +333,7 @@ public function testExistingReplace() {
       'file_test_replace' => FileSystemInterface::EXISTS_REPLACE,
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
 
@@ -351,7 +351,7 @@ public function testExistingError() {
       'file_test_replace' => FileSystemInterface::EXISTS_ERROR,
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('Epic upload FAIL!'));
 
@@ -363,7 +363,7 @@ public function testExistingError() {
    * Tests for no failures when not uploading a file.
    */
   public function testNoUpload() {
-    $this->drupalPostForm('file-test/save_upload_from_form_test', [], t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', [], 'Submit');
     $this->assertNoRaw(t('Epic upload FAIL!'));
   }
 
@@ -384,7 +384,7 @@ public function testDrupalMovingUploadedFileError() {
     ];
 
     \Drupal::state()->set('file_test.disable_error_collection', TRUE);
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('File upload error. Could not move uploaded file.'));
     $this->assertRaw(t('Epic upload FAIL!'));
@@ -410,7 +410,7 @@ public function testErrorMessagesAreNotChanged() {
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
       'error_message' => $error,
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
 
@@ -426,7 +426,7 @@ public function testErrorMessagesAreNotChanged() {
       'error_message' => $error,
       'extensions' => 'foo',
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('Epic upload FAIL!'));
 
@@ -440,7 +440,7 @@ public function testErrorMessagesAreNotChanged() {
     $edit = [
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
 
@@ -494,7 +494,7 @@ public function testUploadFieldIsHighlighted() {
       'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
       'extensions' => 'foo',
     ];
-    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('Epic upload FAIL!'));
     $this->assertCount(1, $this->cssSelect('input[name="files[file_test_upload][]"].error'), 'File upload field has error.');
diff --git a/core/modules/file/tests/src/Functional/SaveUploadTest.php b/core/modules/file/tests/src/Functional/SaveUploadTest.php
index 04802f329613..2e765cbc72a0 100644
--- a/core/modules/file/tests/src/Functional/SaveUploadTest.php
+++ b/core/modules/file/tests/src/Functional/SaveUploadTest.php
@@ -80,7 +80,7 @@ protected function setUp(): void {
       'file_test_replace' => FileSystemInterface::EXISTS_REPLACE,
       'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     // Check that the success message is present.
     $this->assertRaw(t('You WIN!'));
@@ -108,7 +108,7 @@ public function testNormal() {
     // Upload a second file.
     $image2 = current($this->drupalGetTestFiles('image'));
     $edit = ['files[file_test_upload]' => \Drupal::service('file_system')->realpath($image2->uri)];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
     $max_fid_after = (int) \Drupal::entityQueryAggregate('file')->aggregate('fid', 'max')->execute()[0]['fid_max'];
@@ -134,7 +134,7 @@ public function testNormal() {
       'files[file_test_upload]' => $image3_realpath,
       'file_subdir' => $dir,
     ];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
     $this->assertFileExists('temporary://' . $dir . '/' . trim(\Drupal::service('file_system')->basename($image3_realpath)));
@@ -147,7 +147,7 @@ public function testDuplicate() {
     // It should not be possible to create two managed files with the same URI.
     $image1 = current($this->drupalGetTestFiles('image'));
     $edit = ['files[file_test_upload]' => \Drupal::service('file_system')->realpath($image1->uri)];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $max_fid_after = (int) \Drupal::entityQueryAggregate('file')->aggregate('fid', 'max')->execute()[0]['fid_max'];
     $file1 = File::load($max_fid_after);
 
@@ -159,7 +159,7 @@ public function testDuplicate() {
 
     $image2 = $image1;
     $edit = ['files[file_test_upload]' => \Drupal::service('file_system')->realpath($image2->uri)];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     // Received a 200 response for posted test file.
     $this->assertSession()->statusCodeEquals(200);
     $message = t('The file %file already exists. Enter a unique file URI.', ['%file' => $file1->getFileUri()]);
@@ -184,7 +184,7 @@ public function testHandleExtension() {
       'extensions' => $extensions,
     ];
 
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $message = t('Only files with the following extensions are allowed:') . ' <em class="placeholder">' . $extensions . '</em>';
     $this->assertRaw($message);
@@ -204,7 +204,7 @@ public function testHandleExtension() {
       'extensions' => $extensions,
     ];
 
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('Only files with the following extensions are allowed:'));
     $this->assertRaw(t('You WIN!'));
@@ -221,7 +221,7 @@ public function testHandleExtension() {
       'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
       'allow_all_extensions' => TRUE,
     ];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('Only files with the following extensions are allowed:'));
     $this->assertRaw(t('You WIN!'));
@@ -244,7 +244,7 @@ public function testHandleDangerousFile() {
       'extensions' => 'php',
     ];
 
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $message = t('For security reasons, your upload has been renamed to') . ' <em class="placeholder">' . $this->phpfile->filename . '.txt' . '</em>';
     $this->assertRaw($message);
@@ -261,7 +261,7 @@ public function testHandleDangerousFile() {
     // Reset the hook counters.
     file_test_reset();
 
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('For security reasons, your upload has been renamed'));
     $this->assertSession()->pageTextContains('File name is php-2.php.');
@@ -295,7 +295,7 @@ public function testHandleFileMunge() {
     $munged_filename = substr($munged_filename, 0, strrpos($munged_filename, '.'));
     $munged_filename .= '_.' . $this->imageExtension;
 
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('For security reasons, your upload has been renamed'));
     $this->assertRaw(t('File name is @filename', ['@filename' => $munged_filename]));
@@ -313,7 +313,7 @@ public function testHandleFileMunge() {
       'allow_all_extensions' => TRUE,
     ];
 
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertNoRaw(t('For security reasons, your upload has been renamed'));
     $this->assertRaw(t('File name is @filename', ['@filename' => $this->image->getFilename()]));
@@ -331,7 +331,7 @@ public function testExistingRename() {
       'file_test_replace' => FileSystemInterface::EXISTS_RENAME,
       'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
     $this->assertSession()->pageTextContains('File name is image-test_0.png.');
@@ -348,7 +348,7 @@ public function testExistingReplace() {
       'file_test_replace' => FileSystemInterface::EXISTS_REPLACE,
       'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('You WIN!'));
     $this->assertSession()->pageTextContains('File name is image-test.png.');
@@ -365,7 +365,7 @@ public function testExistingError() {
       'file_test_replace' => FileSystemInterface::EXISTS_ERROR,
       'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
     ];
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('Epic upload FAIL!'));
 
@@ -377,7 +377,7 @@ public function testExistingError() {
    * Test for no failures when not uploading a file.
    */
   public function testNoUpload() {
-    $this->drupalPostForm('file-test/upload', [], t('Submit'));
+    $this->drupalPostForm('file-test/upload', [], 'Submit');
     $this->assertNoRaw(t('Epic upload FAIL!'));
   }
 
@@ -398,7 +398,7 @@ public function testDrupalMovingUploadedFileError() {
     ];
 
     \Drupal::state()->set('file_test.disable_error_collection', TRUE);
-    $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
+    $this->drupalPostForm('file-test/upload', $edit, 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('File upload error. Could not move uploaded file.'));
     $this->assertRaw(t('Epic upload FAIL!'));
diff --git a/core/modules/file/tests/src/FunctionalJavascript/FileManagedFileElementTest.php b/core/modules/file/tests/src/FunctionalJavascript/FileManagedFileElementTest.php
index 6a3b4d6f61d7..94416131ac2a 100644
--- a/core/modules/file/tests/src/FunctionalJavascript/FileManagedFileElementTest.php
+++ b/core/modules/file/tests/src/FunctionalJavascript/FileManagedFileElementTest.php
@@ -73,7 +73,7 @@ public function testManagedFile() {
           $this->assertNotEmpty($uploaded_file);
           $last_fid = $this->getLastFileId();
           $this->assertGreaterThan($last_fid_prior, $last_fid, 'New file got uploaded.');
-          $this->drupalPostForm(NULL, [], t('Save'));
+          $this->drupalPostForm(NULL, [], 'Save');
 
           // Remove, then Submit.
           $remove_button_title = $multiple ? t('Remove selected') : t('Remove');
@@ -84,7 +84,7 @@ public function testManagedFile() {
           }
           $this->getSession()->getPage()->pressButton($remove_button_title);
           $this->assertSession()->assertWaitOnAjaxRequest();
-          $this->drupalPostForm(NULL, [], t('Save'));
+          $this->drupalPostForm(NULL, [], 'Save');
           $this->assertSession()->responseContains(t('The file ids are %fids.', ['%fids' => '']));
 
           // Upload, then Remove, then Submit.
@@ -99,7 +99,7 @@ public function testManagedFile() {
           $this->getSession()->getPage()->pressButton($remove_button_title);
           $this->assertSession()->assertWaitOnAjaxRequest();
 
-          $this->drupalPostForm(NULL, [], t('Save'));
+          $this->drupalPostForm(NULL, [], 'Save');
           $this->assertSession()->responseContains(t('The file ids are %fids.', ['%fids' => '']));
         }
       }
diff --git a/core/modules/filter/tests/src/Functional/FilterAdminTest.php b/core/modules/filter/tests/src/Functional/FilterAdminTest.php
index 249506935057..ba2f539bf800 100644
--- a/core/modules/filter/tests/src/Functional/FilterAdminTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterAdminTest.php
@@ -134,7 +134,7 @@ public function testFormatAdmin() {
       'format' => $format_id,
       'name' => $name,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
 
     // Verify default weight of the text format.
     $this->drupalGet('admin/config/content/formats');
@@ -144,7 +144,7 @@ public function testFormatAdmin() {
     $edit = [
       "formats[$format_id][weight]" => 5,
     ];
-    $this->drupalPostForm('admin/config/content/formats', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/content/formats', $edit, 'Save');
     $this->assertSession()->fieldValueEquals("formats[$format_id][weight]", 5);
 
     // Edit text format.
@@ -153,7 +153,7 @@ public function testFormatAdmin() {
     $edit_href = Url::fromRoute('entity.filter_format.edit_form', ['filter_format' => $format_id], ['query' => ['destination' => $destination]])->toString();
     $this->assertSession()->linkByHrefExists($edit_href);
     $this->drupalGet('admin/config/content/formats/manage/' . $format_id);
-    $this->drupalPostForm(NULL, [], t('Save configuration'));
+    $this->drupalPostForm(NULL, [], 'Save configuration');
 
     // Verify that the custom weight of the text format has been retained.
     $this->drupalGet('admin/config/content/formats');
@@ -162,7 +162,7 @@ public function testFormatAdmin() {
     // Disable text format.
     $this->assertSession()->linkByHrefExists('admin/config/content/formats/manage/' . $format_id . '/disable');
     $this->drupalGet('admin/config/content/formats/manage/' . $format_id . '/disable');
-    $this->drupalPostForm(NULL, [], t('Disable'));
+    $this->drupalPostForm(NULL, [], 'Disable');
 
     // Verify that disabled text format no longer exists.
     $this->drupalGet('admin/config/content/formats/manage/' . $format_id);
@@ -174,7 +174,7 @@ public function testFormatAdmin() {
       'format' => $format_id,
       'name' => 'New format',
     ];
-    $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/add', $edit, 'Save configuration');
     $this->assertText('The machine-readable name is already in use. It must be unique.');
 
     // Attempt to create a format of the same human readable name as the
@@ -183,7 +183,7 @@ public function testFormatAdmin() {
       'format' => 'new_format',
       'name' => $name,
     ];
-    $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/add', $edit, 'Save configuration');
     $this->assertRaw(t('Text format names must be unique. A format named %name already exists.', [
       '%name' => $name,
     ]));
@@ -216,7 +216,7 @@ public function testFilterAdmin() {
     // Add an additional tag and extra spaces and returns.
     $edit = [];
     $edit['filters[filter_html][settings][allowed_html]'] = "<a>   <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>\r\n<quote>";
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $restricted, $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $restricted, $edit, 'Save configuration');
     $this->assertSession()->addressEquals('admin/config/content/formats/manage/' . $restricted);
     $this->drupalGet('admin/config/content/formats/manage/' . $restricted);
     // Check that the allowed HTML tag was added and the string reformatted.
@@ -232,7 +232,7 @@ public function testFilterAdmin() {
     $edit = [];
     $edit['filters[' . $second_filter . '][weight]'] = 1;
     $edit['filters[' . $first_filter . '][weight]'] = 2;
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->assertSession()->addressEquals('admin/config/content/formats/manage/' . $restricted);
     $this->drupalGet('admin/config/content/formats/manage/' . $restricted);
     $this->assertSession()->fieldValueEquals('filters[' . $second_filter . '][weight]', 1);
@@ -260,7 +260,7 @@ public function testFilterAdmin() {
     $edit['roles[' . RoleInterface::AUTHENTICATED_ID . ']'] = 1;
     $edit['filters[' . $second_filter . '][status]'] = TRUE;
     $edit['filters[' . $first_filter . '][status]'] = TRUE;
-    $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/add', $edit, 'Save configuration');
     $this->assertSession()->addressEquals('admin/config/content/formats');
     $this->assertRaw(t('Added text format %format.', ['%format' => $edit['name']]));
 
@@ -273,7 +273,7 @@ public function testFilterAdmin() {
     $this->assertSession()->checkboxChecked('filters[' . $first_filter . '][status]');
 
     // Disable new filter.
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $format->id() . '/disable', [], t('Disable'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $format->id() . '/disable', [], 'Disable');
     $this->assertSession()->addressEquals('admin/config/content/formats');
     $this->assertRaw(t('Disabled text format %format.', ['%format' => $edit['name']]));
 
@@ -282,7 +282,7 @@ public function testFilterAdmin() {
     $edit = [];
     $edit['roles[' . RoleInterface::ANONYMOUS_ID . ']'] = 0;
     $edit['roles[' . RoleInterface::AUTHENTICATED_ID . ']'] = 1;
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $full, $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $full, $edit, 'Save configuration');
     $this->assertSession()->addressEquals('admin/config/content/formats/manage/' . $full);
     $this->assertRaw(t('The text format %format has been updated.', ['%format' => $format->label()]));
 
@@ -301,7 +301,7 @@ public function testFilterAdmin() {
     $edit['title[0][value]'] = $this->randomMachineName();
     $edit['body[0][value]'] = $text;
     $edit['body[0][format]'] = $basic;
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
     $this->assertText('Basic page ' . $edit['title[0][value]'] . ' has been created.', 'Filtered node created.');
 
     // Verify that the creation message contains a link to a node.
@@ -323,7 +323,7 @@ public function testFilterAdmin() {
       ->save();
     $edit = [];
     $edit['body[0][format]'] = $plain;
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->drupalGet('node/' . $node->id());
     $this->assertSession()->assertEscaped($text);
     $this->config('filter.settings')
@@ -337,7 +337,7 @@ public function testFilterAdmin() {
     // Allowed tags.
     $edit = [];
     $edit['filters[filter_html][settings][allowed_html]'] = '<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>';
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $basic, $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $basic, $edit, 'Save configuration');
     $this->assertSession()->addressEquals('admin/config/content/formats/manage/' . $basic);
     $this->drupalGet('admin/config/content/formats/manage/' . $basic);
     $this->assertSession()->fieldValueEquals('filters[filter_html][settings][allowed_html]', $edit['filters[filter_html][settings][allowed_html]']);
@@ -345,7 +345,7 @@ public function testFilterAdmin() {
     // Full HTML.
     $edit = [];
     $edit['roles[' . RoleInterface::AUTHENTICATED_ID . ']'] = FALSE;
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $full, $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $full, $edit, 'Save configuration');
     $this->assertSession()->addressEquals('admin/config/content/formats/manage/' . $full);
     $this->assertRaw(t('The text format %format has been updated.', ['%format' => $format->label()]));
     $this->drupalGet('admin/config/content/formats/manage/' . $full);
@@ -355,7 +355,7 @@ public function testFilterAdmin() {
     $edit = [];
     $edit['filters[' . $second_filter . '][weight]'] = 2;
     $edit['filters[' . $first_filter . '][weight]'] = 1;
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $basic, $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $basic, $edit, 'Save configuration');
     $this->assertSession()->addressEquals('admin/config/content/formats/manage/' . $basic);
     $this->drupalGet('admin/config/content/formats/manage/' . $basic);
     $this->assertSession()->fieldValueEquals('filters[' . $second_filter . '][weight]', $edit['filters[' . $second_filter . '][weight]']);
@@ -370,7 +370,7 @@ public function testUrlFilterAdmin() {
     $edit = [
       'filters[filter_url][settings][filter_url_length]' => $this->randomMachineName(4),
     ];
-    $this->drupalPostForm('admin/config/content/formats/manage/basic_html', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/basic_html', $edit, 'Save configuration');
     $this->assertNoRaw(t('The text format %format has been updated.', ['%format' => 'Basic HTML']));
   }
 
diff --git a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
index 543bc66a4505..89c5780c15dc 100644
--- a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
@@ -38,7 +38,7 @@ public function testDefaultTextFormats() {
         'format' => mb_strtolower($this->randomMachineName()),
         'name' => $this->randomMachineName(),
       ];
-      $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
+      $this->drupalPostForm('admin/config/content/formats/add', $edit, 'Save configuration');
       $this->resetFilterCaches();
       $formats[] = FilterFormat::load($edit['format']);
     }
@@ -55,7 +55,7 @@ public function testDefaultTextFormats() {
     $edit = [];
     $edit['formats[' . $first_format->id() . '][weight]'] = -2;
     $edit['formats[' . $second_format->id() . '][weight]'] = -1;
-    $this->drupalPostForm('admin/config/content/formats', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/content/formats', $edit, 'Save');
     $this->resetFilterCaches();
 
     // Check that each user's default format is the lowest weighted format that
@@ -71,7 +71,7 @@ public function testDefaultTextFormats() {
     // default.
     $edit = [];
     $edit['formats[' . $second_format->id() . '][weight]'] = -3;
-    $this->drupalPostForm('admin/config/content/formats', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/content/formats', $edit, 'Save');
     $this->resetFilterCaches();
     $this->assertEqual(filter_default_format($first_user), filter_default_format($second_user), 'After the formats are reordered, both users have the same default format.');
   }
diff --git a/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php b/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
index d388b03530da..7552f9c36d2e 100644
--- a/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
@@ -92,7 +92,7 @@ protected function setUp(): void {
         'format' => mb_strtolower($this->randomMachineName()),
         'name' => $this->randomMachineName(),
       ];
-      $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
+      $this->drupalPostForm('admin/config/content/formats/add', $edit, 'Save configuration');
       $this->resetFilterCaches();
       $formats[] = FilterFormat::load($edit['format']);
     }
@@ -226,7 +226,7 @@ public function testFormatWidgetPermissions() {
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit[$body_value_key] = $this->randomMachineName(16);
     $edit[$body_format_key] = $this->disallowedFormat->id();
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
     // Try to edit with a less privileged user.
@@ -241,11 +241,11 @@ public function testFormatWidgetPermissions() {
     // Verify that title can be changed, but preview displays original body.
     $new_edit = [];
     $new_edit['title[0][value]'] = $this->randomMachineName(8);
-    $this->drupalPostForm(NULL, $new_edit, t('Preview'));
+    $this->drupalPostForm(NULL, $new_edit, 'Preview');
     $this->assertText($edit[$body_value_key], 'Old body found in preview.');
 
     // Save and verify that only the title was changed.
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $new_edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $new_edit, 'Save');
     $this->assertNoText($edit['title[0][value]'], 'Old title not found.');
     $this->assertText($new_edit['title[0][value]'], 'New title found.');
     $this->assertText($edit[$body_value_key], 'Old body found.');
@@ -285,7 +285,7 @@ public function testFormatWidgetPermissions() {
     $new_title = $this->randomMachineName(8);
     $edit = [];
     $edit['title[0][value]'] = $new_title;
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertText('Text format field is required.', 'Error message is displayed.');
     $this->drupalGet('node/' . $node->id());
     $this->assertText($old_title, 'Old title found.');
@@ -293,7 +293,7 @@ public function testFormatWidgetPermissions() {
 
     // Now select a new text format and make sure the node can be saved.
     $edit[$body_format_key] = filter_fallback_format();
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->addressEquals('node/' . $node->id());
     $this->assertText($new_title, 'New title found.');
     $this->assertNoText($old_title, 'Old title not found.');
@@ -302,7 +302,7 @@ public function testFormatWidgetPermissions() {
     // other formats on the site (leaving only the fallback format).
     $this->drupalLogin($this->adminUser);
     $edit = [$body_format_key => $this->allowedFormat->id()];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->addressEquals('node/' . $node->id());
     foreach (filter_formats() as $format) {
       if (!$format->isFallbackFormat()) {
@@ -320,13 +320,13 @@ public function testFormatWidgetPermissions() {
     $new_title = $this->randomMachineName(8);
     $edit = [];
     $edit['title[0][value]'] = $new_title;
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertText('Text format field is required.', 'Error message is displayed.');
     $this->drupalGet('node/' . $node->id());
     $this->assertText($old_title, 'Old title found.');
     $this->assertNoText($new_title, 'New title not found.');
     $edit[$body_format_key] = filter_fallback_format();
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->addressEquals('node/' . $node->id());
     $this->assertText($new_title, 'New title found.');
     $this->assertNoText($old_title, 'Old title not found.');
diff --git a/core/modules/filter/tests/src/Functional/FilterHooksTest.php b/core/modules/filter/tests/src/Functional/FilterHooksTest.php
index 091186c3cbed..61d8c8e77d9b 100644
--- a/core/modules/filter/tests/src/Functional/FilterHooksTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterHooksTest.php
@@ -49,7 +49,7 @@ public function testFilterHooks() {
     $edit['format'] = mb_strtolower($this->randomMachineName());
     $edit['name'] = $name;
     $edit['roles[' . RoleInterface::ANONYMOUS_ID . ']'] = 1;
-    $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/add', $edit, 'Save configuration');
     $this->assertRaw(t('Added text format %format.', ['%format' => $name]));
     $this->assertText('hook_filter_format_insert invoked.');
 
@@ -58,7 +58,7 @@ public function testFilterHooks() {
     // Update text format.
     $edit = [];
     $edit['roles[' . RoleInterface::AUTHENTICATED_ID . ']'] = 1;
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id, $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id, $edit, 'Save configuration');
     $this->assertRaw(t('The text format %format has been updated.', ['%format' => $name]));
     $this->assertText('hook_filter_format_update invoked.');
 
@@ -68,11 +68,11 @@ public function testFilterHooks() {
     $edit['title[0][value]'] = $title;
     $edit['body[0][value]'] = $this->randomMachineName(32);
     $edit['body[0][format]'] = $format_id;
-    $this->drupalPostForm("node/add/{$type->id()}", $edit, t('Save'));
+    $this->drupalPostForm("node/add/{$type->id()}", $edit, 'Save');
     $this->assertText($type_name . ' ' . $title . ' has been created.');
 
     // Disable the text format.
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id . '/disable', [], t('Disable'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id . '/disable', [], 'Disable');
     $this->assertRaw(t('Disabled text format %format.', ['%format' => $name]));
     $this->assertText('hook_filter_format_disable invoked.');
   }
diff --git a/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php b/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php
index 8a0ddb5f6895..d25ca7582fb2 100644
--- a/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php
@@ -143,7 +143,7 @@ public function testImageSource() {
     $edit = [
       'comment_body[0][value]' => implode("\n", $comment),
     ];
-    $this->drupalPostForm('node/' . $this->node->id(), $edit, t('Save'));
+    $this->drupalPostForm('node/' . $this->node->id(), $edit, 'Save');
     foreach ($images as $image => $converted) {
       $found = FALSE;
       foreach ($this->xpath('//img[@testattribute="' . hash('sha256', $image) . '"]') as $element) {
diff --git a/core/modules/filter/tests/src/Functional/FilterSecurityTest.php b/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
index 4c960f2beb11..4ed377e3651e 100644
--- a/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
@@ -72,7 +72,7 @@ public function testDisableFilterModule() {
     $edit = [
       'filters[filter_test_replace][status]' => 1,
     ];
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id, $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id, $edit, 'Save configuration');
 
     // Verify that filter_test_replace filter replaced the content.
     $this->drupalGet('node/' . $node->id());
@@ -80,7 +80,7 @@ public function testDisableFilterModule() {
     $this->assertText('Filter: Testing filter', 'Testing filter output found.');
 
     // Disable the text format entirely.
-    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id . '/disable', [], t('Disable'));
+    $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id . '/disable', [], 'Disable');
 
     // Verify that the content is empty, because the text format does not exist.
     $this->drupalGet('node/' . $node->id());
diff --git a/core/modules/forum/tests/src/Functional/ForumBlockTest.php b/core/modules/forum/tests/src/Functional/ForumBlockTest.php
index 21a424730f2d..be1cd9799c9b 100644
--- a/core/modules/forum/tests/src/Functional/ForumBlockTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumBlockTest.php
@@ -175,7 +175,7 @@ protected function createForumTopics($count = 5) {
       ];
 
       // Create the forum topic, preselecting the forum ID via a URL parameter.
-      $this->drupalPostForm('node/add/forum', $edit, t('Save'), ['query' => ['forum_id' => 1]]);
+      $this->drupalPostForm('node/add/forum', $edit, 'Save', ['query' => ['forum_id' => 1]]);
       $topics[] = $title;
     }
 
diff --git a/core/modules/forum/tests/src/Functional/ForumIndexTest.php b/core/modules/forum/tests/src/Functional/ForumIndexTest.php
index 651b2b881ff1..c32a3be1d2d9 100644
--- a/core/modules/forum/tests/src/Functional/ForumIndexTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumIndexTest.php
@@ -55,7 +55,7 @@ public function testForumIndexStatus() {
     $this->drupalGet("forum/$tid");
     $this->clickLink(t('Add new @node_type', ['@node_type' => 'Forum topic']));
     $this->assertSession()->addressEquals("node/add/forum?forum_id=$tid");
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Check that the node exists in the database.
     $node = $this->drupalGetNodeByTitle($title);
@@ -67,7 +67,7 @@ public function testForumIndexStatus() {
       'description[0][value]' => $this->randomMachineName(200),
       'parent[0]' => $tid,
     ];
-    $this->drupalPostForm('admin/structure/forum/add/forum', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/forum/add/forum', $edit, 'Save');
     $this->assertSession()->linkExists('edit forum');
 
     $tid_child = $tid + 1;
@@ -84,7 +84,7 @@ public function testForumIndexStatus() {
 
     // Unpublish the node.
     $edit = ['status[value]' => FALSE];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->drupalGet('node/' . $node->id());
     $this->assertText('Access denied', 'Unpublished node is no longer accessible.');
 
diff --git a/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php b/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php
index 6c3ed2e08f90..36ec58ed48d4 100644
--- a/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php
@@ -65,7 +65,7 @@ public function testForumNodeAccess() {
       'body[0][value]' => $this->randomMachineName(200),
       'private[0][value]' => TRUE,
     ];
-    $this->drupalPostForm('node/add/forum', $edit, t('Save'), ['query' => ['forum_id' => 1]]);
+    $this->drupalPostForm('node/add/forum', $edit, 'Save', ['query' => ['forum_id' => 1]]);
     $private_node = $this->drupalGetNodeByTitle($private_node_title);
     $this->assertTrue(!empty($private_node), 'New private forum node found in database.');
 
@@ -75,7 +75,7 @@ public function testForumNodeAccess() {
       'title[0][value]' => $public_node_title,
       'body[0][value]' => $this->randomMachineName(200),
     ];
-    $this->drupalPostForm('node/add/forum', $edit, t('Save'), ['query' => ['forum_id' => 1]]);
+    $this->drupalPostForm('node/add/forum', $edit, 'Save', ['query' => ['forum_id' => 1]]);
     $public_node = $this->drupalGetNodeByTitle($public_node_title);
     $this->assertTrue(!empty($public_node), 'New public forum node found in database.');
 
diff --git a/core/modules/forum/tests/src/Functional/ForumTest.php b/core/modules/forum/tests/src/Functional/ForumTest.php
index 85bd76ef3f31..eae3a3ae0920 100644
--- a/core/modules/forum/tests/src/Functional/ForumTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumTest.php
@@ -229,7 +229,7 @@ public function testForum() {
       'create forum content',
       'post comments',
     ]));
-    $this->drupalPostForm('admin/structure/types/manage/forum', ['options[promote]' => 'promote'], t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/forum', ['options[promote]' => 'promote'], 'Save content type');
     $this->createForumTopic($this->forum, FALSE);
     $this->createForumTopic($this->forum, FALSE);
     $this->drupalGet('node');
@@ -238,13 +238,13 @@ public function testForum() {
     $node = $this->createForumTopic($this->forum, FALSE);
     $edit = [];
     $edit['comment_body[0][value]'] = $this->randomMachineName();
-    $this->drupalPostForm('node/' . $node->id(), $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id(), $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Test editing a forum topic that has a comment.
     $this->drupalLogin($this->editAnyTopicsUser);
     $this->drupalGet('forum/' . $this->forum['tid']);
-    $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', [], 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Test the root forum page title change.
@@ -284,7 +284,7 @@ public function testAddOrphanTopic() {
     $edit['title[0][value]'] = $this->randomMachineName(10);
     $edit['body[0][value]'] = $this->randomMachineName(120);
     $this->drupalLogin($this->adminUser);
-    $this->drupalPostForm('node/add/forum', $edit, t('Save'));
+    $this->drupalPostForm('node/add/forum', $edit, 'Save');
 
     $nid_count = $this->container->get('entity_type.manager')
       ->getStorage('node')
@@ -310,7 +310,7 @@ private function doAdminTests($user) {
 
     // Add forum to the Tools menu.
     $edit = [];
-    $this->drupalPostForm('admin/structure/menu/manage/tools', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/manage/tools', $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Edit forum taxonomy.
@@ -338,7 +338,7 @@ private function doAdminTests($user) {
     // Create second forum in container, destined to be deleted below.
     $delete_forum = $this->createForum('forum', $this->forumContainer['tid']);
     // Save forum overview.
-    $this->drupalPostForm('admin/structure/forum/', [], t('Save'));
+    $this->drupalPostForm('admin/structure/forum/', [], 'Save');
     $this->assertRaw(t('The configuration options have been saved.'));
     // Delete this second forum.
     $this->deleteForum($delete_forum['tid']);
@@ -393,7 +393,7 @@ public function editForumVocabulary() {
     ];
 
     // Edit the vocabulary.
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $original_vocabulary->id(), $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $original_vocabulary->id(), $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('Updated vocabulary %name.', ['%name' => $edit['name']]));
 
@@ -437,7 +437,7 @@ public function createForum($type, $parent = 0) {
     ];
 
     // Create forum.
-    $this->drupalPostForm('admin/structure/forum/add/' . $type, $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/forum/add/' . $type, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $type = ($type == 'container') ? 'forum container' : 'forum';
     $this->assertText('Created new ' . $type . ' ' . $name . '.',
@@ -486,7 +486,7 @@ public function deleteForum($tid) {
     $this->assertText('Are you sure you want to delete the forum');
     $this->assertNoText('Add forum');
     $this->assertNoText('Add forum container');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Assert that the forum no longer exists.
     $this->drupalGet('forum/' . $tid);
@@ -531,7 +531,7 @@ public function testForumWithNewPost() {
     $edit = [];
     $edit['subject[0][value]'] = $this->randomMachineName();
     $edit['comment_body[0][value]'] = $this->randomMachineName();
-    $this->drupalPostForm('node/' . $node->id(), $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id(), $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Test replying to a comment.
@@ -572,7 +572,7 @@ public function createForumTopic($forum, $container = FALSE) {
     $tid = $forum['tid'];
 
     // Create the forum topic, preselecting the forum ID via a URL parameter.
-    $this->drupalPostForm('node/add/forum', $edit, t('Save'), ['query' => ['forum_id' => $tid]]);
+    $this->drupalPostForm('node/add/forum', $edit, 'Save', ['query' => ['forum_id' => $tid]]);
 
     $type = t('Forum topic');
     if ($container) {
@@ -660,7 +660,7 @@ private function verifyForums(EntityInterface $node, $admin, $response = 200) {
       // Assume the topic is initially associated with $forum.
       $edit['taxonomy_forums'] = $this->rootForum['tid'];
       $edit['shadow'] = TRUE;
-      $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+      $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
       $this->assertText('Forum topic ' . $edit['title[0][value]'] . ' has been updated.', 'Forum node was edited');
 
       // Verify topic was moved to a different forum.
@@ -675,7 +675,7 @@ private function verifyForums(EntityInterface $node, $admin, $response = 200) {
       $this->assertTrue($forum_tid == $this->rootForum['tid'], 'The forum topic is linked to a different forum');
 
       // Delete forum node.
-      $this->drupalPostForm('node/' . $node->id() . '/delete', [], t('Delete'));
+      $this->drupalPostForm('node/' . $node->id() . '/delete', [], 'Delete');
       $this->assertSession()->statusCodeEquals($response);
       $this->assertRaw(t('Forum topic %title has been deleted.', ['%title' => $edit['title[0][value]']]));
     }
diff --git a/core/modules/forum/tests/src/Functional/ForumUninstallTest.php b/core/modules/forum/tests/src/Functional/ForumUninstallTest.php
index e0ec9706c980..f9f5bf2ddc7a 100644
--- a/core/modules/forum/tests/src/Functional/ForumUninstallTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumUninstallTest.php
@@ -81,7 +81,7 @@ public function testForumUninstallWithField() {
     $this->assertText('To uninstall Forum, first delete all Forum content');
 
     // Delete the node.
-    $this->drupalPostForm('node/' . $node->id() . '/delete', [], t('Delete'));
+    $this->drupalPostForm('node/' . $node->id() . '/delete', [], 'Delete');
 
     // Attempt to uninstall forum.
     $this->drupalGet('admin/modules/uninstall');
@@ -105,8 +105,8 @@ public function testForumUninstallWithField() {
     $this->assertSession()->fieldExists('uninstall[forum]');
     $this->drupalPostForm('admin/modules/uninstall', [
       'uninstall[forum]' => 1,
-    ], t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    ], 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
 
     // Check that the field is now deleted.
     $field_storage = FieldStorageConfig::loadByName('node', 'taxonomy_forums');
@@ -119,11 +119,11 @@ public function testForumUninstallWithField() {
       'title_label' => 'title for forum',
       'type' => 'forum',
     ];
-    $this->drupalPostForm('admin/structure/types/add', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/add', $edit, 'Save content type');
     $this->assertTrue((bool) NodeType::load('forum'), 'Node type with machine forum created.');
     $this->drupalGet('admin/structure/types/manage/forum');
     $this->clickLink(t('Delete'));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertFalse((bool) NodeType::load('forum'), 'Node type with machine forum deleted.');
 
diff --git a/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php b/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php
index 725c3fa928ad..054091e52189 100644
--- a/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php
+++ b/core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php
@@ -247,8 +247,8 @@ public function testUninstall() {
     $this->drupalLogin($this->rootUser);
     $edit = [];
     $edit['uninstall[help_topics]'] = TRUE;
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.', 'Modules status has been updated.');
     $this->drupalGet('admin/help');
     $this->assertSession()->statusCodeEquals(200);
diff --git a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
index 612351ec2f0a..4310dded8495 100644
--- a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
+++ b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
@@ -67,7 +67,7 @@ public function testNumericStyleName() {
       'name' => $style_name,
       'label' => $style_label,
     ];
-    $this->drupalPostForm('admin/config/media/image-styles/add', $edit, t('Create new style'));
+    $this->drupalPostForm('admin/config/media/image-styles/add', $edit, 'Create new style');
     $this->assertRaw(t('Style %name was created.', ['%name' => $style_label]));
     $options = image_style_options();
     $this->assertArrayHasKey($style_name, $options);
@@ -118,7 +118,7 @@ public function testStyle() {
       'name' => $style_name,
       'label' => $style_label,
     ];
-    $this->drupalPostForm($admin_path . '/add', $edit, t('Create new style'));
+    $this->drupalPostForm($admin_path . '/add', $edit, 'Create new style');
     $this->assertRaw(t('Style %name was created.', ['%name' => $style_label]));
 
     // Ensure that the expected entity operations are there.
@@ -136,9 +136,9 @@ public function testStyle() {
         $edit_data['data[' . $field . ']'] = $value;
       }
       // Add the effect.
-      $this->drupalPostForm($style_path, ['new' => $effect], t('Add'));
+      $this->drupalPostForm($style_path, ['new' => $effect], 'Add');
       if (!empty($edit)) {
-        $this->drupalPostForm(NULL, $edit_data, t('Add effect'));
+        $this->drupalPostForm(NULL, $edit_data, 'Add effect');
       }
     }
 
@@ -209,7 +209,7 @@ public function testStyle() {
     $image_path = $this->createSampleImage($style);
     $this->assertEqual($this->getImageCount($style), 1, new FormattableMarkup('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
 
-    $this->drupalPostForm($style_path, $edit, t('Save'));
+    $this->drupalPostForm($style_path, $edit, 'Save');
 
     // Note that after changing the style name, the style path is changed.
     $style_path = 'admin/config/media/image-styles/manage/' . $style_name;
@@ -249,7 +249,7 @@ public function testStyle() {
     $this->assertEqual($this->getImageCount($style), 1, new FormattableMarkup('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
 
     // Delete the 'image_crop' effect from the style.
-    $this->drupalPostForm($style_path . '/effects/' . $uuids['image_crop'] . '/delete', [], t('Delete'));
+    $this->drupalPostForm($style_path . '/effects/' . $uuids['image_crop'] . '/delete', [], 'Delete');
     // Confirm that the form submission was successful.
     $this->assertSession()->statusCodeEquals(200);
     $image_crop_effect = $style->getEffect($uuids['image_crop']);
@@ -273,8 +273,8 @@ public function testStyle() {
       'data[random]' => 0,
       'data[bgcolor]' => '',
     ];
-    $this->drupalPostForm($style_path, ['new' => 'image_rotate'], t('Add'));
-    $this->drupalPostForm(NULL, $edit, t('Add effect'));
+    $this->drupalPostForm($style_path, ['new' => 'image_rotate'], 'Add');
+    $this->drupalPostForm(NULL, $edit, 'Add effect');
     $entity_type_manager = $this->container->get('entity_type.manager');
     $style = $entity_type_manager->getStorage('image_style')->loadUnchanged($style_name);
     $this->assertCount(6, $style->getEffects(), 'Rotate effect with transparent background was added.');
@@ -282,7 +282,7 @@ public function testStyle() {
     // Style deletion form.
 
     // Delete the style.
-    $this->drupalPostForm($style_path . '/delete', [], t('Delete'));
+    $this->drupalPostForm($style_path . '/delete', [], 'Delete');
 
     // Confirm the style directory has been removed.
     $directory = 'public://styles/' . $style_name;
@@ -347,7 +347,7 @@ public function testStyleReplacement() {
       'name' => $new_style_name,
       'label' => $new_style_label,
     ];
-    $this->drupalPostForm($style_path . $style_name, $edit, t('Save'));
+    $this->drupalPostForm($style_path . $style_name, $edit, 'Save');
     $this->assertText('Changes to the style have been saved.', new FormattableMarkup('Style %name was renamed to %new_name.', ['%name' => $style_name, '%new_name' => $new_style_name]));
     $this->drupalGet('node/' . $nid);
 
@@ -359,7 +359,7 @@ public function testStyleReplacement() {
     $edit = [
       'replacement' => 'thumbnail',
     ];
-    $this->drupalPostForm($style_path . $new_style_name . '/delete', $edit, t('Delete'));
+    $this->drupalPostForm($style_path . $new_style_name . '/delete', $edit, 'Delete');
     $message = t('The image style %name has been deleted.', ['%name' => $new_style_label]);
     $this->assertRaw($message);
 
@@ -375,14 +375,14 @@ public function testEditEffect() {
     // Add a scale effect.
     $style_name = 'test_style_effect_edit';
     $this->drupalGet('admin/config/media/image-styles/add');
-    $this->drupalPostForm(NULL, ['label' => 'Test style effect edit', 'name' => $style_name], t('Create new style'));
-    $this->drupalPostForm(NULL, ['new' => 'image_scale_and_crop'], t('Add'));
-    $this->drupalPostForm(NULL, ['data[width]' => '300', 'data[height]' => '200'], t('Add effect'));
+    $this->drupalPostForm(NULL, ['label' => 'Test style effect edit', 'name' => $style_name], 'Create new style');
+    $this->drupalPostForm(NULL, ['new' => 'image_scale_and_crop'], 'Add');
+    $this->drupalPostForm(NULL, ['data[width]' => '300', 'data[height]' => '200'], 'Add effect');
     $this->assertText('Scale and crop 300×200');
 
     // There should normally be only one edit link on this page initially.
     $this->clickLink(t('Edit'));
-    $this->drupalPostForm(NULL, ['data[width]' => '360', 'data[height]' => '240'], t('Update effect'));
+    $this->drupalPostForm(NULL, ['data[width]' => '360', 'data[height]' => '240'], 'Update effect');
     $this->assertText('Scale and crop 360×240');
 
     // Check that the previous effect is replaced.
@@ -390,13 +390,13 @@ public function testEditEffect() {
 
     // Add another scale effect.
     $this->drupalGet('admin/config/media/image-styles/add');
-    $this->drupalPostForm(NULL, ['label' => 'Test style scale edit scale', 'name' => 'test_style_scale_edit_scale'], t('Create new style'));
-    $this->drupalPostForm(NULL, ['new' => 'image_scale'], t('Add'));
-    $this->drupalPostForm(NULL, ['data[width]' => '12', 'data[height]' => '19'], t('Add effect'));
+    $this->drupalPostForm(NULL, ['label' => 'Test style scale edit scale', 'name' => 'test_style_scale_edit_scale'], 'Create new style');
+    $this->drupalPostForm(NULL, ['new' => 'image_scale'], 'Add');
+    $this->drupalPostForm(NULL, ['data[width]' => '12', 'data[height]' => '19'], 'Add effect');
 
     // Edit the scale effect that was just added.
     $this->clickLink(t('Edit'));
-    $this->drupalPostForm(NULL, ['data[width]' => '24', 'data[height]' => '19'], t('Update effect'));
+    $this->drupalPostForm(NULL, ['data[width]' => '24', 'data[height]' => '19'], 'Update effect');
 
     // Add another scale effect and make sure both exist. Click through from
     // the overview to make sure that it is possible to add new effect then.
@@ -410,8 +410,8 @@ public function testEditEffect() {
       }
       $i++;
     }
-    $this->drupalPostForm(NULL, ['new' => 'image_scale'], t('Add'));
-    $this->drupalPostForm(NULL, ['data[width]' => '12', 'data[height]' => '19'], t('Add effect'));
+    $this->drupalPostForm(NULL, ['new' => 'image_scale'], 'Add');
+    $this->drupalPostForm(NULL, ['data[width]' => '12', 'data[height]' => '19'], 'Add effect');
     $this->assertText('Scale 24×19');
     $this->assertText('Scale 12×19');
 
@@ -446,7 +446,7 @@ public function testFlushUserInterface() {
     $this->assertSession()->linkByHrefExists($flush_path);
 
     // Flush the image style derivatives using the user interface.
-    $this->drupalPostForm($flush_path, [], t('Flush'));
+    $this->drupalPostForm($flush_path, [], 'Flush');
 
     // The derivative image file should have been deleted.
     $this->assertEqual($this->getImageCount($style), 0);
diff --git a/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php b/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php
index b04726a1014b..ec53a028b446 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php
@@ -278,7 +278,7 @@ public function testDefaultImages() {
     );
 
     $non_image = $this->drupalGetTestFiles('text');
-    $this->drupalPostForm(NULL, ['files[settings_default_image_uuid]' => \Drupal::service('file_system')->realpath($non_image[0]->uri)], t("Upload"));
+    $this->drupalPostForm(NULL, ['files[settings_default_image_uuid]' => \Drupal::service('file_system')->realpath($non_image[0]->uri)], 'Upload');
     $this->assertText('The specified file text-0.txt could not be uploaded.');
     $this->assertText('Only files with the following extensions are allowed: png gif jpg jpeg.');
 
diff --git a/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php b/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php
index 17952ce9e908..cea209aa7931 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php
@@ -301,7 +301,7 @@ public function testImageFieldSettings() {
       $field_name . '[0][alt]' => $image['#alt'],
       $field_name . '[0][title]' => $image['#title'],
     ];
-    $this->drupalPostForm('node/' . $nid . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $nid . '/edit', $edit, 'Save');
     $default_output = str_replace("\n", NULL, $renderer->renderRoot($image));
     $this->assertRaw($default_output);
 
@@ -311,7 +311,7 @@ public function testImageFieldSettings() {
       $field_name . '[0][alt]' => $this->randomMachineName($test_size),
       $field_name . '[0][title]' => $this->randomMachineName($test_size),
     ];
-    $this->drupalPostForm('node/' . $nid . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $nid . '/edit', $edit, 'Save');
     $schema = $field->getFieldStorageDefinition()->getSchema();
     $this->assertRaw(t('Alternative text cannot be longer than %max characters but is currently %length characters long.', [
       '%max' => $schema['columns']['alt']['length'],
@@ -329,13 +329,13 @@ public function testImageFieldSettings() {
     // 1, so we need to make sure the file widget prevents these notices by
     // providing all settings, even if they are not used.
     // @see FileWidget::formMultipleElements().
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.' . $field_name . '/storage', ['cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED], t('Save field settings'));
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.' . $field_name . '/storage', ['cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED], 'Save field settings');
     $edit = [
       'files[' . $field_name . '_1][]' => \Drupal::service('file_system')->realpath($test_image->uri),
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     // Add the required alt text.
-    $this->drupalPostForm(NULL, [$field_name . '[1][alt]' => $alt], t('Save'));
+    $this->drupalPostForm(NULL, [$field_name . '[1][alt]' => $alt], 'Save');
     $this->assertText('Article ' . $node->getTitle() . ' has been updated.');
 
     // Assert ImageWidget::process() calls FieldWidget::process().
@@ -380,7 +380,7 @@ public function testImageFieldDefaultImage() {
       'settings[default_image][alt]' => $alt,
       'settings[default_image][title]' => $title,
     ];
-    $this->drupalPostForm("admin/structure/types/manage/article/fields/node.article.$field_name/storage", $edit, t('Save field settings'));
+    $this->drupalPostForm("admin/structure/types/manage/article/fields/node.article.$field_name/storage", $edit, 'Save field settings');
     // Clear field definition cache so the new default image is detected.
     \Drupal::service('entity_field.manager')->clearCachedFieldDefinitions();
     $field_storage = FieldStorageConfig::loadByName('node', $field_name);
@@ -452,7 +452,7 @@ public function testImageFieldDefaultImage() {
       'settings[default_image][alt]' => $alt,
       'settings[default_image][title]' => $title,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.' . $private_field_name . '/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.' . $private_field_name . '/storage', $edit, 'Save field settings');
     // Clear field definition cache so the new default image is detected.
     \Drupal::service('entity_field.manager')->clearCachedFieldDefinitions();
 
diff --git a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
index 3bd5fe5d8769..b5bcaec0eb33 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
@@ -85,7 +85,7 @@ public function previewNodeImage($image, $field_name, $type) {
       'title[0][value]' => $this->randomMachineName(),
     ];
     $edit['files[' . $field_name . '_0]'] = \Drupal::service('file_system')->realpath($image->uri);
-    $this->drupalPostForm('node/add/' . $type, $edit, t('Preview'));
+    $this->drupalPostForm('node/add/' . $type, $edit, 'Preview');
   }
 
   /**
@@ -105,10 +105,10 @@ public function uploadNodeImage($image, $field_name, $type, $alt = '') {
       'title[0][value]' => $this->randomMachineName(),
     ];
     $edit['files[' . $field_name . '_0]'] = \Drupal::service('file_system')->realpath($image->uri);
-    $this->drupalPostForm('node/add/' . $type, $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $type, $edit, 'Save');
     if ($alt) {
       // Add alt text.
-      $this->drupalPostForm(NULL, [$field_name . '[0][alt]' => $alt], t('Save'));
+      $this->drupalPostForm(NULL, [$field_name . '[0][alt]' => $alt], 'Save');
     }
 
     // Retrieve ID of the newly created node from the current URL.
diff --git a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
index 9a85e402c4d1..02b625d9d0b9 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
@@ -41,8 +41,8 @@ public function testValid() {
     $this->assertFileExists($expected_path . '/' . $image_files[0]->filename);
 
     // Remove the image.
-    $this->drupalPostForm('node/' . $node . '/edit', [], t('Remove'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('node/' . $node . '/edit', [], 'Remove');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Get invalid image test files from simpletest.
     $dir = 'core/tests/fixtures/files';
@@ -60,7 +60,7 @@ public function testValid() {
     $edit = [
       'files[' . $field_name . '_0]' => $file_system->realpath($zero_size_image->uri),
     ];
-    $this->drupalPostForm('node/' . $node . '/edit', $edit, t('Upload'));
+    $this->drupalPostForm('node/' . $node . '/edit', $edit, 'Upload');
     $this->assertFileNotExists($expected_path . '/' . $zero_size_image->filename);
 
     // Try uploading an invalid image.
@@ -68,7 +68,7 @@ public function testValid() {
     $edit = [
       'files[' . $field_name . '_0]' => $file_system->realpath($invalid_image->uri),
     ];
-    $this->drupalPostForm('node/' . $node . '/edit', $edit, t('Upload'));
+    $this->drupalPostForm('node/' . $node . '/edit', $edit, 'Upload');
     $this->assertFileNotExists($expected_path . '/' . $invalid_image->filename);
 
     // Upload a valid image again.
@@ -76,7 +76,7 @@ public function testValid() {
     $edit = [
       'files[' . $field_name . '_0]' => $file_system->realpath($valid_image->uri),
     ];
-    $this->drupalPostForm('node/' . $node . '/edit', $edit, t('Upload'));
+    $this->drupalPostForm('node/' . $node . '/edit', $edit, 'Upload');
     $this->assertFileExists($expected_path . '/' . $valid_image->filename);
   }
 
@@ -196,7 +196,7 @@ public function testRequiredAttributes() {
     $edit = [
       'title[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
 
     $this->assertNoText('Alternative text field is required.');
     $this->assertNoText('Title field is required.');
@@ -209,7 +209,7 @@ public function testRequiredAttributes() {
     $edit = [
       'title[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
 
     $this->assertNoText('Alternative text field is required.');
     $this->assertNoText('Title field is required.');
@@ -232,7 +232,7 @@ public function testEmpty($field_name, $required, $cardinality, $form_element_na
     $edit = [
       'title[0][value]' => 'Article with edit-access-allowed image field',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->pageTextContains($expected_page_text_when_edit_access_allowed);
 
     // Test with field edit access forbidden.
@@ -242,7 +242,7 @@ public function testEmpty($field_name, $required, $cardinality, $form_element_na
     $edit = [
       'title[0][value]' => 'Article with edit-access-forbidden image field',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->pageTextContains($expected_page_text_when_edit_access_forbidden);
   }
 
diff --git a/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php b/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php
index b687a430eca2..d888b2e358bb 100644
--- a/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php
+++ b/core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php
@@ -71,11 +71,11 @@ protected function setUp(): void {
     // Add a second and third language.
     $edit = [];
     $edit['predefined_langcode'] = 'fr';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     $edit = [];
     $edit['predefined_langcode'] = 'nl';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
   }
 
   /**
@@ -107,22 +107,22 @@ public function testSyncedImages() {
     $edit = [];
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('image')[0]->uri);
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/edit', $edit, 'Save');
     $edit = [$this->fieldName . '[0][alt]' => 'Lost in translation image', $this->fieldName . '[0][title]' => 'Lost in translation image title'];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $first_fid = $this->getLastFileId();
 
     // Translate the node into French: remove the existing file.
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/fr', [], t('Remove'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/fr', [], 'Remove');
 
     // Upload a different file.
     $edit = [];
     $edit['title[0][value]'] = 'Scarlett Johansson';
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('image')[1]->uri);
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $edit = [$this->fieldName . '[0][alt]' => 'Scarlett Johansson image', $this->fieldName . '[0][title]' => 'Scarlett Johansson image title'];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     // This inspects the HTML after the post of the translation, the image
     // should be displayed on the original node.
     $this->assertRaw('alt="Lost in translation image"');
@@ -145,16 +145,16 @@ public function testSyncedImages() {
     $this->assertTrue($file->isPermanent());
 
     // Translate the node into dutch: remove the existing file.
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/nl', [], t('Remove'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/translations/add/en/nl', [], 'Remove');
 
     // Upload a different file.
     $edit = [];
     $edit['title[0][value]'] = 'Akiko Takeshita';
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('image')[2]->uri);
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $edit = [$this->fieldName . '[0][alt]' => 'Akiko Takeshita image', $this->fieldName . '[0][title]' => 'Akiko Takeshita image title'];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $third_fid = $this->getLastFileId();
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
@@ -180,18 +180,18 @@ public function testSyncedImages() {
     $this->assertTrue($file->isPermanent());
 
     // Edit the second translation: remove the existing file.
-    $this->drupalPostForm('fr/node/' . $default_language_node->id() . '/edit', [], t('Remove'));
+    $this->drupalPostForm('fr/node/' . $default_language_node->id() . '/edit', [], 'Remove');
 
     // Upload a different file.
     $edit = [];
     $edit['title[0][value]'] = 'Giovanni Ribisi';
     $name = 'files[' . $this->fieldName . '_0]';
     $edit[$name] = \Drupal::service('file_system')->realpath($this->drupalGetTestFiles('image')[3]->uri);
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $name = $this->fieldName . '[0][alt]';
 
     $edit = [$name => 'Giovanni Ribisi image'];
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
     $replaced_second_fid = $this->getLastFileId();
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
@@ -208,7 +208,7 @@ public function testSyncedImages() {
     $this->assertTrue($file->isPermanent());
 
     // Delete the third translation.
-    $this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', [], t('Delete Dutch translation'));
+    $this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', [], 'Delete Dutch translation');
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
 
@@ -224,7 +224,7 @@ public function testSyncedImages() {
     $this->assertTrue($file->isTemporary());
 
     // Delete the all translations.
-    $this->drupalPostForm('node/' . $default_language_node->id() . '/delete', [], t('Delete all translations'));
+    $this->drupalPostForm('node/' . $default_language_node->id() . '/delete', [], 'Delete all translations');
 
     \Drupal::entityTypeManager()->getStorage('file')->resetCache();
 
diff --git a/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php b/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php
index f3f00d12cb25..55da96d082ff 100644
--- a/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php
+++ b/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php
@@ -40,7 +40,7 @@ public function testDelete() {
 
     // Delete 'medium' image style but replace it with 'thumbnail'. This style
     // is involved in 'node.page.default' display view and form.
-    $this->drupalPostForm(NULL, ['replacement' => 'thumbnail'], t('Delete'));
+    $this->drupalPostForm(NULL, ['replacement' => 'thumbnail'], 'Delete');
 
     /** @var \Drupal\Core\Entity\Display\EntityViewDisplayInterface $view_display */
     $view_display = EntityViewDisplay::load('node.page.default');
@@ -62,7 +62,7 @@ public function testDelete() {
     $this->assertNoRaw(t('All images that have been generated for this style will be permanently deleted. The dependent configurations might need manual reconfiguration.'));
 
     // Delete 'thumbnail' image style. Provide no replacement.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     $view_display = EntityViewDisplay::load('node.page.default');
     // Checks that the formatter setting is disabled.
@@ -80,7 +80,7 @@ public function testDelete() {
     $this->assertRaw(t('If this style is in use on the site, you may select another style to replace it. All images that have been generated for this style will be permanently deleted. If no replacement style is selected, the dependent configurations might need manual reconfiguration.'));
     $this->assertNoRaw(t('All images that have been generated for this style will be permanently deleted. The dependent configurations might need manual reconfiguration.'));
     // Delete 'wide' image style. Provide no replacement.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Now, there's only one image style configured on the system: 'large'.
     $this->drupalGet('admin/config/media/image-styles/manage/large/delete');
diff --git a/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php b/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php
index 75a799645e96..1575e0e029c0 100644
--- a/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php
+++ b/core/modules/image/tests/src/Functional/ImageStyleFlushTest.php
@@ -80,14 +80,14 @@ public function testFlush() {
       'name' => $style_name,
       'label' => $style_label,
     ];
-    $this->drupalPostForm('admin/config/media/image-styles/add', $edit, t('Create new style'));
+    $this->drupalPostForm('admin/config/media/image-styles/add', $edit, 'Create new style');
 
     // Add each sample effect to the style.
     foreach ($effect_edits as $effect => $edit) {
       // Add the effect.
-      $this->drupalPostForm($style_path, ['new' => $effect], t('Add'));
+      $this->drupalPostForm($style_path, ['new' => $effect], 'Add');
       if (!empty($edit)) {
-        $this->drupalPostForm(NULL, $edit, t('Add effect'));
+        $this->drupalPostForm(NULL, $edit, 'Add effect');
       }
     }
 
@@ -111,9 +111,9 @@ public function testFlush() {
     foreach ($style->getEffects() as $uuid => $effect) {
       $uuids[$effect->getPluginId()] = $uuid;
     }
-    $this->drupalPostForm($style_path . '/effects/' . $uuids['image_scale'] . '/delete', [], t('Delete'));
+    $this->drupalPostForm($style_path . '/effects/' . $uuids['image_scale'] . '/delete', [], 'Delete');
     $this->assertSession()->statusCodeEquals(200);
-    $this->drupalPostForm($style_path, [], t('Save'));
+    $this->drupalPostForm($style_path, [], 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Post flush, expected 1 image in the 'public' wrapper (sample.png).
diff --git a/core/modules/image/tests/src/FunctionalJavascript/ImageAdminStylesTest.php b/core/modules/image/tests/src/FunctionalJavascript/ImageAdminStylesTest.php
index acc4bdc5b2f3..2546bc811ab8 100644
--- a/core/modules/image/tests/src/FunctionalJavascript/ImageAdminStylesTest.php
+++ b/core/modules/image/tests/src/FunctionalJavascript/ImageAdminStylesTest.php
@@ -41,10 +41,10 @@ public function testAjaxEnabledEffectForm() {
     $assert->pageTextContains("Style $style_label was created.");
 
     // Add two Ajax-enabled test effects.
-    $this->drupalPostForm($style_path, ['new' => 'image_module_test_ajax'], t('Add'));
-    $this->drupalPostForm(NULL, $effect_edit, t('Add effect'));
-    $this->drupalPostForm($style_path, ['new' => 'image_module_test_ajax'], t('Add'));
-    $this->drupalPostForm(NULL, $effect_edit, t('Add effect'));
+    $this->drupalPostForm($style_path, ['new' => 'image_module_test_ajax'], 'Add');
+    $this->drupalPostForm(NULL, $effect_edit, 'Add effect');
+    $this->drupalPostForm($style_path, ['new' => 'image_module_test_ajax'], 'Add');
+    $this->drupalPostForm(NULL, $effect_edit, 'Add effect');
 
     // Load the saved image style.
     $style = ImageStyle::load($style_name);
diff --git a/core/modules/language/tests/src/Functional/LanguageBlockSettingsVisibilityTest.php b/core/modules/language/tests/src/Functional/LanguageBlockSettingsVisibilityTest.php
index 64d9b241c731..fbb8f01d1230 100644
--- a/core/modules/language/tests/src/Functional/LanguageBlockSettingsVisibilityTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageBlockSettingsVisibilityTest.php
@@ -25,7 +25,7 @@ public function testUnnecessaryLanguageSettingsVisibility() {
       'administer blocks',
     ]);
     $this->drupalLogin($admin_user);
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'hu'], t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'hu'], 'Add language');
     $this->drupalGet('admin/structure/block/add/system_menu_block:admin/stark');
     $this->assertSession()->fieldNotExists("edit-visibility-language-langcodes-und");
     $this->assertSession()->fieldNotExists("edit-visibility-language-langcodes-zxx");
diff --git a/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php b/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php
index 15c563989ca7..30f1afc0c5f3 100644
--- a/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php
@@ -50,7 +50,7 @@ public function testUIBrowserLanguageMappings() {
 
     // Confirm the delete.
     $edit = [];
-    $this->drupalPostForm('admin/config/regional/language/detection/browser/delete/' . $browser_langcode, $edit, t('Confirm'));
+    $this->drupalPostForm('admin/config/regional/language/detection/browser/delete/' . $browser_langcode, $edit, 'Confirm');
 
     // We need raw here because %browser will add HTML.
     $t_args = [
@@ -68,13 +68,13 @@ public function testUIBrowserLanguageMappings() {
       'new_mapping[browser_langcode]' => 'xx',
       'new_mapping[drupal_langcode]' => 'en',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, 'Save configuration');
     $this->assertSession()->addressEquals(Url::fromRoute('language.negotiation_browser'));
     $this->assertSession()->fieldValueEquals('edit-mappings-xx-browser-langcode', 'xx');
     $this->assertSession()->fieldValueEquals('edit-mappings-xx-drupal-langcode', 'en');
 
     // Add the same custom mapping again.
-    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, 'Save configuration');
     $this->assertText('Browser language codes must be unique.');
 
     // Change browser language code of our custom mapping to zh-sg.
@@ -82,7 +82,7 @@ public function testUIBrowserLanguageMappings() {
       'mappings[xx][browser_langcode]' => 'zh-sg',
       'mappings[xx][drupal_langcode]' => 'en',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, 'Save configuration');
     $this->assertText('Browser language codes must be unique.');
 
     // Change Drupal language code of our custom mapping to zh-hans.
@@ -90,7 +90,7 @@ public function testUIBrowserLanguageMappings() {
       'mappings[xx][browser_langcode]' => 'xx',
       'mappings[xx][drupal_langcode]' => 'zh-hans',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/browser', $edit, 'Save configuration');
     $this->assertSession()->addressEquals(Url::fromRoute('language.negotiation_browser'));
     $this->assertSession()->fieldValueEquals('edit-mappings-xx-browser-langcode', 'xx');
     $this->assertSession()->fieldValueEquals('edit-mappings-xx-drupal-langcode', 'zh-hans');
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php b/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php
index a1e63570fac9..ee36d9e4c0ae 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php
@@ -63,7 +63,7 @@ public function testValidLanguageConfigSchema() {
     $edit['settings[user][user][settings][language][language_alterable]'] = TRUE;
     $edit['settings[user][user][settings][language][langcode]'] = 'en';
 
-    $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
+    $this->drupalPostForm($settings_path, $edit, 'Save configuration');
 
     $config_data = $this->config('language.content_settings.menu_link_content.menu_link_content');
     // Make sure configuration saved correctly.
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
index 5a64197be4b4..7aaa6a588234 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
@@ -177,7 +177,7 @@ public function testNodeTypeUpdate() {
       'language_configuration[langcode]' => 'current_interface',
       'language_configuration[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
     // Check the language default configuration for the articles.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('node', 'article');
     $uuid = $configuration->uuid();
@@ -187,7 +187,7 @@ public function testNodeTypeUpdate() {
     $edit = [
       'title_label' => 'Name',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
     // Check that we still have the settings for the updated node type.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('node', 'article');
     $this->assertEqual($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been kept on the updated Article content type.');
@@ -215,14 +215,14 @@ public function testNodeTypeDelete() {
       'language_configuration[langcode]' => 'authors_default',
       'language_configuration[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
 
     // Check the language default configuration for articles is present.
     $configuration = \Drupal::entityTypeManager()->getStorage('language_content_settings')->load('node.article');
     $this->assertNotEmpty($configuration, 'The language configuration is present.');
 
     // Delete 'article' bundle.
-    $this->drupalPostForm('admin/structure/types/manage/article/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/types/manage/article/delete', [], 'Delete');
 
     // Check that the language configuration has been deleted.
     \Drupal::entityTypeManager()->getStorage('language_content_settings')->resetCache();
@@ -246,7 +246,7 @@ public function testTaxonomyVocabularyUpdate() {
       'default_language[langcode]' => 'current_interface',
       'default_language[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/country', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/country', $edit, 'Save');
 
     // Check the language default configuration.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', 'country');
@@ -257,7 +257,7 @@ public function testTaxonomyVocabularyUpdate() {
     $edit = [
       'name' => 'Nation',
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/country', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/country', $edit, 'Save');
     // Check that we still have the settings for the updated vocabulary.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', 'country');
     $this->assertEqual($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been kept on the updated Country vocabulary.');
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
index 770928277088..5c429a073acb 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
@@ -77,7 +77,7 @@ public function testLanguageConfiguration() {
     $edit = [
       'site_default_language' => 'fr',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->rebuildContainer();
     $this->assertSession()->checkboxChecked('edit-site-default-language-fr');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection', [], ['langcode' => 'fr']));
@@ -94,14 +94,14 @@ public function testLanguageConfiguration() {
     $edit = [
       'prefix[fr]' => 'french',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->assertSession()->fieldValueEquals("prefix[fr]", 'french');
 
     // Check that the prefix can be removed.
     $edit = [
       'prefix[fr]' => '',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->assertNoText('The prefix may only be left blank for the selected detection fallback language.', 'The path prefix can be removed for the default language');
 
     // Change default negotiation language.
@@ -111,19 +111,19 @@ public function testLanguageConfiguration() {
     $edit = [
       'prefix[en]' => '',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->assertText('The prefix may only be left blank for the selected detection fallback language.');
 
     //  Check that prefix cannot be changed to contain a slash.
     $edit = [
       'prefix[en]' => 'foo/bar',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->assertText('The prefix may not contain a slash.', 'English prefix cannot be changed to contain a slash.');
 
     // Remove English language and add a new Language to check if langcode of
     // Language entity is 'en'.
-    $this->drupalPostForm('admin/config/regional/language/delete/en', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/en', [], 'Delete');
     $this->rebuildContainer();
     $this->assertRaw(t('The %language (%langcode) language has been removed.', ['%language' => 'English', '%langcode' => 'en']));
 
diff --git a/core/modules/language/tests/src/Functional/LanguageCustomLanguageConfigurationTest.php b/core/modules/language/tests/src/Functional/LanguageCustomLanguageConfigurationTest.php
index b11815ca4337..374c95d1d32d 100644
--- a/core/modules/language/tests/src/Functional/LanguageCustomLanguageConfigurationTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageCustomLanguageConfigurationTest.php
@@ -42,7 +42,7 @@ public function testLanguageConfiguration() {
     $edit = [
       'predefined_langcode' => 'custom',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     // Test validation on missing values.
     $this->assertText('Language code field is required.');
     $this->assertText('Language name field is required.');
@@ -57,7 +57,7 @@ public function testLanguageConfiguration() {
       'label' => '<strong>evil markup</strong>',
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     $this->assertRaw(t('%field must be a valid language tag as <a href=":url">defined by the W3C</a>.', [
       '%field' => t('Language code'),
@@ -75,7 +75,7 @@ public function testLanguageConfiguration() {
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
 
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     $this->assertRaw(t(
       'The language %language has been created and can now be used.',
       ['%language' => $edit['label']]
@@ -91,7 +91,7 @@ public function testLanguageConfiguration() {
     ];
 
     // Add the language the first time.
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     $this->assertRaw(t(
       'The language %language has been created and can now be used.',
       ['%language' => $edit['label']]
@@ -99,7 +99,7 @@ public function testLanguageConfiguration() {
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection'));
 
     // Add the language a second time and confirm that this is not allowed.
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     $this->assertRaw(t(
       'The language %language (%langcode) already exists.',
       ['%language' => $edit['label'], '%langcode' => $edit['langcode']]
diff --git a/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php b/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
index 60810139dc5d..473153241d84 100644
--- a/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
@@ -37,7 +37,7 @@ public function testModuleInstallLanguageList() {
     $this->drupalLogin($admin_user);
     $edit = [];
     $edit['modules[language][enable]'] = 'language';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     $this->assertEqual(\Drupal::state()->get('language_test.language_count_preinstall', 0), 1, 'Using LanguageManager::getLanguages() returns 1 language during Language installation.');
 
diff --git a/core/modules/language/tests/src/Functional/LanguageListTest.php b/core/modules/language/tests/src/Functional/LanguageListTest.php
index 87d31a16ea2d..26e798e6943f 100644
--- a/core/modules/language/tests/src/Functional/LanguageListTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageListTest.php
@@ -47,7 +47,7 @@ public function testLanguageList() {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $this->assertText('French', 'Language added successfully.');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection'));
 
@@ -68,7 +68,7 @@ public function testLanguageList() {
       'label' => $name,
       'direction' => Language::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection'));
     $this->assertRaw('"edit-languages-' . $langcode . '-weight"');
     $this->assertText($name, 'Test language added.');
@@ -84,7 +84,7 @@ public function testLanguageList() {
     $edit = [
       'site_default_language' => $langcode,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->rebuildContainer();
     $this->assertSession()->checkboxNotChecked('edit-site-default-language-en');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection', [], ['language' => $language]));
@@ -102,7 +102,7 @@ public function testLanguageList() {
     $edit = [
       'label' => $name,
     ];
-    $this->drupalPostForm('admin/config/regional/language/edit/' . $langcode, $edit, t('Save language'));
+    $this->drupalPostForm('admin/config/regional/language/edit/' . $langcode, $edit, 'Save language');
     $this->assertRaw($name);
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection', [], ['language' => $language]));
 
@@ -110,7 +110,7 @@ public function testLanguageList() {
     $edit = [
       'site_default_language' => 'en',
     ];
-    $this->drupalPostForm($path, $edit, t('Save configuration'));
+    $this->drupalPostForm($path, $edit, 'Save configuration');
     $this->rebuildContainer();
     // Ensure 'delete' link works.
     $this->drupalGet('admin/config/regional/language');
@@ -124,7 +124,7 @@ public function testLanguageList() {
     $this->assertRaw($name);
     // Delete the language for real. This a confirm form, we do not need any
     // fields changed.
-    $this->drupalPostForm('admin/config/regional/language/delete/' . $langcode, [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/' . $langcode, [], 'Delete');
     // We need raw here because %language and %langcode will add HTML.
     $t_args = ['%language' => $name, '%langcode' => $langcode];
     $this->assertRaw(t('The %language (%langcode) language has been removed.', $t_args));
@@ -134,7 +134,7 @@ public function testLanguageList() {
     $this->assertSession()->statusCodeEquals(404);
 
     // Delete French.
-    $this->drupalPostForm('admin/config/regional/language/delete/fr', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/fr', [], 'Delete');
     // Make sure the "language_count" state has been updated correctly.
     $this->rebuildContainer();
     // We need raw here because %language and %langcode will add HTML.
@@ -157,7 +157,7 @@ public function testLanguageList() {
       'label' => $name,
       'direction' => Language::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection'));
     $this->assertText($name, 'Name found.');
 
@@ -169,12 +169,12 @@ public function testLanguageList() {
     $edit = [
       'site_default_language' => $langcode,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
     $this->rebuildContainer();
     $this->assertSession()->checkboxNotChecked('edit-site-default-language-en');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection', [], ['language' => $language]));
 
-    $this->drupalPostForm('admin/config/regional/language/delete/en', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/en', [], 'Delete');
     // We need raw here because %language and %langcode will add HTML.
     $t_args = ['%language' => 'English', '%langcode' => 'en'];
     $this->assertRaw(t('The %language (%langcode) language has been removed.', $t_args));
diff --git a/core/modules/language/tests/src/Functional/LanguageLocaleListTest.php b/core/modules/language/tests/src/Functional/LanguageLocaleListTest.php
index d2c304ef47db..8af8570d39f0 100644
--- a/core/modules/language/tests/src/Functional/LanguageLocaleListTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageLocaleListTest.php
@@ -48,7 +48,7 @@ public function testLanguageLocaleList() {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $this->assertText('The language French has been created and can now be used');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.configurable_language.collection'));
     $this->rebuildContainer();
diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
index 68ed0a64ca14..1265e8bc6951 100644
--- a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
@@ -38,7 +38,7 @@ protected function setUp(): void {
       'administer modules',
     ]);
     $this->drupalLogin($admin_user);
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'it'], t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'it'], 'Add language');
   }
 
   /**
@@ -104,7 +104,7 @@ public function testInfoAlterations() {
       $test_type . '[enabled][' . $test_method_id . ']' => TRUE,
       $test_type . '[configurable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Alter language negotiation info to remove interface language negotiation
     // method.
@@ -188,15 +188,15 @@ public function testConfigLangTypeAlterations() {
 
     // Editing config.
     $edit = [$test_type . '[configurable]' => TRUE];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
     $this->assertTrue($this->isLanguageTypeConfigurable($test_type), 'Language type is now configurable.');
 
     // After installing another module, the config should be the same.
-    $this->drupalPostForm('admin/modules', ['modules[test_module][enable]' => 1], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[test_module][enable]' => 1], 'Install');
     $this->assertTrue($this->isLanguageTypeConfigurable($test_type), 'Language type is still configurable.');
 
     // After uninstalling the other module, the config should be the same.
-    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[test_module]' => 1], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[test_module]' => 1], 'Uninstall');
     $this->assertTrue($this->isLanguageTypeConfigurable($test_type), 'Language type is still configurable.');
   }
 
diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationUrlTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationUrlTest.php
index 8cf44e0de8be..0fc31417483f 100644
--- a/core/modules/language/tests/src/Functional/LanguageNegotiationUrlTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageNegotiationUrlTest.php
@@ -2,7 +2,6 @@
 
 namespace Drupal\Tests\language\Functional;
 
-use Drupal\Core\StringTranslation\StringTranslationTrait;
 use Drupal\Tests\BrowserTestBase;
 
 /**
@@ -11,8 +10,6 @@
  */
 class LanguageNegotiationUrlTest extends BrowserTestBase {
 
-  use StringTranslationTrait;
-
   /**
    * {@inheritdoc}
    */
@@ -53,7 +50,7 @@ protected function setUp(): void {
     ]);
     $this->drupalLogin($this->user);
 
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'de'], $this->t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'de'], 'Add language');
   }
 
   /**
@@ -69,13 +66,13 @@ public function testDomain() {
       'domain[en]' => $_SERVER['HTTP_HOST'],
       'domain[de]' => "de.$_SERVER[HTTP_HOST]",
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, $this->t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
 
     $nodeValues = [
       'title[0][value]' => 'Test',
       'path[0][alias]' => '/eng/test',
     ];
-    $this->drupalPostForm('node/add/article', $nodeValues, $this->t('Save'));
+    $this->drupalPostForm('node/add/article', $nodeValues, 'Save');
     $this->assertSession()->statusCodeEquals(200);
   }
 
diff --git a/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php b/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
index 405ef7ed9a01..cf80da6dbf87 100644
--- a/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
+++ b/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
@@ -37,16 +37,16 @@ protected function setUp(): void {
     // Enable French language.
     $edit = [];
     $edit['predefined_langcode'] = 'fr';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Make French the default language.
     $edit = [
       'site_default_language' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language', $edit, 'Save configuration');
 
     // Delete English.
-    $this->drupalPostForm('admin/config/regional/language/delete/en', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/en', [], 'Delete');
 
     // Changing the default language causes a container rebuild. Therefore need
     // to rebuild the container in the test environment.
@@ -59,7 +59,7 @@ protected function setUp(): void {
 
     // Set language detection to URL.
     $edit = ['language_interface[enabled][language-url]' => TRUE];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
     $this->drupalPlaceBlock('local_actions_block');
   }
 
diff --git a/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php b/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php
index c58d13544152..c6fe77d8c01a 100644
--- a/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php
@@ -70,7 +70,7 @@ protected function getAdministratorPermissions() {
   public function testLanguageStringSelector() {
     // Add another language.
     $edit = ['predefined_langcode' => 'es'];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Translate the string English in Spanish (Inglés). Override config entity.
     $name_translation = 'Inglés';
diff --git a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php
index 9ae12f3d76b4..a72f5af05b7c 100644
--- a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php
@@ -54,14 +54,14 @@ public function testLanguageBlock() {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Set the native language name.
     $this->saveNativeLanguageName('fr', 'français');
 
     // Enable URL language detection and selection.
     $edit = ['language_interface[enabled][language-url]' => '1'];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Enable the language switching block.
     $block = $this->drupalPlaceBlock('language_block:' . LanguageInterface::TYPE_INTERFACE, [
@@ -195,14 +195,14 @@ public function testLanguageBlockWithDomain() {
       'language_interface[enabled][language-url]' => TRUE,
       'language_interface[weight][language-url]' => -10,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Do not allow blank domain.
     $edit = [
       'language_negotiation_url_part' => LanguageNegotiationUrl::CONFIG_DOMAIN,
       'domain[en]' => '',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
     $this->assertText('The domain may not be left blank for English', 'The form does not allow blank domains.');
 
     // Change the domain for the Italian language.
@@ -211,7 +211,7 @@ public function testLanguageBlockWithDomain() {
       'domain[en]' => \Drupal::request()->getHost(),
       'domain[it]' => 'it.example.com',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved', 'Domain configuration is saved.');
 
     // Enable the language switcher block.
@@ -247,11 +247,11 @@ public function testLanguageLinkActiveClass() {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable URL language detection and selection.
     $edit = ['language_interface[enabled][language-url]' => '1'];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     $this->doTestLanguageLinkActiveClassAuthenticated();
     $this->doTestLanguageLinkActiveClassAnonymous();
@@ -267,11 +267,11 @@ public function testLanguageBodyClass() {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable URL language detection and selection.
     $edit = ['language_interface[enabled][language-url]' => '1'];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Check if the default (English) admin/config page has the right class.
     $this->drupalGet('admin/config');
@@ -417,14 +417,14 @@ public function testLanguageSessionSwitchLinks() {
     $edit = [
       'predefined_langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable session language detection and selection.
     $edit = [
       'language_interface[enabled][language-url]' => FALSE,
       'language_interface[enabled][language-session]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Enable the language switching block.
     $this->drupalPlaceBlock('language_block:' . LanguageInterface::TYPE_INTERFACE, [
diff --git a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
index f90abf91cd07..73e3898a0819 100644
--- a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
@@ -142,29 +142,29 @@ public function testUILanguageNegotiation() {
       'string' => $default_string,
       'langcode' => $langcode_browser_fallback,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $language_browser_fallback_string,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     $search = [
       'string' => $default_string,
       'langcode' => $langcode,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $language_string,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Configure selected language negotiation to use zh-hans.
     $edit = ['selected_langcode' => $langcode];
-    $this->drupalPostForm('admin/config/regional/language/detection/selected', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/selected', $edit, 'Save configuration');
     $test = [
       'language_negotiation' => [LanguageNegotiationSelected::METHOD_ID],
       'path' => 'admin/config',
@@ -368,7 +368,7 @@ public function testUILanguageNegotiation() {
     // Go by session preference.
     $language_negotiation_session_param = $this->randomMachineName();
     $edit = ['language_negotiation_session_param' => $language_negotiation_session_param];
-    $this->drupalPostForm('admin/config/regional/language/detection/session', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/session', $edit, 'Save configuration');
     $tests = [
       [
         'language_negotiation' => [LanguageNegotiationSession::METHOD_ID],
@@ -432,7 +432,7 @@ public function testUrlLanguageFallback() {
     // Enable the path prefix for the default language: this way any unprefixed
     // URL must have a valid fallback value.
     $edit = ['prefix[en]' => 'en'];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
 
     // Enable browser and URL language detection.
     $edit = [
@@ -441,7 +441,7 @@ public function testUrlLanguageFallback() {
       'language_interface[weight][language-browser]' => -8,
       'language_interface[weight][language-url]' => -10,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
     $this->drupalGet('admin/config/regional/language/detection');
 
     // Enable the language switcher block.
@@ -491,14 +491,14 @@ public function testLanguageDomain() {
       'language_interface[enabled][language-url]' => TRUE,
       'language_interface[weight][language-url]' => -10,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Do not allow blank domain.
     $edit = [
       'language_negotiation_url_part' => LanguageNegotiationUrl::CONFIG_DOMAIN,
       'domain[en]' => '',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
     $this->assertText('The domain may not be left blank for English', 'The form does not allow blank domains.');
     $this->rebuildContainer();
 
@@ -508,7 +508,7 @@ public function testLanguageDomain() {
       'domain[en]' => $base_url_host,
       'domain[it]' => 'it.example.com',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved', 'Domain configuration is saved.');
     $this->rebuildContainer();
 
@@ -518,7 +518,7 @@ public function testLanguageDomain() {
       'domain[en]' => $base_url_host,
       'domain[it]' => 'it.example.com/',
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
     $this->assertRaw(t('The domain for %language may only contain the domain name, not a trailing slash, protocol and/or port.', ['%language' => 'Italian']));
 
     // Build the link we're going to test.
@@ -555,7 +555,7 @@ public function testContentCustomization() {
       'language_content[enabled][language-url]' => FALSE,
       'language_content[enabled][language-session]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Check if configurability persisted.
     $config = $this->config('language.types');
@@ -584,7 +584,7 @@ public function testDisableLanguageSwitcher() {
     $edit = [
       'language_content[configurable]' => FALSE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
     $this->assertSession()->statusCodeEquals(200);
 
     // Check if the language switcher block has been removed.
diff --git a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
index 0a72a3ddf0bf..4b411e7d4b7a 100644
--- a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
@@ -48,11 +48,11 @@ protected function setUp(): void {
     // Install French language.
     $edit = [];
     $edit['predefined_langcode'] = 'fr';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable URL language detection and selection.
     $edit = ['language_interface[enabled][language-url]' => 1];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Check that drupalSettings contains path prefix.
     $this->drupalGet('fr/admin/config/regional/language/detection');
@@ -116,7 +116,7 @@ public function testDomainNameNegotiationPort() {
       'domain[en]' => $base_url_host,
       'domain[fr]' => $language_domain,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
     // Rebuild the container so that the new language gets picked up by services
     // that hold the list of languages.
     $this->rebuildContainer();
diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php
index bf76de601502..efb45896ec6e 100644
--- a/core/modules/link/tests/src/Functional/LinkFieldTest.php
+++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php
@@ -217,7 +217,7 @@ protected function assertValidEntries($field_name, array $valid_entries) {
       $edit = [
         "{$field_name}[0][uri]" => $uri,
       ];
-      $this->drupalPostForm('entity_test/add', $edit, t('Save'));
+      $this->drupalPostForm('entity_test/add', $edit, 'Save');
       preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
       $id = $match[1];
       $this->assertText('entity_test ' . $id . ' has been created.');
@@ -238,7 +238,7 @@ protected function assertInvalidEntries($field_name, array $invalid_entries) {
       $edit = [
         "{$field_name}[0][uri]" => $invalid_value,
       ];
-      $this->drupalPostForm('entity_test/add', $edit, t('Save'));
+      $this->drupalPostForm('entity_test/add', $edit, 'Save');
       $this->assertText(strtr($error_message, ['@link_path' => $invalid_value]));
     }
   }
@@ -309,7 +309,7 @@ public function testLinkTitle() {
           $edit = [
             "{$field_name}[0][title]" => 'Example',
           ];
-          $this->drupalPostForm(NULL, $edit, t('Save'));
+          $this->drupalPostForm(NULL, $edit, 'Save');
           $this->assertText('The URL field is required when the Link text field is specified.');
         }
         if ($title_setting === DRUPAL_REQUIRED) {
@@ -317,14 +317,14 @@ public function testLinkTitle() {
           $edit = [
             "{$field_name}[0][uri]" => 'http://www.example.com',
           ];
-          $this->drupalPostForm(NULL, $edit, t('Save'));
+          $this->drupalPostForm(NULL, $edit, 'Save');
           $this->assertText('Link text field is required if there is URL input.');
 
           // Verify that the link text is not required, if the URL is empty.
           $edit = [
             "{$field_name}[0][uri]" => '',
           ];
-          $this->drupalPostForm(NULL, $edit, t('Save'));
+          $this->drupalPostForm(NULL, $edit, 'Save');
           $this->assertNoText('Link text field is required.');
 
           // Verify that a URL and link text meets requirements.
@@ -333,7 +333,7 @@ public function testLinkTitle() {
             "{$field_name}[0][uri]" => 'http://www.example.com',
             "{$field_name}[0][title]" => 'Example',
           ];
-          $this->drupalPostForm(NULL, $edit, t('Save'));
+          $this->drupalPostForm(NULL, $edit, 'Save');
           $this->assertNoText('Link text field is required.');
         }
       }
@@ -345,7 +345,7 @@ public function testLinkTitle() {
       "{$field_name}[0][uri]" => $value,
       "{$field_name}[0][title]" => '',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -359,7 +359,7 @@ public function testLinkTitle() {
     $edit = [
       "{$field_name}[0][title]" => $title,
     ];
-    $this->drupalPostForm("entity_test/manage/$id/edit", $edit, t('Save'));
+    $this->drupalPostForm("entity_test/manage/$id/edit", $edit, 'Save');
     $this->assertText('entity_test ' . $id . ' has been updated.');
 
     $output = $this->renderTestEntity($id);
@@ -429,7 +429,7 @@ public function testLinkFormatter() {
     ];
     // Assert label is shown.
     $this->assertText('Read more about this entity');
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -580,7 +580,7 @@ public function testLinkSeparateFormatter() {
       "{$field_name}[2][uri]" => $url3,
       "{$field_name}[2][title]" => $title3,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.');
@@ -797,7 +797,7 @@ public function testNoLinkUri() {
       "{$field_name}[0][uri]" => '<nolink>',
     ];
 
-    $this->drupalPostForm('/entity_test/add', $edit, t('Save'));
+    $this->drupalPostForm('/entity_test/add', $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $output = $this->renderTestEntity($id);
@@ -810,7 +810,7 @@ public function testNoLinkUri() {
       "{$field_name}[0][uri]" => '<none>',
     ];
 
-    $this->drupalPostForm('/entity_test/add', $edit, t('Save'));
+    $this->drupalPostForm('/entity_test/add', $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $output = $this->renderTestEntity($id);
diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
index dfce03cebc03..ae5a7f867539 100644
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
@@ -64,7 +64,7 @@ public function testConfigTranslationImport() {
     $edit = [
       'authenticated[translate interface]' => 'translate interface',
     ];
-    $this->drupalPostForm('admin/people/permissions', $edit, t('Save permissions'));
+    $this->drupalPostForm('admin/people/permissions', $edit, 'Save permissions');
 
     // Check and update the translation status. This will import the Afrikaans
     // translations of locale_test_translate module.
@@ -76,7 +76,7 @@ public function testConfigTranslationImport() {
     $status['drupal']['af']->type = 'current';
     \Drupal::state()->set('locale.translation_status', $status);
 
-    $this->drupalPostForm('admin/reports/translations', [], t('Update translations'));
+    $this->drupalPostForm('admin/reports/translations', [], 'Update translations');
 
     // Check if configuration translations have been imported.
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'system.maintenance');
@@ -115,7 +115,7 @@ public function testConfigTranslationModuleInstall() {
       ->save();
 
     // Add predefined language.
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'af'], t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'af'], 'Add language');
 
     // Add the system branding block to the page.
     $this->drupalPlaceBlock('system_branding_block', ['region' => 'header', 'id' => 'site-branding']);
@@ -137,7 +137,7 @@ public function testConfigTranslationModuleInstall() {
       ->save();
 
     // Install any module.
-    $this->drupalPostForm('admin/modules', ['modules[dblog][enable]' => 'dblog'], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[dblog][enable]' => 'dblog'], 'Install');
     $this->assertText('Module Database Logging has been enabled.');
 
     // Get the front page and ensure that the translated configuration still
@@ -181,7 +181,7 @@ public function testLocaleRemovalAndConfigOverrideDelete() {
       ->save();
 
     // Add predefined language.
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'af'], t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'af'], 'Add language');
 
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
     $this->assertEqual(['translatable_default_with_translation' => 'Locale can translate Afrikaans'], $override->get());
@@ -226,7 +226,7 @@ public function testLocaleRemovalAndConfigOverridePreserve() {
       ->save();
 
     // Add predefined language.
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'af'], t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'af'], 'Add language');
 
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
     // Update test configuration.
@@ -247,14 +247,14 @@ public function testLocaleRemovalAndConfigOverridePreserve() {
       'langcode' => 'af',
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textareas = $this->xpath('//textarea');
     $textarea = current($textareas);
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => '',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
     $expected = [
diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php
index ad34d676b235..bf262a77b2bb 100644
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php
@@ -65,10 +65,10 @@ protected function setUp(): void {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     // Set path prefix.
     $edit = ["prefix[$this->langcode]" => $this->langcode];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
   }
 
   /**
@@ -87,14 +87,14 @@ public function testConfigTranslation() {
       'langcode' => $this->langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textareas = $this->xpath('//textarea');
     $textarea = current($textareas);
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $message,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Get translation and check we've only got the message.
     $translation = \Drupal::languageManager()->getLanguageConfigOverride($this->langcode, 'system.maintenance')->get();
@@ -111,14 +111,14 @@ public function testConfigTranslation() {
       'langcode' => $this->langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textareas = $this->xpath('//textarea');
     $textarea = current($textareas);
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => 'D',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     $translation = \Drupal::languageManager()->getLanguageConfigOverride($this->langcode, 'core.date_format.medium')->get();
     $this->assertEqual($translation['pattern'], 'D', 'Got the right date format pattern after translation.');
@@ -133,7 +133,7 @@ public function testConfigTranslation() {
     $this->assertNull($string, 'Configuration strings have been created upon installation.');
 
     // Enable the image module.
-    $this->drupalPostForm('admin/modules', ['modules[image][enable]' => "1"], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[image][enable]' => "1"], 'Install');
     $this->rebuildContainer();
 
     $string = $this->storage->findString(['source' => 'Medium (220×220)', 'context' => '', 'type' => 'configuration']);
@@ -157,13 +157,13 @@ public function testConfigTranslation() {
       'langcode' => $this->langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $image_style_label,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Check the right single translation has been created.
     $translations = $this->storage->getTranslations(['language' => $this->langcode, 'type' => 'configuration', 'name' => 'image.style.medium']);
@@ -177,8 +177,8 @@ public function testConfigTranslation() {
     $this->assertEqual($translation['label'], $image_style_label, 'Got the right translation for image style name after translation');
 
     // Uninstall the module.
-    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[image]' => "image"], t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[image]' => "image"], 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
 
     // Ensure that the translated configuration has been removed.
     $override = \Drupal::languageManager()->getLanguageConfigOverride('xx', 'image.style.medium');
@@ -191,13 +191,13 @@ public function testConfigTranslation() {
       'langcode' => $this->langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $category_label,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Check if this category displayed in this language will use the
     // translation. This test ensures the entity loaded from the request
@@ -216,12 +216,12 @@ public function testConfigTranslation() {
   public function testOptionalConfiguration() {
     $this->assertNodeConfig(FALSE, FALSE);
     // Enable the node module.
-    $this->drupalPostForm('admin/modules', ['modules[node][enable]' => "1"], t('Install'));
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm('admin/modules', ['modules[node][enable]' => "1"], 'Install');
+    $this->drupalPostForm(NULL, [], 'Continue');
     $this->rebuildContainer();
     $this->assertNodeConfig(TRUE, FALSE);
     // Enable the views module (which node provides some optional config for).
-    $this->drupalPostForm('admin/modules', ['modules[views][enable]' => "1"], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[views][enable]' => "1"], 'Install');
     $this->rebuildContainer();
     $this->assertNodeConfig(TRUE, TRUE);
   }
diff --git a/core/modules/locale/tests/src/Functional/LocaleContentTest.php b/core/modules/locale/tests/src/Functional/LocaleContentTest.php
index 743f518d7b6c..b0c8ada3247a 100644
--- a/core/modules/locale/tests/src/Functional/LocaleContentTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleContentTest.php
@@ -49,12 +49,12 @@ public function testMachineNameLTR() {
     // Install the Arabic language (which is RTL) and configure as the default.
     $edit = [];
     $edit['predefined_langcode'] = 'ar';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     $edit = [
       'site_default_language' => 'ar',
     ];
-    $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language', $edit, 'Save configuration');
 
     // Verify that the machine name field is still LTR for a new content type.
     $this->drupalGet('admin/structure/types/add');
@@ -94,7 +94,7 @@ public function testContentTypeLanguageConfiguration() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     // Set the content type to use multilingual support.
     $this->drupalGet("admin/structure/types/manage/{$type2->id()}");
@@ -102,7 +102,7 @@ public function testContentTypeLanguageConfiguration() {
     $edit = [
       'language_configuration[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm("admin/structure/types/manage/{$type2->id()}", $edit, t('Save content type'));
+    $this->drupalPostForm("admin/structure/types/manage/{$type2->id()}", $edit, 'Save content type');
     $this->assertRaw(t('The content type %type has been updated.', ['%type' => $type2->label()]));
     $this->drupalLogout();
     \Drupal::languageManager()->reset();
@@ -138,7 +138,7 @@ public function testContentTypeLanguageConfiguration() {
     $edit = [
       'langcode[0][value]' => 'en',
     ];
-    $this->drupalPostForm($path, $edit, t('Save'));
+    $this->drupalPostForm($path, $edit, 'Save');
     $this->assertText($node_title . ' has been updated.');
 
     // Verify that the creation message contains a link to a node.
@@ -174,12 +174,12 @@ public function testContentTypeDirLang() {
     // Install Arabic language.
     $edit = [];
     $edit['predefined_langcode'] = 'ar';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Install Spanish language.
     $edit = [];
     $edit['predefined_langcode'] = 'es';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     \Drupal::languageManager()->reset();
 
     // Set the content type to use multilingual support.
@@ -187,7 +187,7 @@ public function testContentTypeDirLang() {
     $edit = [
       'language_configuration[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm("admin/structure/types/manage/{$type->id()}", $edit, t('Save content type'));
+    $this->drupalPostForm("admin/structure/types/manage/{$type->id()}", $edit, 'Save content type');
     $this->assertRaw(t('The content type %type has been updated.', ['%type' => $type->label()]));
     $this->drupalLogout();
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleExportTest.php b/core/modules/locale/tests/src/Functional/LocaleExportTest.php
index e6412c385382..26908ed15c23 100644
--- a/core/modules/locale/tests/src/Functional/LocaleExportTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleExportTest.php
@@ -59,13 +59,13 @@ public function testExportTranslation() {
     $this->drupalPostForm('admin/config/regional/translate/import', [
       'langcode' => 'fr',
       'files[file]' => $name,
-    ], t('Import'));
+    ], 'Import');
     $file_system->unlink($name);
 
     // Get the French translations.
     $this->drupalPostForm('admin/config/regional/translate/export', [
       'langcode' => 'fr',
-    ], t('Export'));
+    ], 'Export');
 
     // Ensure we have a translation file.
     $this->assertRaw('# French translation of Drupal');
@@ -79,7 +79,7 @@ public function testExportTranslation() {
       'langcode' => 'fr',
       'files[file]' => $name,
       'customized' => 1,
-    ], t('Import'));
+    ], 'Import');
     $file_system->unlink($name);
 
     // Create string without translation in the locales_source table.
@@ -95,7 +95,7 @@ public function testExportTranslation() {
       'content_options[not_customized]' => FALSE,
       'content_options[customized]' => TRUE,
       'content_options[not_translated]' => FALSE,
-    ], t('Export'));
+    ], 'Export');
 
     // Ensure we have a translation file.
     $this->assertRaw('# French translation of Drupal');
@@ -110,7 +110,7 @@ public function testExportTranslation() {
       'content_options[not_customized]' => FALSE,
       'content_options[customized]' => FALSE,
       'content_options[not_translated]' => TRUE,
-    ], t('Export'));
+    ], 'Export');
 
     // Ensure we have a translation file.
     $this->assertRaw('# French translation of Drupal');
@@ -129,7 +129,7 @@ public function testExportTranslationTemplateFile() {
     // the locales_source table gets populated with something.
     $this->drupalGet('admin/config/regional/language');
     // Get the translation template file.
-    $this->drupalPostForm('admin/config/regional/translate/export', [], t('Export'));
+    $this->drupalPostForm('admin/config/regional/translate/export', [], 'Export');
     // Ensure we have a translation file.
     $this->assertRaw('# LANGUAGE translation of PROJECT');
   }
diff --git a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
index 0298cd636a8b..361194c27de9 100644
--- a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
@@ -52,7 +52,7 @@ public function testFileConfigurationPage() {
     $fields = [
       'translation_path' => $translation_path,
     ];
-    $this->drupalPostForm(NULL, $fields, t('Save configuration'));
+    $this->drupalPostForm(NULL, $fields, 'Save configuration');
     $this->drupalGet('admin/config/media/file-system');
     $this->assertSession()->fieldValueEquals('translation_path', $translation_path);
     $this->assertEqual($translation_path, $this->config('locale.settings')->get('translation.path'));
diff --git a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
index 7bab05decc79..4257fd1a664d 100644
--- a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
@@ -145,7 +145,7 @@ public function testStandalonePoFile() {
     $this->drupalPostForm('admin/config/regional/translate/import', [
       'langcode' => 'fr',
       'files[file]' => $name,
-    ], t('Import'));
+    ], 'Import');
     $this->assertSession()->addressEquals(Url::fromRoute('locale.translate_import'));
     $this->assertText('File to import not found.', 'File to import not found message.');
 
@@ -163,7 +163,7 @@ public function testStandalonePoFile() {
       'langcode' => 'fr',
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', 'String not overwritten by imported string.');
 
     // This import should not have changed number of plural forms.
@@ -185,7 +185,7 @@ public function testStandalonePoFile() {
       'langcode' => 'fr',
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available.', 'String overwritten by imported string.');
     // This import should have changed number of plural forms.
     $locale_plurals = \Drupal::service('locale.plural.formula')->reset()->getNumberOfPlurals('fr');
@@ -225,7 +225,7 @@ public function testStandalonePoFile() {
       'langcode' => 'fr',
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', 'Customized string not overwritten by imported string.');
 
     // Try importing a .po file with overriding strings, and ensure existing
@@ -244,7 +244,7 @@ public function testStandalonePoFile() {
       'langcode' => 'fr',
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available.', 'Customized string overwritten by imported string.');
 
   }
@@ -291,7 +291,7 @@ public function testEmptyMsgstr() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText($str, 'Search found the string as untranslated.');
   }
 
@@ -324,7 +324,7 @@ public function testConfigPoFile() {
       'label' => $this->randomMachineName(16),
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     // Check for the source strings we are going to translate. Adding the
     // custom language should have made the process to export configuration
@@ -347,7 +347,7 @@ public function testConfigPoFile() {
         'langcode' => $langcode,
         'translation' => 'all',
       ];
-      $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+      $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
       $this->assertText($config_string[1], new FormattableMarkup('Translation of @string found.', ['@string' => $config_string[0]]));
     }
 
@@ -401,7 +401,7 @@ public function importPoFile($contents, array $options = []) {
     $name = $file_system->tempnam('temporary://', "po_") . '.po';
     file_put_contents($name, $contents);
     $options['files[file]'] = $name;
-    $this->drupalPostForm('admin/config/regional/translate/import', $options, t('Import'));
+    $this->drupalPostForm('admin/config/regional/translate/import', $options, 'Import');
     $file_system->unlink($name);
   }
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php b/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php
index 096cac3b2b85..5bbe572103ff 100644
--- a/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php
@@ -136,11 +136,11 @@ public function testLocaleTranslationJsDependencies() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     // Set path prefix.
     $edit = ["prefix[$langcode]" => $prefix];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
 
     // This forces locale.admin.js string sources to be imported, which contains
     // the next translation.
@@ -155,9 +155,9 @@ public function testLocaleTranslationJsDependencies() {
       ]);
     $string = $strings[0];
 
-    $this->drupalPostForm(NULL, ['string' => 'Show description'], t('Filter'));
+    $this->drupalPostForm(NULL, ['string' => 'Show description'], 'Filter');
     $edit = ['strings[' . $string->lid . '][translations][0]' => 'Mostrar descripcion'];
-    $this->drupalPostForm(NULL, $edit, t('Save translations'));
+    $this->drupalPostForm(NULL, $edit, 'Save translations');
 
     // Calculate the filename of the JS including the translations.
     $js_translation_files = \Drupal::state()->get('locale.translation.javascript');
diff --git a/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php b/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php
index cd0c475f8c8a..3636227b606f 100644
--- a/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php
@@ -43,7 +43,7 @@ protected function setUp(): void {
    */
   public function testCircularDependency() {
     // Ensure that we can enable early_translation_test on a non-english site.
-    $this->drupalPostForm('admin/modules', ['modules[early_translation_test][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[early_translation_test][enable]' => TRUE], 'Install');
     $this->assertSession()->statusCodeEquals(200);
   }
 
diff --git a/core/modules/locale/tests/src/Functional/LocalePathTest.php b/core/modules/locale/tests/src/Functional/LocalePathTest.php
index 2054ddd1f726..9d7861233b42 100644
--- a/core/modules/locale/tests/src/Functional/LocalePathTest.php
+++ b/core/modules/locale/tests/src/Functional/LocalePathTest.php
@@ -67,11 +67,11 @@ public function testPathLanguageConfiguration() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     // Set path prefix.
     $edit = ["prefix[$langcode]" => $prefix];
-    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, 'Save configuration');
 
     // Check that the "xx" front page is readily available because path prefix
     // negotiation is pre-configured.
@@ -89,7 +89,7 @@ public function testPathLanguageConfiguration() {
       'alias[0][value]' => '/' . $english_path,
       'langcode[0][value]' => 'en',
     ];
-    $this->drupalPostForm($path, $edit, t('Save'));
+    $this->drupalPostForm($path, $edit, 'Save');
 
     // Create a path alias in new custom language.
     $custom_language_path = $this->randomMachineName(8);
@@ -98,7 +98,7 @@ public function testPathLanguageConfiguration() {
       'alias[0][value]' => '/' . $custom_language_path,
       'langcode[0][value]' => $langcode,
     ];
-    $this->drupalPostForm($path, $edit, t('Save'));
+    $this->drupalPostForm($path, $edit, 'Save');
 
     // Confirm English language path alias works.
     $this->drupalGet($english_path);
diff --git a/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php b/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php
index fad503dc383d..de620e2d89c4 100644
--- a/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php
+++ b/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php
@@ -187,7 +187,7 @@ public function testPluralEditDateFormatter() {
       // not break the test.
       'translation' => 'translated',
     ];
-    $this->drupalPostForm($path, $search, t('Filter'));
+    $this->drupalPostForm($path, $search, 'Filter');
     // Plural values for the langcode fr.
     $this->assertText('@count seconde');
     $this->assertText('@count secondes');
@@ -208,14 +208,14 @@ public function testPluralEditDateFormatter() {
       'string' => '1 second',
       'langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
 
     // Save complete translations for the string in langcode fr.
     $edit = [
       "strings[$lid][translations][0]" => '1 seconde updated',
       "strings[$lid][translations][1]" => '@count secondes updated',
     ];
-    $this->drupalPostForm($path, $edit, t('Save translations'));
+    $this->drupalPostForm($path, $edit, 'Save translations');
 
     // User interface input for translating seconds should not be duplicated
     $this->assertSession()->pageTextContainsOnce('@count seconds');
@@ -244,7 +244,7 @@ public function testPluralEditExport() {
     // Get the French translations.
     $this->drupalPostForm('admin/config/regional/translate/export', [
       'langcode' => 'fr',
-    ], t('Export'));
+    ], 'Export');
     // Ensure we have a translation file.
     $this->assertRaw('# French translation of Drupal');
     // Ensure our imported translations exist in the file.
@@ -255,7 +255,7 @@ public function testPluralEditExport() {
     // Get the Croatian translations.
     $this->drupalPostForm('admin/config/regional/translate/export', [
       'langcode' => 'hr',
-    ], t('Export'));
+    ], 'Export');
     // Ensure we have a translation file.
     $this->assertRaw('# Croatian translation of Drupal');
     // Ensure our imported translations exist in the file.
@@ -273,7 +273,7 @@ public function testPluralEditExport() {
     $search = [
       'langcode' => 'hr',
     ];
-    $this->drupalPostForm($path, $search, t('Filter'));
+    $this->drupalPostForm($path, $search, 'Filter');
     // Labels for plural editing elements.
     $this->assertText('Singular form');
     $this->assertText('First plural form');
@@ -296,12 +296,12 @@ public function testPluralEditExport() {
     $edit = [
       "strings[$lid][translations][1]" => '@count sata edited',
     ];
-    $this->drupalPostForm($path, $edit, t('Save translations'));
+    $this->drupalPostForm($path, $edit, 'Save translations');
 
     $search = [
       'langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     // Plural values for the langcode fr.
     $this->assertText('@count heure');
     $this->assertText('@count heures');
@@ -311,7 +311,7 @@ public function testPluralEditExport() {
     $edit = [
       "strings[$lid][translations][0]" => '@count heure edited',
     ];
-    $this->drupalPostForm($path, $edit, t('Save translations'));
+    $this->drupalPostForm($path, $edit, 'Save translations');
 
     // Inject a plural source string to the database. We need to use a specific
     // langcode here because the language will be English by default and will
@@ -329,33 +329,33 @@ public function testPluralEditExport() {
       'string' => '1 day',
       'langcode' => 'fr',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
 
     // Save complete translations for the string in langcode fr.
     $edit = [
       "strings[$lid][translations][0]" => '1 jour',
       "strings[$lid][translations][1]" => '@count jours',
     ];
-    $this->drupalPostForm($path, $edit, t('Save translations'));
+    $this->drupalPostForm($path, $edit, 'Save translations');
 
     // Save complete translations for the string in langcode hr.
     $search = [
       'string' => '1 day',
       'langcode' => 'hr',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
 
     $edit = [
       "strings[$lid][translations][0]" => '@count dan',
       "strings[$lid][translations][1]" => '@count dana',
       "strings[$lid][translations][2]" => '@count dana',
     ];
-    $this->drupalPostForm($path, $edit, t('Save translations'));
+    $this->drupalPostForm($path, $edit, 'Save translations');
 
     // Get the French translations.
     $this->drupalPostForm('admin/config/regional/translate/export', [
       'langcode' => 'fr',
-    ], t('Export'));
+    ], 'Export');
     // Check for plural export specifically.
     $this->assertRaw("msgid \"1 hour\"\nmsgid_plural \"@count hours\"\nmsgstr[0] \"@count heure edited\"\nmsgstr[1] \"@count heures\"");
     $this->assertRaw("msgid \"1 day\"\nmsgid_plural \"@count days\"\nmsgstr[0] \"1 jour\"\nmsgstr[1] \"@count jours\"");
@@ -363,7 +363,7 @@ public function testPluralEditExport() {
     // Get the Croatian translations.
     $this->drupalPostForm('admin/config/regional/translate/export', [
       'langcode' => 'hr',
-    ], t('Export'));
+    ], 'Export');
     // Check for plural export specifically.
     $this->assertRaw("msgid \"1 hour\"\nmsgid_plural \"@count hours\"\nmsgstr[0] \"@count sat\"\nmsgstr[1] \"@count sata edited\"\nmsgstr[2] \"@count sati\"");
     $this->assertRaw("msgid \"1 day\"\nmsgid_plural \"@count days\"\nmsgstr[0] \"@count dan\"\nmsgstr[1] \"@count dana\"\nmsgstr[2] \"@count dana\"");
@@ -382,7 +382,7 @@ public function importPoFile($contents, array $options = []) {
     $name = $file_system->tempnam('temporary://', "po_") . '.po';
     file_put_contents($name, $contents);
     $options['files[file]'] = $name;
-    $this->drupalPostForm('admin/config/regional/translate/import', $options, t('Import'));
+    $this->drupalPostForm('admin/config/regional/translate/import', $options, 'Import');
     $file_system->unlink($name);
   }
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php b/core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php
index 3ffe9e40a342..9e209c5159f6 100644
--- a/core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php
@@ -50,7 +50,7 @@ public function testTranslateStringTourTips() {
     // Add another language so there are no missing form items.
     $edit = [];
     $edit['predefined_langcode'] = 'es';
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     $this->drupalGet('admin/config/regional/translate');
     $this->assertTourTips();
diff --git a/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php b/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
index 5c5c763883f8..5dd2d33a0fba 100644
--- a/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
@@ -38,7 +38,7 @@ public function testEnglishTranslation() {
     ]);
     $this->drupalLogin($admin_user);
 
-    $this->drupalPostForm('admin/config/regional/language/edit/en', ['locale_translate_english' => TRUE], t('Save language'));
+    $this->drupalPostForm('admin/config/regional/language/edit/en', ['locale_translate_english' => TRUE], 'Save language');
     $this->assertSession()->linkByHrefExists('/admin/config/regional/translate?langcode=en', 0, 'Enabled interface translation to English.');
   }
 
@@ -72,7 +72,7 @@ public function testStringTranslation() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     // Add string.
     t($name, [], ['langcode' => $langcode])->render();
     // Reset locale cache.
@@ -91,7 +91,7 @@ public function testStringTranslation() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText($name, 'Search found the string as untranslated.');
 
     // No t() here, it's surely not translated yet.
@@ -100,10 +100,10 @@ public function testStringTranslation() {
     $this->assertSession()->optionNotExists('edit-langcode', 'en');
     $this->drupalLogout();
     $this->drupalLogin($admin_user);
-    $this->drupalPostForm('admin/config/regional/language/edit/en', ['locale_translate_english' => TRUE], t('Save language'));
+    $this->drupalPostForm('admin/config/regional/language/edit/en', ['locale_translate_english' => TRUE], 'Save language');
     $this->drupalLogout();
     $this->drupalLogin($translate_user);
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText($name, 'Search found the string as untranslated.');
 
     // Assume this is the only result, given the random name.
@@ -112,7 +112,7 @@ public function testStringTranslation() {
     $edit = [
       $lid => $translation,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
     $this->assertText('The strings have been saved.', 'The strings have been saved.');
     $url_bits = explode('?', $this->getUrl());
     $this->assertEqual($url_bits[0], Url::fromRoute('locale.translate_page', [], ['absolute' => TRUE])->toString(), 'Correct page redirection.');
@@ -121,7 +121,7 @@ public function testStringTranslation() {
       'langcode' => $langcode,
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertRaw($translation);
 
     $search = [
@@ -129,19 +129,19 @@ public function testStringTranslation() {
       'langcode' => 'en',
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $translation_to_en,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
     $search = [
       'string' => $name,
       'langcode' => 'en',
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertRaw($translation_to_en);
 
     $this->assertNotEquals($translation, $name);
@@ -160,7 +160,7 @@ public function testStringTranslation() {
       'langcode' => 'en',
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', 'String is translated.');
 
     // Test invalidation of 'rendered' cache tag after string translation.
@@ -174,13 +174,13 @@ public function testStringTranslation() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => 'Please enter your Llama username.',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     $this->drupalLogout();
     $this->drupalGet('xx/user/login');
@@ -190,7 +190,7 @@ public function testStringTranslation() {
     $this->drupalLogin($admin_user);
     $path = 'admin/config/regional/language/delete/' . $langcode;
     // This a confirm form, we do not need any fields changed.
-    $this->drupalPostForm($path, [], t('Delete'));
+    $this->drupalPostForm($path, [], 'Delete');
     // We need raw here because %language and %langcode will add HTML.
     $t_args = ['%language' => $name, '%langcode' => $langcode];
     $this->assertRaw(t('The %language (%langcode) language has been removed.', $t_args));
@@ -207,14 +207,14 @@ public function testStringTranslation() {
       'langcode' => 'en',
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     // Assume this is the only result, given the random name.
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => '',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
     $this->assertRaw($name);
     $this->drupalLogin($translate_user);
     $search = [
@@ -222,7 +222,7 @@ public function testStringTranslation() {
       'langcode' => 'en',
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available.', 'The translation has been removed');
   }
 
@@ -250,7 +250,7 @@ public function testJavaScriptTranslation() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     $this->container->get('language_manager')->reset();
 
     // Build the JavaScript translation file.
@@ -270,14 +270,14 @@ public function testJavaScriptTranslation() {
       'langcode' => $langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
 
     $textarea = current($this->xpath('//textarea'));
     $lid = $textarea->getAttribute('name');
     $edit = [
       $lid => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Trigger JavaScript translation parsing and building.
     _locale_rebuild_js($langcode);
@@ -325,7 +325,7 @@ public function testStringValidation() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     // Add string.
     t($name, [], ['langcode' => $langcode])->render();
     // Reset locale cache.
@@ -334,7 +334,7 @@ public function testStringValidation() {
       'langcode' => $langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     // Find the edit path.
 
     $textarea = current($this->xpath('//textarea'));
@@ -343,7 +343,7 @@ public function testStringValidation() {
       $edit = [
         $lid => $translation,
       ];
-      $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+      $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
       // Check for a form error on the textarea.
       $form_class = $this->xpath('//form[@id="locale-translate-edit-form"]//textarea/@class');
       $this->assertStringContainsString('error', $form_class[0]->getText(), 'The string was rejected as unsafe.');
@@ -381,7 +381,7 @@ public function testStringSearch() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     $edit = [
       'predefined_langcode' => 'custom',
@@ -389,7 +389,7 @@ public function testStringSearch() {
       'label' => $this->randomMachineName(16),
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     // Add string.
     t($name, [], ['langcode' => $langcode])->render();
@@ -404,7 +404,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     // assertText() seems to remove the input field where $name always could be
     // found, so this is not a false assert. See how assertNoText succeeds
     // later.
@@ -417,7 +417,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', "Search didn't find the string.");
 
     // Ensure untranslated string appears if searching on 'only untranslated
@@ -427,7 +427,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available.', 'Search found the string.');
 
     // Add translation.
@@ -438,7 +438,7 @@ public function testStringSearch() {
     $edit = [
       $lid => $translation,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Ensure translated string does appear if searching on 'only
     // translated strings'.
@@ -447,7 +447,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available.', 'Search found the translation.');
 
     // Ensure translated source string doesn't appear if searching on 'only
@@ -457,7 +457,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', "Search didn't find the source string.");
 
     // Ensure translated string doesn't appear if searching on 'only
@@ -467,7 +467,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', "Search didn't find the translation.");
 
     // Ensure translated string does appear if searching on the custom language.
@@ -476,7 +476,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available.', 'Search found the translation.');
 
     // Ensure translated string doesn't appear if searching in System (English).
@@ -485,7 +485,7 @@ public function testStringSearch() {
       'langcode' => 'yy',
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', "Search didn't find the translation.");
 
     // Search for a string that isn't in the system.
@@ -495,7 +495,7 @@ public function testStringSearch() {
       'langcode' => $langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('No strings available.', "Search didn't find the invalid string.");
   }
 
@@ -536,7 +536,7 @@ public function testUICustomizedStrings() {
       'translation' => 'translated',
       'customized' => '0',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
 
     $this->assertText($translation->getString(), 'Translation is found in search result.');
 
@@ -546,7 +546,7 @@ public function testUICustomizedStrings() {
     $edit = [
       $lid => $translation->getString(),
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Ensure unchanged translation string does appear if searching
     // non-customized translation.
@@ -556,7 +556,7 @@ public function testUICustomizedStrings() {
       'translation' => 'translated',
       'customized' => '0',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText($string->getString(), 'Translation is not marked as customized.');
 
     // Submit the translations with a new translation.
@@ -565,7 +565,7 @@ public function testUICustomizedStrings() {
     $edit = [
       $lid => $this->randomMachineName(100),
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Ensure changed translation string does appear if searching customized
     // translation.
@@ -575,7 +575,7 @@ public function testUICustomizedStrings() {
       'translation' => 'translated',
       'customized' => '1',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText($string->getString(), "Translation is marked as customized.");
   }
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
index 359a9ad5bd70..7da4ab4c6ac0 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
@@ -89,7 +89,7 @@ protected function setTranslationsDirectory($path) {
    */
   protected function addLanguage($langcode) {
     $edit = ['predefined_langcode' => $langcode];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $this->container->get('language_manager')->reset();
     $this->assertNotEmpty(\Drupal::languageManager()->getLanguage($langcode), new FormattableMarkup('Language %langcode added.', ['%langcode' => $langcode]));
   }
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php
index b7bef2392a30..37dcf4b2fba8 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php
@@ -51,7 +51,7 @@ public function testUpdateCron() {
 
     // Update translations using batch to ensure a clean test starting point.
     $this->drupalGet('admin/reports/translations/check');
-    $this->drupalPostForm('admin/reports/translations', [], t('Update translations'));
+    $this->drupalPostForm('admin/reports/translations', [], 'Update translations');
 
     // Store translation status for comparison.
     $initial_history = locale_translation_get_file_history();
@@ -74,7 +74,7 @@ public function testUpdateCron() {
     $edit = [
       'update_interval_days' => 0,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Execute locale cron tasks to add tasks to the queue.
     locale_cron();
@@ -89,7 +89,7 @@ public function testUpdateCron() {
     $edit = [
       'update_interval_days' => 7,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Execute locale cron tasks to add tasks to the queue.
     locale_cron();
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php
index 536c4fd4275d..bbe70ce76ad0 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php
@@ -28,7 +28,7 @@ protected function setUp(): void {
       'translate interface',
     ]);
     $this->drupalLogin($admin_user);
-    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'hu'], t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'hu'], 'Add language');
   }
 
   public function testLocaleUpdateDevelopmentRelease() {
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
index 8de98d95d195..5552c1c2c4bc 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
@@ -70,7 +70,7 @@ public function testUpdateCheckStatus() {
     $edit = [
       'use_source' => LOCALE_TRANSLATION_USE_SOURCE_LOCAL,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Get status of translation sources at local file system.
     $this->drupalGet('admin/reports/translations/check');
@@ -86,7 +86,7 @@ public function testUpdateCheckStatus() {
     $edit = [
       'use_source' => LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Get status of translation sources at both local and remote locations.
     $this->drupalGet('admin/reports/translations/check');
@@ -121,7 +121,7 @@ public function testUpdateImportSourceRemote() {
       'use_source' => LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL,
       'overwrite' => LOCALE_TRANSLATION_OVERWRITE_ALL,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Get the translation status.
     $this->drupalGet('admin/reports/translations/check');
@@ -135,7 +135,7 @@ public function testUpdateImportSourceRemote() {
     $this->assertText('Contributed module two (' . $date_formatter->format($this->timestampNew, 'html_date') . ')', 'Updates for Contrib module two');
 
     // Execute the translation update.
-    $this->drupalPostForm('admin/reports/translations', [], t('Update translations'));
+    $this->drupalPostForm('admin/reports/translations', [], 'Update translations');
 
     // Check if the translation has been updated, using the status cache.
     $status = locale_translation_get_status();
@@ -187,11 +187,11 @@ public function testUpdateImportSourceLocal() {
       'use_source' => LOCALE_TRANSLATION_USE_SOURCE_LOCAL,
       'overwrite' => LOCALE_TRANSLATION_OVERWRITE_ALL,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Execute the translation update.
     $this->drupalGet('admin/reports/translations/check');
-    $this->drupalPostForm('admin/reports/translations', [], t('Update translations'));
+    $this->drupalPostForm('admin/reports/translations', [], 'Update translations');
 
     // Check if the translation has been updated, using the status cache.
     $status = locale_translation_get_status();
@@ -243,11 +243,11 @@ public function testUpdateImportModeNonCustomized() {
       'use_source' => LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL,
       'overwrite' => LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Execute translation update.
     $this->drupalGet('admin/reports/translations/check');
-    $this->drupalPostForm('admin/reports/translations', [], t('Update translations'));
+    $this->drupalPostForm('admin/reports/translations', [], 'Update translations');
 
     // Check whether existing translations have (not) been overwritten.
     // cSpell:disable
@@ -281,11 +281,11 @@ public function testUpdateImportModeNone() {
       'use_source' => LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL,
       'overwrite' => LOCALE_TRANSLATION_OVERWRITE_NONE,
     ];
-    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/translate/settings', $edit, 'Save configuration');
 
     // Execute translation update.
     $this->drupalGet('admin/reports/translations/check');
-    $this->drupalPostForm('admin/reports/translations', [], t('Update translations'));
+    $this->drupalPostForm('admin/reports/translations', [], 'Update translations');
 
     // Check whether existing translations have (not) been overwritten.
     // cSpell:disable
@@ -313,7 +313,7 @@ public function testEnableUninstallModule() {
     $edit = [
       'modules[locale_test_translate][enable]' => 'locale_test_translate',
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // Check if translations have been imported.
     $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.',
@@ -324,8 +324,8 @@ public function testEnableUninstallModule() {
     $edit = [
       'uninstall[locale_test_translate]' => 1,
     ];
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
 
     // Check if the file data is removed from the database.
     $history = locale_translation_get_file_history();
@@ -349,7 +349,7 @@ public function testEnableLanguage() {
     $edit = [
       'modules[locale_test_translate][enable]' => 'locale_test_translate',
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // Check if there is no Dutch translation yet.
     $this->assertTranslation('Extraday', '', 'nl');
@@ -360,7 +360,7 @@ public function testEnableLanguage() {
     $edit = [
       'predefined_langcode' => 'nl',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Check if the right number of translations are added.
     $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.',
@@ -378,7 +378,7 @@ public function testEnableLanguage() {
     $this->assertNotEmpty($result, 'Files added to file history');
 
     // Remove a language.
-    $this->drupalPostForm('admin/config/regional/language/delete/nl', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/nl', [], 'Delete');
 
     // Check if the language data is removed from the database.
     $result = $connection->select('locale_file', 'lf')
@@ -405,7 +405,7 @@ public function testEnableCustomLanguage() {
     $edit = [
       'modules[locale_test_translate][enable]' => 'locale_test_translate',
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // Create a custom language with language code 'xx' and a random
     // name.
@@ -417,7 +417,7 @@ public function testEnableCustomLanguage() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
 
     // Ensure the translation file is automatically imported when the language
     // was added.
@@ -430,7 +430,7 @@ public function testEnableCustomLanguage() {
       'langcode' => $langcode,
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available.', 'String successfully imported.');
 
     // Ensure the multiline string was imported.
@@ -439,7 +439,7 @@ public function testEnableCustomLanguage() {
       'langcode' => $langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('Multiline translation string to make sure that import works with it.', 'String successfully imported.');
 
     // Ensure 'Allowed HTML source string' was imported but the translation for
@@ -450,7 +450,7 @@ public function testEnableCustomLanguage() {
       'langcode' => $langcode,
       'translation' => 'all',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertText('Allowed HTML source string', 'String successfully imported.');
     $this->assertNoText('Another allowed HTML source string', 'String with disallowed translation not imported.');
   }
diff --git a/core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php b/core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php
index 2d4c056f345e..d6e8026eebe6 100644
--- a/core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php
+++ b/core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php
@@ -112,7 +112,7 @@ public function testDisplayModes() {
       'source' => 'file',
     ];
     $this->drupalPostForm('admin/structure/media/add', $edit, 'Save');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->pageTextContains("Media Library form and view displays have been created for the $type_five_id media type.");
     $this->assertFormDisplay($type_five_id, TRUE, FALSE);
     $this->assertViewDisplay($type_five_id, 'medium');
@@ -128,7 +128,7 @@ public function testDisplayModes() {
     $edit = [
       'field_map[name]' => File::METADATA_ATTRIBUTE_NAME,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->pageTextContains("Media Library form and view displays have been created for the $type_six_id media type.");
     $this->assertFormDisplay($type_six_id, FALSE, FALSE);
     $this->assertViewDisplay($type_six_id, 'medium');
@@ -141,7 +141,7 @@ public function testDisplayModes() {
       'source' => 'image',
     ];
     $this->drupalPostForm('admin/structure/media/add', $edit, 'Save');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->pageTextContains("Media Library form and view displays have been created for the $type_seven_id media type.");
     $this->assertFormDisplay($type_seven_id, TRUE, TRUE);
     $this->assertViewDisplay($type_seven_id, 'medium');
@@ -157,7 +157,7 @@ public function testDisplayModes() {
     $edit = [
       'field_map[name]' => Image::METADATA_ATTRIBUTE_NAME,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->pageTextContains("Media Library form and view displays have been created for the $type_eight_id media type.");
     $this->assertFormDisplay($type_eight_id, FALSE, TRUE);
     $this->assertViewDisplay($type_eight_id, 'medium');
@@ -173,7 +173,7 @@ public function testDisplayModes() {
     $edit = [
       'field_map[title]' => 'name',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->pageTextContains("Media Library form and view displays have been created for the $type_id media type.");
     $this->assertFormDisplay($type_id, FALSE, FALSE);
     $this->assertViewDisplay($type_id, 'medium');
@@ -198,7 +198,7 @@ public function testDisplayModes() {
       'source' => 'image',
     ];
     $this->drupalPostForm('admin/structure/media/add', $edit, 'Save');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->pageTextContains("Media Library form and view displays have been created for the $type_nine_id media type.");
     $this->assertFormDisplay($type_nine_id, TRUE, TRUE);
     $this->assertViewDisplay($type_nine_id, 'media_library');
diff --git a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentDeleteFormTest.php b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentDeleteFormTest.php
index 7eb6681c2d3c..e401c85c8b1a 100644
--- a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentDeleteFormTest.php
+++ b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentDeleteFormTest.php
@@ -45,7 +45,7 @@ public function testMenuLinkContentDeleteForm() {
         'title[0][value]' => t('Front page'),
         'link[0][uri]' => '<front>',
       ],
-      t('Save')
+      'Save'
     );
     $this->assertText('The menu link has been saved.');
 
@@ -62,7 +62,7 @@ public function testMenuLinkContentDeleteForm() {
     $this->drupalGet($menu_link->toUrl('delete-form'));
     $menu = Menu::load($menu_link->getMenuName());
     $this->assertSession()->linkByHrefExists($menu->toUrl('edit-form')->toString());
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('The menu link %title has been deleted.', ['%title' => $menu_link->label()]));
   }
 
diff --git a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php
index d62ba91b63db..c3d85943645c 100644
--- a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php
+++ b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php
@@ -95,7 +95,7 @@ public function testMenuLinkContentForm() {
         'title[0][value]' => t('Front page'),
         'link[0][uri]' => '<front>',
       ],
-      t('Save')
+      'Save'
     );
     $this->assertText('The menu link has been saved.');
   }
@@ -111,7 +111,7 @@ public function testMenuLinkContentFormValidation() {
         'title[0][value]' => t('Test page'),
         'link[0][uri]' => '<test>',
       ],
-      t('Save')
+      'Save'
     );
     $this->assertText('Manually entered paths should start with one of the following characters: / ? #');
   }
diff --git a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php
index 20eeb7a11320..160c13c12691 100644
--- a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php
+++ b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php
@@ -96,7 +96,7 @@ public function testTranslationLinkTheme() {
     $this->container->get('theme_installer')->install(['seven']);
     $edit = [];
     $edit['admin_theme'] = 'seven';
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
     // Check that edit uses the admin theme.
     $this->drupalGet('admin/structure/menu/item/' . $entityId . '/edit');
     $this->assertRaw('core/themes/seven/css/base/elements.css');
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php b/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php
index 734d53fd92ba..76710fe90806 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php
@@ -54,14 +54,14 @@ public function testDefaultMenuLinkReorder() {
     $edit = [
       'links[menu_plugin_id:test_page_test.front_page][weight]' => -10,
     ];
-    $this->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/manage/main', $edit, 'Save');
 
     // The link is still there.
     $this->drupalGet('test-page');
     $this->assertSession()->linkExists('Home');
 
     // Clear all caches.
-    $this->drupalPostForm('admin/config/development/performance', [], t('Clear all caches'));
+    $this->drupalPostForm('admin/config/development/performance', [], 'Clear all caches');
 
     // Clearing all caches should not affect the state of the menu link.
     $this->drupalGet('test-page');
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php
index d9d8d597ac09..190679e3e221 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php
@@ -72,12 +72,12 @@ public function testMenuUiWithPendingRevisions() {
     $node = $this->drupalCreateNode();
 
     // Publish the node with no changes.
-    $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', [], 'Save');
     $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()]));
 
     // Create a pending revision with no changes.
     $edit = ['moderation_state[0][state]' => 'draft'];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()]));
 
     // Add a menu link and save a new default (published) revision.
@@ -86,7 +86,7 @@ public function testMenuUiWithPendingRevisions() {
       'menu[title]' => 'Test menu link',
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     $this->assertSession()->linkExists('Test menu link');
 
@@ -96,7 +96,7 @@ public function testMenuUiWithPendingRevisions() {
       'menu[weight]' => 1,
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Check that the menu settings were not applied.
     $this->assertSession()->pageTextContains('You can only change the menu link weight for the published version of this content.');
@@ -107,7 +107,7 @@ public function testMenuUiWithPendingRevisions() {
       'menu[menu_parent]' => 'main:test_page_test.front_page',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Check that the menu settings were not applied.
     $this->assertSession()->pageTextContains('You can only change the parent menu link for the published version of this content.');
@@ -117,7 +117,7 @@ public function testMenuUiWithPendingRevisions() {
       'menu[enabled]' => 0,
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Check that the menu settings were not applied.
     $this->assertSession()->pageTextContains('You can only remove the menu link in the published version of this content.');
@@ -130,7 +130,7 @@ public function testMenuUiWithPendingRevisions() {
       'menu[description]' => 'Test menu link description',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()]));
 
     // Ensure the content was not immediately published.
@@ -140,20 +140,20 @@ public function testMenuUiWithPendingRevisions() {
     $edit = [
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->linkExists('Test menu link draft');
 
     // Try to save a new non-default (draft) revision without any changes and
     // check that the error message is not shown.
     $edit = ['moderation_state[0][state]' => 'draft'];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Create a node.
     $node = $this->drupalCreateNode();
 
     // Publish the node with no changes.
     $edit = ['moderation_state[0][state]' => 'published'];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()]));
 
     // Add a menu link and save and create a new non-default (draft) revision
@@ -163,7 +163,7 @@ public function testMenuUiWithPendingRevisions() {
       'menu[title]' => 'Second test menu link',
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()]));
     $this->assertSession()->linkNotExists('Second test menu link');
 
@@ -171,7 +171,7 @@ public function testMenuUiWithPendingRevisions() {
     $edit = [
       'moderation_state[0][state]' => 'published',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertSession()->responseContains(t('Page %label has been updated.', ['%label' => $node->toLink($node->label())->toString()]));
     $this->assertSession()->linkExists('Second test menu link');
   }
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiLanguageTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiLanguageTest.php
index 36266be27c4b..deec3baacdd7 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuUiLanguageTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuUiLanguageTest.php
@@ -66,7 +66,7 @@ public function testMenuLanguage() {
       'label' => $label,
       'langcode' => 'aa',
     ];
-    $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/add', $edit, 'Save');
     ContentLanguageSettings::loadByEntityTypeBundle('menu_link_content', 'menu_link_content')
       ->setDefaultLangcode('bb')
       ->setLanguageAlterable(TRUE)
@@ -84,7 +84,7 @@ public function testMenuLanguage() {
       'title[0][value]' => $link_title,
       'link[0][uri]' => $link_path,
     ];
-    $this->drupalPostForm("admin/structure/menu/manage/$menu_name/add", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/manage/$menu_name/add", $edit, 'Save');
     // Check the link was added with the correct menu link default language.
     $menu_links = \Drupal::entityTypeManager()->getStorage('menu_link_content')->loadByProperties(['title' => $link_title]);
     $menu_link = reset($menu_links);
@@ -106,7 +106,7 @@ public function testMenuLanguage() {
       'title[0][value]' => $link_title,
       'link[0][uri]' => $link_path,
     ];
-    $this->drupalPostForm("admin/structure/menu/manage/$menu_name/add", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/manage/$menu_name/add", $edit, 'Save');
     // Check the link was added with the correct new menu link default language.
     $menu_links = \Drupal::entityTypeManager()->getStorage('menu_link_content')->loadByProperties(['title' => $link_title]);
     $menu_link = reset($menu_links);
@@ -120,7 +120,7 @@ public function testMenuLanguage() {
     $edit = [
       'langcode[0][value]' => 'bb',
     ];
-    $this->drupalPostForm('admin/structure/menu/item/' . $menu_link->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/item/' . $menu_link->id() . '/edit', $edit, 'Save');
     $this->assertMenuLink([
       'menu_name' => $menu_name,
       'route_name' => '<front>',
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php
index 5420336b2aed..5aa6ddf4c85e 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php
@@ -89,7 +89,7 @@ public function testMenuNodeFormWidget() {
     $edit = [
       'menu_options[main]' => FALSE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
 
     // Verify that no menu settings are displayed and nodes can be created.
     $this->drupalGet('node/add/page');
@@ -100,7 +100,7 @@ public function testMenuNodeFormWidget() {
       'title[0][value]' => $node_title,
       'body[0][value]' => $this->randomString(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($node_title);
     $this->assertEqual($node->getTitle(), $edit['title[0][value]']);
 
@@ -110,7 +110,7 @@ public function testMenuNodeFormWidget() {
       'menu_options[tools]' => 1,
       'menu_parent' => 'main:',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
     $this->assertText('The selected menu link is not under one of the selected menus.');
     $this->assertNoRaw(t('The content type %name has been updated.', ['%name' => 'Basic page']));
 
@@ -120,7 +120,7 @@ public function testMenuNodeFormWidget() {
       'menu_options[tools]' => 1,
       'menu_parent' => 'main:',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
     $this->assertRaw(t('The content type %name has been updated.', ['%name' => 'Basic page']));
 
     // Test that we can preview a node that will create a menu item.
@@ -129,7 +129,7 @@ public function testMenuNodeFormWidget() {
       'menu[enabled]' => 1,
       'menu[title]' => 'Test preview',
     ];
-    $this->drupalPostForm('node/add/page', $edit, t('Preview'));
+    $this->drupalPostForm('node/add/page', $edit, 'Preview');
 
     // Create a node.
     $node_title = $this->randomMachineName();
@@ -137,7 +137,7 @@ public function testMenuNodeFormWidget() {
       'title[0][value]' => $node_title,
       'body[0][value]' => $this->randomString(),
     ];
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($node_title);
     // Assert that there is no link for the node.
     $this->drupalGet('test-page');
@@ -147,7 +147,7 @@ public function testMenuNodeFormWidget() {
     $edit = [
       'menu[enabled]' => 1,
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     // Assert that there is no link for the node.
     $this->drupalGet('test-page');
     $this->assertSession()->linkNotExists($node_title);
@@ -186,7 +186,7 @@ public function testMenuNodeFormWidget() {
       'menu[title]' => $node_title,
       'menu[weight]' => 17,
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     // Assert that the link exists.
     $this->drupalGet('test-page');
     $this->assertSession()->linkExists($node_title);
@@ -206,7 +206,7 @@ public function testMenuNodeFormWidget() {
     $link = MenuLinkContent::load($link_id);
     $link->set('enabled', FALSE);
     $link->save();
-    $this->drupalPostForm($node->toUrl('edit-form'), $edit, t('Save'));
+    $this->drupalPostForm($node->toUrl('edit-form'), $edit, 'Save');
     $link = MenuLinkContent::load($link_id);
     $this->assertFalse($link->isEnabled(), 'Saving a node with a disabled menu link keeps the menu link disabled.');
 
@@ -214,7 +214,7 @@ public function testMenuNodeFormWidget() {
     $edit = [
       'menu[enabled]' => FALSE,
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     // Assert that there is no link for the node.
     $this->drupalGet('test-page');
     $this->assertSession()->linkNotExists($node_title);
@@ -232,7 +232,7 @@ public function testMenuNodeFormWidget() {
     $this->drupalGet('node/' . $node->id() . '/edit');
     $this->assertText('Provide a menu link', 'Link in not allowed menu not shown in node edit form');
     // Assert that the link is still in the Administration menu after save.
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $link = MenuLinkContent::load($item->id());
     $this->assertInstanceOf(MenuLinkContent::class, $link);
 
@@ -294,7 +294,7 @@ public function testMultilingualMenuNodeFormWidget() {
       'settings[node][page][fields][title]' => TRUE,
       'settings[menu_link_content][menu_link_content][translatable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     // Log out and back in as normal user.
     $this->drupalLogout();
@@ -325,7 +325,7 @@ public function testMultilingualMenuNodeFormWidget() {
     ];
     $options = ['language' => $languages[$langcodes[0]]];
     $url = $node->toUrl('edit-form', $options);
-    $this->drupalPostForm($url, $edit, t('Save') . ' ' . t('(this translation)'));
+    $this->drupalPostForm($url, $edit, 'Save (this translation)');
 
     // Edit the node in a different language and translate the menu link.
     $edit = [
@@ -335,7 +335,7 @@ public function testMultilingualMenuNodeFormWidget() {
     ];
     $options = ['language' => $languages[$langcodes[1]]];
     $url = $node->toUrl('edit-form', $options);
-    $this->drupalPostForm($url, $edit, t('Save') . ' ' . t('(this translation)'));
+    $this->drupalPostForm($url, $edit, 'Save (this translation)');
 
     // Assert that the original link exists in the frontend.
     $this->drupalGet('node/' . $node->id(), ['language' => $languages[$langcodes[0]]]);
@@ -350,7 +350,7 @@ public function testMultilingualMenuNodeFormWidget() {
     $url = $node->toUrl('edit-form', $options);
     $this->drupalGet($url);
     $this->assertSession()->fieldValueEquals('edit-menu-title', $node_title);
-    $this->drupalPostForm(NULL, [], t('Save') . ' ' . t('(this translation)'));
+    $this->drupalPostForm(NULL, [], 'Save (this translation)');
 
     // Revisit the edit page of the translation and check the loaded menu item title.
     $options = ['language' => $languages[$langcodes[1]]];
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php
index b817c8239298..65c5cc4b079e 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php
@@ -158,7 +158,7 @@ public function testMenu() {
     $edit = [];
     $edit['weight'] = 10;
     $id = $instance->getPluginId();
-    $this->drupalPostForm("admin/structure/menu/link/$id/edit", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/link/$id/edit", $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('The menu link has been saved.');
     $menu_link_manager->resetDefinitions();
@@ -211,7 +211,7 @@ public function addCustomMenu() {
       'description' => '',
       'label' => $label,
     ];
-    $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/add', $edit, 'Save');
 
     // Verify that using a menu_name that is too long results in a validation
     // message.
@@ -224,7 +224,7 @@ public function addCustomMenu() {
     // Change the menu_name so it no longer exceeds the maximum length.
     $menu_name = strtolower($this->randomMachineName(MenuStorage::MAX_ID_LENGTH));
     $edit['id'] = $menu_name;
-    $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/add', $edit, 'Save');
 
     // Verify that no validation error is given for menu_name length.
     $this->assertNoRaw(t('@name cannot be longer than %max characters but is currently %length characters long.', [
@@ -259,7 +259,7 @@ public function deleteCustomMenu() {
     $label = $this->menu->label();
 
     // Delete custom menu.
-    $this->drupalPostForm("admin/structure/menu/manage/$menu_name/delete", [], t('Delete'));
+    $this->drupalPostForm("admin/structure/menu/manage/$menu_name/delete", [], 'Delete');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('The menu %title has been deleted.', ['%title' => $label]));
     $this->assertNull(Menu::load($menu_name), 'Custom menu was deleted');
@@ -288,18 +288,18 @@ public function doMenuTests() {
 
     $this->clickLink(t('Add link'));
     $link_title = $this->randomString();
-    $this->drupalPostForm(NULL, ['link[0][uri]' => '/', 'title[0][value]' => $link_title], t('Save'));
+    $this->drupalPostForm(NULL, ['link[0][uri]' => '/', 'title[0][value]' => $link_title], 'Save');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name]));
     // Test the 'Edit' operation.
     $this->clickLink(t('Edit'));
     $this->assertSession()->fieldValueEquals('title[0][value]', $link_title);
     $link_title = $this->randomString();
-    $this->drupalPostForm(NULL, ['title[0][value]' => $link_title], t('Save'));
+    $this->drupalPostForm(NULL, ['title[0][value]' => $link_title], 'Save');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name]));
     // Test the 'Delete' operation.
     $this->clickLink(t('Delete'));
     $this->assertRaw(t('Are you sure you want to delete the custom menu link %item?', ['%item' => $link_title]));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name]));
 
     // Add nodes to use as links for menu links.
@@ -457,7 +457,7 @@ public function doMenuTests() {
     $this->disableMenuLink($item1);
     $edit = [];
     $edit['links[menu_plugin_id:' . $item1->getPluginId() . '][enabled]'] = TRUE;
-    $this->drupalPostForm('admin/structure/menu/manage/' . $item1->getMenuName(), $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/manage/' . $item1->getMenuName(), $edit, 'Save');
 
     // Mark item2, item4 and item5 as expanded.
     // This is done in order to show them on the frontpage.
@@ -525,7 +525,7 @@ public function testMenuQueryAndFragment() {
 
     // Now change the path to something without query and fragment.
     $path = '/test-page';
-    $this->drupalPostForm('admin/structure/menu/item/' . $item->id() . '/edit', ['link[0][uri]' => $path], t('Save'));
+    $this->drupalPostForm('admin/structure/menu/item/' . $item->id() . '/edit', ['link[0][uri]' => $path], 'Save');
     $this->drupalGet('admin/structure/menu/item/' . $item->id() . '/edit');
     $this->assertSession()->fieldValueEquals('link[0][uri]', $path);
 
@@ -536,7 +536,7 @@ public function testMenuQueryAndFragment() {
     $this->drupalGet('admin/structure/menu/item/' . $item->id() . '/edit');
     $this->assertSession()->fieldValueEquals('link[0][uri]', $path);
 
-    $this->drupalPostForm('admin/structure/menu/item/' . $item->id() . '/edit', [], t('Save'));
+    $this->drupalPostForm('admin/structure/menu/item/' . $item->id() . '/edit', [], 'Save');
 
     $this->drupalGet('admin/structure/menu/item/' . $item->id() . '/edit');
     $this->assertSession()->fieldValueEquals('link[0][uri]', $path);
@@ -550,7 +550,7 @@ public function testSystemMenuRename() {
     $edit = [
       'label' => $this->randomMachineName(16),
     ];
-    $this->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/manage/main', $edit, 'Save');
 
     // Make sure menu shows up with new name in block addition.
     $default_theme = $this->config('system.theme')->get('default');
@@ -626,7 +626,7 @@ public function addMenuLink($parent = '', $path = '/', $menu_name = 'tools', $ex
     ];
 
     // Add menu link.
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('The menu link has been saved.');
 
@@ -648,7 +648,7 @@ public function addInvalidMenuLink() {
         'link[0][uri]' => $link_path,
         'title[0][value]' => 'title',
       ];
-      $this->drupalPostForm("admin/structure/menu/manage/{$this->menu->id()}/add", $edit, t('Save'));
+      $this->drupalPostForm("admin/structure/menu/manage/{$this->menu->id()}/add", $edit, 'Save');
       $this->assertRaw(t("The path '@link_path' is inaccessible.", ['@link_path' => $link_path]));
     }
   }
@@ -677,7 +677,7 @@ public function checkInvalidParentMenuLinks() {
         'expanded[value]' => FALSE,
         'weight[0][value]' => '0',
       ];
-      $this->drupalPostForm("admin/structure/menu/manage/{$this->menu->id()}/add", $edit, t('Save'));
+      $this->drupalPostForm("admin/structure/menu/manage/{$this->menu->id()}/add", $edit, 'Save');
       $menu_links = \Drupal::entityTypeManager()->getStorage('menu_link_content')->loadByProperties(['title' => $title]);
       $last_link = reset($menu_links);
       $created_links[] = 'tools:' . $last_link->getPluginId();
@@ -750,7 +750,7 @@ public function moveMenuLink(MenuLinkContent $item, $parent, $menu_name) {
     $edit = [
       'menu_parent' => $menu_name . ':' . $parent,
     ];
-    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
   }
 
@@ -769,7 +769,7 @@ public function modifyMenuLink(MenuLinkContent $item) {
     // Edit menu link.
     $edit = [];
     $edit['title[0][value]'] = $title;
-    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('The menu link has been saved.');
     // Verify menu link.
@@ -787,7 +787,7 @@ public function modifyMenuLink(MenuLinkContent $item) {
    */
   public function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) {
     // Reset menu link.
-    $this->drupalPostForm("admin/structure/menu/link/{$menu_link->getPluginId()}/reset", [], t('Reset'));
+    $this->drupalPostForm("admin/structure/menu/link/{$menu_link->getPluginId()}/reset", [], 'Reset');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('The menu link was reset to its default settings.'));
 
@@ -807,7 +807,7 @@ public function deleteMenuLink(MenuLinkContent $item) {
     $title = $item->getTitle();
 
     // Delete menu link.
-    $this->drupalPostForm("admin/structure/menu/item/$mlid/delete", [], t('Delete'));
+    $this->drupalPostForm("admin/structure/menu/item/$mlid/delete", [], 'Delete');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t('The menu link %title has been deleted.', ['%title' => $title]));
 
@@ -844,7 +844,7 @@ public function toggleMenuLink(MenuLinkContent $item) {
   public function disableMenuLink(MenuLinkContent $item) {
     $mlid = $item->id();
     $edit['enabled[value]'] = FALSE;
-    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, 'Save');
 
     // Unlike most other modules, there is no confirmation message displayed.
     // Verify in the database.
@@ -860,7 +860,7 @@ public function disableMenuLink(MenuLinkContent $item) {
   public function enableMenuLink(MenuLinkContent $item) {
     $mlid = $item->id();
     $edit['enabled[value]'] = TRUE;
-    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, 'Save');
 
     // Verify in the database.
     $this->assertMenuLink(['enabled' => 1], $item->getPluginId());
@@ -909,7 +909,7 @@ public function testExpandAllItems() {
       'settings[depth]' => 2,
       'settings[level]' => 1,
       'settings[expand_all_items]' => 1,
-    ], t('Save block'));
+    ], 'Save block');
 
     // Ensure the setting is persisted.
     $this->drupalGet('admin/structure/block/manage/' . $block_id);
@@ -994,7 +994,7 @@ protected function doTestMenuBlock() {
     $this->drupalPostForm(NULL, [
       'settings[depth]' => 3,
       'settings[level]' => 2,
-    ], t('Save block'));
+    ], 'Save block');
     $block = Block::load($block_id);
     $settings = $block->getPlugin()->getConfiguration();
     $this->assertEqual($settings['depth'], 3);
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
index b792a14e54b8..7867ff12d688 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
@@ -36,24 +36,24 @@ public function testMigrateUpgradeExecute() {
     $session = $this->assertSession();
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
     // Get valid credentials.
     $edits = $this->translatePostValues($this->getCredentials());
 
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
 
     // Restart the upgrade process.
     $this->drupalGet('/upgrade');
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
     $entity_types = [
       'block_content',
       'menu_link_content',
@@ -63,7 +63,7 @@ public function testMigrateUpgradeExecute() {
     ];
     $this->assertIdConflictForm($entity_types);
 
-    $this->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
+    $this->drupalPostForm(NULL, [], 'I acknowledge I may lose data. Continue anyway.');
     $session->statusCodeEquals(200);
 
     // Ensure there are no errors about missing modules from the test module.
@@ -75,7 +75,7 @@ public function testMigrateUpgradeExecute() {
     // Test the review form.
     $this->assertReviewForm();
 
-    $this->drupalPostForm(NULL, [], t('Perform upgrade'));
+    $this->drupalPostForm(NULL, [], 'Perform upgrade');
     $this->assertUpgrade($this->getEntityCounts());
 
     \Drupal::service('module_installer')->install(['forum']);
@@ -86,19 +86,19 @@ public function testMigrateUpgradeExecute() {
 
     $this->drupalGet('/upgrade');
     $session->pageTextContains("An upgrade has already been performed on this site. To perform a new migration, create a clean and empty new install of Drupal $this->destinationSiteVersion. Rollbacks are not yet supported through the user interface.");
-    $this->drupalPostForm(NULL, [], t('Import new configuration and content from old site'));
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, [], 'Import new configuration and content from old site');
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
     $session->pageTextContains('WARNING: Content may be overwritten on your new site.');
     $session->pageTextContains('There is conflicting content of these types:');
     $session->pageTextContains('files');
     $session->pageTextContains('There is translated content of these types:');
     $session->pageTextContainsOnce('content items');
 
-    $this->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
+    $this->drupalPostForm(NULL, [], 'I acknowledge I may lose data. Continue anyway.');
     $session->statusCodeEquals(200);
 
     // Run the incremental migration and check the results.
-    $this->drupalPostForm(NULL, [], t('Perform upgrade'));
+    $this->drupalPostForm(NULL, [], 'Perform upgrade');
     $this->assertUpgrade($this->getEntityCountsIncremental());
   }
 
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php
index 0e45d19c8f0d..a35883e24943 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php
@@ -116,7 +116,7 @@ public function testMigrateUpgradeReviewPage() {
     $store->set('step', 'overview');
     $this->drupalGet('/upgrade');
     $session->pageTextContains("An upgrade has already been performed on this site. To perform a new migration, create a clean and empty new install of Drupal $destination_site_version. Rollbacks are not yet supported through the user interface.");
-    $this->drupalPostForm(NULL, [], t('Import new configuration and content from old site'));
+    $this->drupalPostForm(NULL, [], 'Import new configuration and content from old site');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
   }
 
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php
index 000109240ddf..cbe0a62aa65e 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php
@@ -44,13 +44,13 @@ public function testMigrateUpgradeReviewPage() {
     $this->prepare();
     // Start the upgrade process.
     $this->drupalGet('/upgrade');
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
 
     // Get valid credentials.
     $edits = $this->translatePostValues($this->getCredentials());
 
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
-    $this->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
+    $this->drupalPostForm(NULL, [], 'I acknowledge I may lose data. Continue anyway.');
 
     // Ensure there are no errors about missing modules from the test module.
     $session = $this->assertSession();
@@ -75,9 +75,9 @@ public function testMigrateUpgradeReviewPage() {
 
     // Start the upgrade process.
     $this->drupalGet('/upgrade');
-    $this->drupalPostForm(NULL, [], t('Continue'));
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
-    $this->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
+    $this->drupalPostForm(NULL, [], 'Continue');
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
+    $this->drupalPostForm(NULL, [], 'I acknowledge I may lose data. Continue anyway.');
 
     // Test the upgrade paths. First remove the module from the available paths
     // list.
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/NoMultilingualReviewPageTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/NoMultilingualReviewPageTestBase.php
index 9f26c1d58b03..1eb35233455f 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/NoMultilingualReviewPageTestBase.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/NoMultilingualReviewPageTestBase.php
@@ -16,12 +16,12 @@ public function testMigrateUpgradeReviewPage() {
     $this->prepare();
     // Start the upgrade process.
     $this->drupalGet('/upgrade');
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
 
     // Get valid credentials.
     $edits = $this->translatePostValues($this->getCredentials());
 
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
 
     $session = $this->assertSession();
     $session->pageTextContains('WARNING: Content may be overwritten on your new site.');
@@ -30,7 +30,7 @@ public function testMigrateUpgradeReviewPage() {
     $session->pageTextContains('There is translated content of these types:');
     $session->pageTextContainsOnce('content items');
 
-    $this->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
+    $this->drupalPostForm(NULL, [], 'I acknowledge I may lose data. Continue anyway.');
     $session->statusCodeEquals(200);
 
     // Ensure there are no errors about missing modules from the test module.
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/SourceProviderTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/SourceProviderTest.php
index ac6b491eb82c..8fd833d87113 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/SourceProviderTest.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/SourceProviderTest.php
@@ -56,10 +56,10 @@ public function testSourceProvider($path_to_database) {
     $this->drupalGet('/upgrade');
     [$new_site_version] = explode('.', \Drupal::VERSION, 2);
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $new_site_version.");
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
 
     // Ensure we get errors about missing modules.
     $session->pageTextContains(t('Resolve all issues below to continue the upgrade.'));
@@ -72,10 +72,10 @@ public function testSourceProvider($path_to_database) {
     // Restart the upgrade process and test there is no source_module error.
     $this->drupalGet('/upgrade');
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $new_site_version.");
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
 
     // Ensure there are no errors about missing modules from the test module.
     $session->pageTextNotContains(t('Source module not found for migration_provider_no_annotation.'));
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
index b38ad9c71ec1..dc092ec90407 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
@@ -75,7 +75,7 @@ public function testMigrateUpgradeExecute() {
     $session = $this->assertSession();
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
@@ -86,11 +86,11 @@ public function testMigrateUpgradeExecute() {
     $this->drupalGet('/upgrade');
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
     $entity_types = [
       'block_content',
       'menu_link_content',
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
index 77298ef8e7ee..f750703cb394 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
@@ -85,7 +85,7 @@ public function testMigrateUpgradeExecute() {
     $session = $this->assertSession();
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
@@ -96,12 +96,12 @@ public function testMigrateUpgradeExecute() {
     $this->drupalGet('/upgrade');
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
     // When the Credential form is submitted the migrate map tables are created.
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
 
     // Confirm there are only classic node migration map tables. This shows
     // that only the classic migration will run.
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
index 43a3003e9384..9fc5b3e347e5 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
@@ -77,7 +77,7 @@ public function testMigrateUpgradeExecute() {
     $session = $this->assertSession();
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
@@ -88,11 +88,11 @@ public function testMigrateUpgradeExecute() {
     $this->drupalGet('/upgrade');
     $session->responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal $this->destinationSiteVersion.");
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $session->pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.');
     $session->fieldExists('mysql[host]');
 
-    $this->drupalPostForm(NULL, $edits, t('Review upgrade'));
+    $this->drupalPostForm(NULL, $edits, 'Review upgrade');
     $entity_types = [
       'block_content',
       'menu_link_content',
diff --git a/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php b/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php
index 6b398206325f..f6484eaee38c 100644
--- a/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php
+++ b/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php
@@ -64,7 +64,7 @@ public function testMultiStepNodeFormBasicOptions() {
       'sticky[value]' => 1,
       "{$this->fieldName}[0][value]" => $this->randomString(32),
     ];
-    $this->drupalPostForm('node/add/page', $edit, t('Add another item'));
+    $this->drupalPostForm('node/add/page', $edit, 'Add another item');
     $this->assertSession()->checkboxNotChecked('edit-promote-value');
     $this->assertSession()->checkboxChecked('edit-sticky-value');
   }
diff --git a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
index ca9c1c814b8f..84086f4a6d4c 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
@@ -120,7 +120,7 @@ public function testNodeAccessBasic() {
           $edit['field_tags[target_id]'] = 'public';
         }
 
-        $this->drupalPostForm('node/add/article', $edit, t('Save'));
+        $this->drupalPostForm('node/add/article', $edit, 'Save');
         $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
         $this->assertEqual($is_private, (int) $node->private->value, 'The private status of the node was properly set in the node_access_test table.');
         if ($is_private) {
diff --git a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
index 069d812891fe..649238f25eda 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
@@ -109,7 +109,7 @@ public function testNodeAccessAdministerField() {
     $this->drupalPostForm(
       "admin/structure/types/manage/page/fields/node.page.{$this->fieldName}",
       $edit,
-      t('Save settings')
+      'Save settings'
     );
 
     // Log in as the administrator.
diff --git a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
index f394d82de1c6..6476e8c05af8 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
@@ -58,7 +58,7 @@ public function testNodeAccessMenuLink() {
       'menu[enabled]' => 1,
       'menu[title]' => $menu_link_title,
     ];
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
     $this->assertSession()->linkExists($menu_link_title);
 
     // Ensure anonymous users without "access content" permission do not see
diff --git a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
index d906c57851d7..333834f2ab52 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
@@ -80,7 +80,7 @@ public function testNodeAccessRebuildNodeGrants() {
     // Rebuild permissions.
     $this->drupalGet('admin/reports/status');
     $this->clickLink(t('Rebuild permissions'));
-    $this->drupalPostForm(NULL, [], t('Rebuild permissions'));
+    $this->drupalPostForm(NULL, [], 'Rebuild permissions');
     $this->assertText('The content access permissions have been rebuilt.');
 
     // Test if the rebuild by user that cannot bypass node access and does not
@@ -116,7 +116,7 @@ public function testNodeAccessRebuildNoAccessModules() {
     // Rebuild permissions.
     $this->drupalGet('admin/reports/status');
     $this->clickLink(t('Rebuild permissions'));
-    $this->drupalPostForm(NULL, [], t('Rebuild permissions'));
+    $this->drupalPostForm(NULL, [], 'Rebuild permissions');
     $this->assertText('Content permissions have been rebuilt.');
     $this->assertNull(\Drupal::state()->get('node.node_access_needs_rebuild'), 'Node access permissions have been rebuilt');
 
diff --git a/core/modules/node/tests/src/Functional/NodeActionsConfigurationTest.php b/core/modules/node/tests/src/Functional/NodeActionsConfigurationTest.php
index 8184fefd2ca0..2a20d395ebc5 100644
--- a/core/modules/node/tests/src/Functional/NodeActionsConfigurationTest.php
+++ b/core/modules/node/tests/src/Functional/NodeActionsConfigurationTest.php
@@ -37,7 +37,7 @@ public function testAssignOwnerNodeActionConfiguration() {
     // Make a POST request to admin/config/system/actions.
     $edit = [];
     $edit['action'] = 'node_assign_owner_action';
-    $this->drupalPostForm('admin/config/system/actions', $edit, t('Create'));
+    $this->drupalPostForm('admin/config/system/actions', $edit, 'Create');
     $this->assertSession()->statusCodeEquals(200);
 
     // Make a POST request to the individual action configuration page.
@@ -46,7 +46,7 @@ public function testAssignOwnerNodeActionConfiguration() {
     $edit['label'] = $action_label;
     $edit['id'] = strtolower($action_label);
     $edit['owner_uid'] = $user->id();
-    $this->drupalPostForm('admin/config/system/actions/add/node_assign_owner_action', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/system/actions/add/node_assign_owner_action', $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     $action_id = $edit['id'];
@@ -61,7 +61,7 @@ public function testAssignOwnerNodeActionConfiguration() {
     $new_action_label = $this->randomMachineName();
     $edit['label'] = $new_action_label;
     $edit['owner_uid'] = $user->id();
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Make sure that the action updated properly.
@@ -74,7 +74,7 @@ public function testAssignOwnerNodeActionConfiguration() {
     $this->clickLink(t('Delete'));
     $this->assertSession()->statusCodeEquals(200);
     $edit = [];
-    $this->drupalPostForm(NULL, $edit, t('Delete'));
+    $this->drupalPostForm(NULL, $edit, 'Delete');
     $this->assertSession()->statusCodeEquals(200);
 
     // Make sure that the action was actually deleted.
diff --git a/core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php b/core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php
index 8e9a8730d696..e792ee2b4e11 100644
--- a/core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php
+++ b/core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php
@@ -147,7 +147,7 @@ public function testRecentNodeBlock() {
       'visibility[node_type][bundles][article]' => 'article',
     ];
     $theme = \Drupal::service('theme_handler')->getDefault();
-    $this->drupalPostForm("admin/structure/block/add/system_powered_by_block/$theme", $edit, t('Save block'));
+    $this->drupalPostForm("admin/structure/block/add/system_powered_by_block/$theme", $edit, 'Save block');
 
     $block = Block::load($edit['id']);
     $visibility = $block->getVisibility();
@@ -204,7 +204,7 @@ public function testRecentNodeBlock() {
     $this->assertSession()->pageTextContains('Displaying node #' . $node1->id() . ', revision #' . $node1->getRevisionId() . ': Node revision 2 title');
 
     // Assert that the preview page displays the block as well.
-    $this->drupalPostForm('node/' . $node1->id() . '/edit', [], t('Preview'));
+    $this->drupalPostForm('node/' . $node1->id() . '/edit', [], 'Preview');
     $this->assertSession()->pageTextContains($label);
     // The previewed node object has no revision ID.
     $this->assertSession()->pageTextContains('Displaying node #' . $node1->id() . ', revision #: Node revision 2 title');
diff --git a/core/modules/node/tests/src/Functional/NodeCreationTest.php b/core/modules/node/tests/src/Functional/NodeCreationTest.php
index f26e04f104fc..4aac7dfe8af9 100644
--- a/core/modules/node/tests/src/Functional/NodeCreationTest.php
+++ b/core/modules/node/tests/src/Functional/NodeCreationTest.php
@@ -57,7 +57,7 @@ public function testNodeCreation() {
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the Basic page has been created.
     $this->assertText('Basic page ' . $edit['title[0][value]'] . ' has been created.', 'Basic page created.');
@@ -143,7 +143,7 @@ public function testUnpublishedNodeCreation() {
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the user was redirected to the home page.
     $this->assertSession()->addressEquals('');
diff --git a/core/modules/node/tests/src/Functional/NodeEditFormTest.php b/core/modules/node/tests/src/Functional/NodeEditFormTest.php
index 1df1353e7271..8825393ed9e8 100644
--- a/core/modules/node/tests/src/Functional/NodeEditFormTest.php
+++ b/core/modules/node/tests/src/Functional/NodeEditFormTest.php
@@ -73,7 +73,7 @@ public function testNodeEdit() {
     $edit = [];
     $edit[$title_key] = $this->randomMachineName(8);
     $edit[$body_key] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the node exists in the database.
     $node = $this->drupalGetNodeByTitle($edit[$title_key]);
@@ -94,7 +94,7 @@ public function testNodeEdit() {
     $edit[$title_key] = $this->randomMachineName(8);
     $edit[$body_key] = $this->randomMachineName(16);
     // Stay on the current page, without reloading.
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Check that the title and body fields are displayed with the updated values.
     $this->assertText($edit[$title_key], 'Title displayed.');
@@ -112,7 +112,7 @@ public function testNodeEdit() {
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit[$body_key] = $this->randomMachineName(16);
     $edit['revision'] = TRUE;
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Ensure that the node revision has been created.
     $revised_node = $this->drupalGetNodeByTitle($edit['title[0][value]'], TRUE);
@@ -138,7 +138,7 @@ public function testNodeEdit() {
     $edit['created[0][value][date]'] = $this->randomMachineName(8);
     // Get the current amount of open details elements.
     $open_details_elements = count($this->cssSelect('details[open="open"]'));
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     // The node author details must be open.
     $this->assertRaw('<details class="node-form-author js-form-wrapper form-wrapper" data-drupal-selector="edit-author" id="edit-author" open="open">');
     // Only one extra details element should now be open.
@@ -149,7 +149,7 @@ public function testNodeEdit() {
     // the 'Published' boolean_checkbox and clicking 'Save'.
     $this->drupalGet("node/" . $node->id() . "/edit");
     $edit = ['status[value]' => FALSE];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->nodeStorage->resetCache([$node->id()]);
     $node = $this->nodeStorage->load($node->id());
     $this->assertFalse($node->isPublished(), 'Node is unpublished');
@@ -166,7 +166,7 @@ public function testNodeEditAuthoredBy() {
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit[$body_key] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the node was authored by the currently logged in user.
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
@@ -195,7 +195,7 @@ public function testNodeEditAuthoredBy() {
     $this->drupalLogin($this->adminUser);
 
     // Save the node without making any changes.
-    $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', [], 'Save');
     $this->nodeStorage->resetCache([$node->id()]);
     $node = $this->nodeStorage->load($node->id());
     $this->assertIdentical($this->webUser->id(), $node->getOwner()->id());
@@ -207,7 +207,7 @@ public function testNodeEditAuthoredBy() {
 
     // Check that saving the node without making any changes keeps the proper
     // author ID.
-    $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', [], 'Save');
     $this->nodeStorage->resetCache([$node->id()]);
     $node = $this->nodeStorage->load($node->id());
     $this->assertIdentical($this->webUser->id(), $node->getOwner()->id());
@@ -226,7 +226,7 @@ public function testNodeMetaInformation() {
     // Create node to edit.
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $this->drupalGet("node/" . $node->id() . "/edit");
@@ -242,7 +242,7 @@ public function testNodeMetaInformation() {
     // Create node to edit.
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $this->drupalGet("node/" . $node->id() . "/edit");
@@ -263,13 +263,13 @@ protected function checkVariousAuthoredByValues(NodeInterface $node, $form_eleme
     $edit = [
       $form_element_name => 'invalid-name',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->assertRaw(t('There are no entities matching "%name".', ['%name' => 'invalid-name']));
 
     // Change the authored by field to an empty string, which should assign
     // authorship to the anonymous user (uid 0).
     $edit[$form_element_name] = '';
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     $this->nodeStorage->resetCache([$node->id()]);
     $node = $this->nodeStorage->load($node->id());
     $uid = $node->getOwnerId();
@@ -288,7 +288,7 @@ protected function checkVariousAuthoredByValues(NodeInterface $node, $form_eleme
     // Change the authored by field to another user's name (that is not
     // logged in).
     $edit[$form_element_name] = $this->webUser->getAccountName();
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->nodeStorage->resetCache([$node->id()]);
     $node = $this->nodeStorage->load($node->id());
     $this->assertIdentical($node->getOwnerId(), $this->webUser->id(), 'Node authored by normal user.');
diff --git a/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php b/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
index 8cf1c4c64905..2fafba617955 100644
--- a/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
+++ b/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
@@ -39,7 +39,7 @@ public function testNodeViewModeChange() {
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = t('Data that should appear only in the body for the node.');
     $edit['body[0][summary]'] = t('Extra data that should appear only in the teaser for the node.');
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
diff --git a/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php b/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php
index 5343b7f4dac0..bf166f065a8e 100644
--- a/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php
+++ b/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php
@@ -48,13 +48,13 @@ protected function setUp(): void {
 
     // Enable URL language detection and selection.
     $edit = ['language_interface[enabled][language-url]' => '1'];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Set "Basic page" content type to use multilingual support.
     $edit = [
       'language_configuration[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
     $this->assertRaw(t('The content type %type has been updated.', ['%type' => 'Basic page']));
 
     // Make node body translatable.
@@ -78,7 +78,7 @@ public function testMultilingualNodeForm() {
     $edit = [];
     $edit[$title_key] = $title_value;
     $edit[$body_key] = $body_value;
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the node exists in the database.
     $node = $this->drupalGetNodeByTitle($edit[$title_key]);
@@ -93,7 +93,7 @@ public function testMultilingualNodeForm() {
       $title_key => $this->randomMachineName(8),
       'langcode[0][value]' => $langcode,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($edit[$title_key], TRUE);
     $this->assertNotEmpty($node, 'Node found in database.');
     $this->assertSame($langcode, $node->language()->getId());
@@ -128,7 +128,7 @@ public function testMultilingualDisplaySettings() {
     $edit = [];
     $edit[$title_key] = $title_value;
     $edit[$body_key] = $body_value;
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the node exists in the database.
     $node = $this->drupalGetNodeByTitle($edit[$title_key]);
diff --git a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php
index 018d6f19324b..e8268b204c61 100644
--- a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php
+++ b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php
@@ -74,7 +74,7 @@ public function testChangedTimeAfterSaveWithoutChanges() {
     sleep(1);
 
     // Save the node on the regular node edit form.
-    $this->drupalPostForm('node/1/edit', [], t('Save'));
+    $this->drupalPostForm('node/1/edit', [], 'Save');
 
     $storage->resetCache([1]);
     $node = $storage->load(1);
diff --git a/core/modules/node/tests/src/Functional/NodePostSettingsTest.php b/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
index 851220e31c16..4c8521edcd53 100644
--- a/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
+++ b/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
@@ -34,13 +34,13 @@ public function testPagePostInfo() {
     // Set "Basic page" content type to display post information.
     $edit = [];
     $edit['display_submitted'] = TRUE;
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
 
     // Create a node.
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the post information is displayed.
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
@@ -51,13 +51,13 @@ public function testPagePostInfo() {
     // Set "Basic page" content type to display post information.
     $edit = [];
     $edit['display_submitted'] = FALSE;
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
 
     // Create a node.
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     // Check that the post information is displayed.
     $elements = $this->xpath('//div[contains(@class, :class)]', [':class' => 'node__submitted']);
diff --git a/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php b/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php
index 303825e16dba..fb556d68cd50 100644
--- a/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php
+++ b/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php
@@ -56,7 +56,7 @@ public function testAnonymousPagePreview() {
       $title_key => $this->randomMachineName(),
       $body_key => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('node/add/page', $edit, t('Preview'));
+    $this->drupalPostForm('node/add/page', $edit, 'Preview');
 
     // Check that the preview is displaying the title, body and term.
     $this->assertSession()->linkExists('Back to content editing');
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
index 099973cb8883..87aafbc064f2 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
@@ -148,7 +148,7 @@ public function testRevisions() {
     $this->assertTrue($node->isDefaultRevision(), 'Third node revision is the current one.');
 
     // Confirm that revisions revert properly.
-    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionId() . "/revert", [], t('Revert'));
+    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionId() . "/revert", [], 'Revert');
     $this->assertRaw(t('@type %title has been reverted to the revision from %revision-date.',
       [
         '@type' => 'Basic page',
@@ -169,12 +169,12 @@ public function testRevisions() {
     $this->assertFalse($node->isDefaultRevision(), 'Third node revision is not the current one.');
 
     // Confirm that the node can still be updated.
-    $this->drupalPostForm("node/" . $reverted_node->id() . "/edit", ['body[0][value]' => 'We are Drupal.'], t('Save'));
+    $this->drupalPostForm("node/" . $reverted_node->id() . "/edit", ['body[0][value]' => 'We are Drupal.'], 'Save');
     $this->assertText('Basic page ' . $reverted_node->getTitle() . ' has been updated.', 'Node was successfully saved after reverting a revision.');
     $this->assertText('We are Drupal.', 'Node was correctly updated after reverting a revision.');
 
     // Confirm revisions delete properly.
-    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionId() . "/delete", [], t('Delete'));
+    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionId() . "/delete", [], 'Delete');
     $this->assertRaw(t('Revision from %revision-date of @type %title has been deleted.',
       [
         '%revision-date' => $this->container->get('date.formatter')->format($nodes[1]->getRevisionCreationTime()),
@@ -198,7 +198,7 @@ public function testRevisions() {
         'revision_timestamp' => $old_revision_date,
       ])
       ->execute();
-    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[2]->getRevisionId() . "/revert", [], t('Revert'));
+    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[2]->getRevisionId() . "/revert", [], 'Revert');
     $this->assertRaw(t('@type %title has been reverted to the revision from %revision-date.', [
       '@type' => 'Basic page',
       '%title' => $nodes[2]->getTitle(),
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsTest.php
index 68623dfb0dac..142f9caf3978 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsTest.php
@@ -171,7 +171,7 @@ public function testRevisions() {
     $this->assertTrue($node->isDefaultRevision(), 'Third node revision is the default one.');
 
     // Confirm that revisions revert properly.
-    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionid() . "/revert", [], t('Revert'));
+    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionid() . "/revert", [], 'Revert');
     $this->assertRaw(t('@type %title has been reverted to the revision from %revision-date.', [
       '@type' => 'Basic page',
       '%title' => $nodes[1]->label(),
@@ -190,7 +190,7 @@ public function testRevisions() {
     $this->assertFalse($node->isDefaultRevision(), 'Third node revision is not the default one.');
 
     // Confirm revisions delete properly.
-    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionId() . "/delete", [], t('Delete'));
+    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[1]->getRevisionId() . "/delete", [], 'Delete');
     $this->assertRaw(t('Revision from %revision-date of @type %title has been deleted.', [
       '%revision-date' => $this->container->get('date.formatter')->format($nodes[1]->getRevisionCreationTime()),
       '@type' => 'Basic page',
@@ -214,7 +214,7 @@ public function testRevisions() {
         'revision_timestamp' => $old_revision_date,
       ])
       ->execute();
-    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[2]->getRevisionId() . "/revert", [], t('Revert'));
+    $this->drupalPostForm("node/" . $node->id() . "/revisions/" . $nodes[2]->getRevisionId() . "/revert", [], 'Revert');
     $this->assertRaw(t('@type %title has been reverted to the revision from %revision-date.', [
       '@type' => 'Basic page',
       '%title' => $nodes[2]->label(),
@@ -420,7 +420,7 @@ public function testRevisionTranslationRevert() {
       'node_revision' => $revert_id,
       'langcode' => 'it',
     ]);
-    $this->drupalPostForm($revert_translation_url, [], t('Revert'));
+    $this->drupalPostForm($revert_translation_url, [], 'Revert');
     /** @var \Drupal\node\NodeStorage $node_storage */
     $node_storage = $this->container->get('entity_type.manager')->getStorage('node');
     $node_storage->resetCache();
@@ -437,7 +437,7 @@ public function testRevisionTranslationRevert() {
     // translation revision again, and check that the desired value was reverted
     // but the default translation value was preserved. But in addition the
     // untranslated field will be reverted as well.
-    $this->drupalPostForm($revert_translation_url, ['revert_untranslated_fields' => TRUE], t('Revert'));
+    $this->drupalPostForm($revert_translation_url, ['revert_untranslated_fields' => TRUE], 'Revert');
     $node_storage->resetCache();
     /** @var \Drupal\node\NodeInterface $node */
     $node = $node_storage->load($node->id());
@@ -454,7 +454,7 @@ public function testRevisionTranslationRevert() {
       'node' => $node->id(),
       'node_revision' => $initial_revision_id,
     ]);
-    $this->drupalPostForm($revert_url, [], t('Revert'));
+    $this->drupalPostForm($revert_url, [], 'Revert');
     $node_storage->resetCache();
     /** @var \Drupal\node\NodeInterface $node */
     $node = $node_storage->load($node->id());
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
index ce1403e0830f..53b1dba2db61 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
@@ -61,7 +61,7 @@ public function testNodeFormSaveWithoutRevision() {
 
     // Uncheck the create new revision checkbox and save the node.
     $edit = ['revision' => FALSE];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Load the node again and check the revision is the same as before.
     $node_storage->resetCache([$node->id()]);
@@ -74,7 +74,7 @@ public function testNodeFormSaveWithoutRevision() {
 
     // Submit the form without changing the checkbox.
     $edit = [];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Load the node again and check the revision is different from before.
     $node_storage->resetCache([$node->id()]);
diff --git a/core/modules/node/tests/src/Functional/NodeTitleXSSTest.php b/core/modules/node/tests/src/Functional/NodeTitleXSSTest.php
index 7a61a01f9fc0..ceef32aeac66 100644
--- a/core/modules/node/tests/src/Functional/NodeTitleXSSTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTitleXSSTest.php
@@ -33,7 +33,7 @@ public function testNodeTitleXSS() {
     $edit = [];
     $edit['title[0][value]'] = $title;
 
-    $this->drupalPostForm('node/add/page', $edit, t('Preview'));
+    $this->drupalPostForm('node/add/page', $edit, 'Preview');
     // Verify that harmful tags are escaped when previewing a node.
     $this->assertNoRaw($xss);
 
diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
index d8cb9e3e3e75..94965c9d8fb9 100644
--- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
+++ b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
@@ -73,7 +73,7 @@ protected function setUp(): void {
     // Display the language selector.
     $this->drupalLogin($this->administrator);
     $edit = ['language_configuration[language_alterable]' => TRUE];
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
     $this->drupalLogin($this->translator);
   }
 
@@ -93,9 +93,9 @@ public function testPublishedStatusNoFields() {
     $this->drupalLogin($this->administrator);
     // Delete all fields.
     $this->drupalGet('admin/structure/types/manage/article/fields');
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.' . $this->fieldName . '/delete', [], t('Delete'));
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_tags/delete', [], t('Delete'));
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_image/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.' . $this->fieldName . '/delete', [], 'Delete');
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_tags/delete', [], 'Delete');
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_image/delete', [], 'Delete');
 
     // Add a node.
     $default_langcode = $this->langcodes[0];
@@ -119,7 +119,7 @@ public function testPublishedStatusNoFields() {
     ], ['language' => $language]);
     $edit = $this->getEditValues($values, $langcode);
     $edit['status[value]'] = FALSE;
-    $this->drupalPostForm($add_url, $edit, t('Save (this translation)'));
+    $this->drupalPostForm($add_url, $edit, 'Save (this translation)');
 
     $storage->resetCache([$this->entityId]);
     $entity = $storage->load($this->entityId);
@@ -177,7 +177,7 @@ protected function doTestPublishedStatus() {
       foreach ($this->langcodes as $langcode) {
         $options = ['language' => $languages[$langcode]];
         $url = $entity->toUrl('edit-form', $options);
-        $this->drupalPostForm($url, ['status[value]' => $value], t('Save') . $this->getFormSubmitSuffix($entity, $langcode), $options);
+        $this->drupalPostForm($url, ['status[value]' => $value], 'Save' . $this->getFormSubmitSuffix($entity, $langcode), $options);
       }
       $storage->resetCache([$this->entityId]);
       $entity = $storage->load($this->entityId);
@@ -249,14 +249,14 @@ public function testTranslationLinkTheme() {
     $edit = [];
     $edit['admin_theme'] = 'seven';
     $edit['use_admin_theme'] = TRUE;
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
     $this->drupalGet('node/' . $article->id() . '/translations');
     // Verify that translation uses the admin theme if edit is admin.
     $this->assertRaw('core/themes/seven/css/base/elements.css');
 
     // Turn off admin theme for editing, assert inheritance to translations.
     $edit['use_admin_theme'] = FALSE;
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
     $this->drupalGet('node/' . $article->id() . '/translations');
     // Verify that translation uses the frontend theme if edit is frontend.
     $this->assertNoRaw('core/themes/seven/css/base/elements.css');
@@ -552,11 +552,11 @@ public function testDetailsTitleIsNotEscaped() {
     // Make the image field a multi-value field in order to display a
     // details form element.
     $edit = ['cardinality_number' => 2];
-    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_image/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_image/storage', $edit, 'Save field settings');
 
     // Make the image field non-translatable.
     $edit = ['settings[node][article][fields][field_image]' => FALSE];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     // Create a node.
     $nid = $this->createEntity(['title' => 'Node with multi-value image field en title'], 'en');
diff --git a/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php b/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php
index 79d50cf36fa5..958fb568ecb5 100644
--- a/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php
@@ -60,18 +60,18 @@ public function testNodeTypeInitialLanguageDefaults() {
     $edit = [
       'predefined_langcode' => 'hu',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $edit = [
       'site_default_language' => 'hu',
     ];
-    $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/language', $edit, 'Save configuration');
 
     // Tests the initial language after changing the site default language.
     // First unhide the language selector.
     $edit = [
       'language_configuration[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
     $this->drupalGet('node/add/article');
     // Ensure that the language is selectable on node add page when language
     // not hidden.
@@ -94,7 +94,7 @@ public function testNodeTypeInitialLanguageDefaults() {
     $edit = [
       'language_configuration[langcode]' => 'en',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/article', $edit, 'Save content type');
     $this->drupalGet('node/add/article');
     $this->assertTrue($this->assertSession()->optionExists('edit-langcode-0-value', 'en')->isSelected());
   }
@@ -108,7 +108,7 @@ public function testLanguageFieldVisibility() {
       'title[0][value]' => $this->randomMachineName(8),
       'body[0][value]' => $this->randomMachineName(16),
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $this->assertNotEmpty($node, 'Node found in database.');
 
@@ -124,7 +124,7 @@ public function testLanguageFieldVisibility() {
       'fields[langcode][type]' => 'language',
       'fields[langcode][region]' => 'content',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/article/display', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/types/manage/article/display', $edit, 'Save');
     $this->drupalGet('admin/structure/types/manage/article/display');
     $this->assertTrue($this->assertSession()->optionExists('edit-fields-langcode-type', 'language')->isSelected());
 
diff --git a/core/modules/node/tests/src/Functional/NodeTypeTest.php b/core/modules/node/tests/src/Functional/NodeTypeTest.php
index 7cdd2a4dc3e7..761083684cea 100644
--- a/core/modules/node/tests/src/Functional/NodeTypeTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTypeTest.php
@@ -86,7 +86,7 @@ public function testNodeTypeCreation() {
       'title_label' => 'title for foo',
       'type' => 'foo',
     ];
-    $this->drupalPostForm('admin/structure/types/add', $edit, t('Save and manage fields'));
+    $this->drupalPostForm('admin/structure/types/add', $edit, 'Save and manage fields');
     $type_exists = (bool) NodeType::load('foo');
     $this->assertTrue($type_exists, 'The new content type has been created in the database.');
 
@@ -120,7 +120,7 @@ public function testNodeTypeEditing() {
     $edit = [
       'title_label' => 'Foo',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
 
     $this->drupalGet('node/add/page');
     $assert->pageTextContains('Foo');
@@ -131,7 +131,7 @@ public function testNodeTypeEditing() {
       'name' => 'Bar',
       'description' => 'Lorem ipsum.',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
 
     $this->drupalGet('node/add');
     $assert->pageTextContains('Bar');
@@ -152,9 +152,9 @@ public function testNodeTypeEditing() {
     $this->assertEqual($node_bundles['page']['label'], 'NewBar', 'Node type bundle cache is updated');
 
     // Remove the body field.
-    $this->drupalPostForm('admin/structure/types/manage/page/fields/node.page.body/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/types/manage/page/fields/node.page.body/delete', [], 'Delete');
     // Resave the settings for this type.
-    $this->drupalPostForm('admin/structure/types/manage/page', [], t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', [], 'Save content type');
     $front_page_path = Url::fromRoute('<front>')->toString();
     $this->assertBreadcrumb('admin/structure/types/manage/page/fields', [
       $front_page_path => 'Home',
@@ -219,7 +219,7 @@ public function testNodeTypeDeletion() {
     $this->drupalGet('admin/structure/types/manage/default');
     $this->clickLink(t('Delete'));
     $this->assertSession()->statusCodeEquals(200);
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertFalse((bool) NodeType::load('default'), 'Node type with machine default deleted.');
   }
 
@@ -263,9 +263,9 @@ public function testNodeTypeNoContentType() {
     $this->drupalLogin($web_user);
 
     // Delete 'article' bundle.
-    $this->drupalPostForm('admin/structure/types/manage/article/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/types/manage/article/delete', [], 'Delete');
     // Delete 'page' bundle.
-    $this->drupalPostForm('admin/structure/types/manage/page/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/types/manage/page/delete', [], 'Delete');
 
     // Navigate to content type administration screen
     $this->drupalGet('admin/structure/types');
diff --git a/core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php b/core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php
index f9db9c2f2941..d7474c15b04a 100644
--- a/core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php
@@ -112,17 +112,17 @@ public function testNodeTypeTranslation() {
     ];
 
     // Edit the title label to avoid having an exception when we save the translation.
-    $this->drupalPostForm("admin/structure/types/manage/$type/translate/$langcode/add", $edit, t('Save translation'));
+    $this->drupalPostForm("admin/structure/types/manage/$type/translate/$langcode/add", $edit, 'Save translation');
 
     // Check the name is translated without admin theme for editing.
-    $this->drupalPostForm('admin/appearance', ['use_admin_theme' => '0'], t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', ['use_admin_theme' => '0'], 'Save configuration');
     $this->drupalGet("$langcode/node/add/$type");
     // This is a Spanish page, so ensure the text asserted is translated in
     // Spanish and not French by adding the langcode option.
     $this->assertRaw(t('Create @name', ['@name' => $translated_name], ['langcode' => $langcode]));
 
     // Check the name is translated with admin theme for editing.
-    $this->drupalPostForm('admin/appearance', ['use_admin_theme' => '1'], t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', ['use_admin_theme' => '1'], 'Save configuration');
     $this->drupalGet("$langcode/node/add/$type");
     // This is a Spanish page, so ensure the text asserted is translated in
     // Spanish and not French by adding the langcode option.
@@ -140,14 +140,14 @@ public function testNodeTypeTitleLabelTranslation() {
     $langcode = $this->additionalLangcodes[0];
 
     // Edit the title label for it to be displayed on the translation form.
-    $this->drupalPostForm("admin/structure/types/manage/$type", ['title_label' => 'Edited title'], t('Save content type'));
+    $this->drupalPostForm("admin/structure/types/manage/$type", ['title_label' => 'Edited title'], 'Save content type');
 
     // Assert that the title label is displayed on the translation form with the right value.
     $this->drupalGet("admin/structure/types/manage/$type/translate/$langcode/add");
     $this->assertText('Edited title');
 
     // Translate the title label.
-    $this->drupalPostForm(NULL, ["translation[config_names][core.base_field_override.node.$type.title][label]" => 'Translated title'], t('Save translation'));
+    $this->drupalPostForm(NULL, ["translation[config_names][core.base_field_override.node.$type.title][label]" => 'Translated title'], 'Save translation');
 
     // Assert that the right title label is displayed on the node add form. The
     // translations are created in this test; therefore, the assertions do not
diff --git a/core/modules/node/tests/src/Functional/PagePreviewTest.php b/core/modules/node/tests/src/Functional/PagePreviewTest.php
index eb6063d9357a..8ecdc70eda7d 100644
--- a/core/modules/node/tests/src/Functional/PagePreviewTest.php
+++ b/core/modules/node/tests/src/Functional/PagePreviewTest.php
@@ -196,10 +196,10 @@ public function testPagePreview() {
     // Upload an image.
     $test_image = current($this->drupalGetTestFiles('image', 39325));
     $edit['files[field_image_0][]'] = \Drupal::service('file_system')->realpath($test_image->uri);
-    $this->drupalPostForm('node/add/page', $edit, t('Upload'));
+    $this->drupalPostForm('node/add/page', $edit, 'Upload');
 
     // Add an alt tag and preview the node.
-    $this->drupalPostForm(NULL, ['field_image[0][alt]' => 'Picture of llamas'], t('Preview'));
+    $this->drupalPostForm(NULL, ['field_image[0][alt]' => 'Picture of llamas'], 'Preview');
 
     // Check that the preview is displaying the title, body and term.
     $expected_title = $edit[$title_key] . ' | Drupal';
@@ -226,7 +226,7 @@ public function testPagePreview() {
       ->save();
 
     $view_mode_edit = ['view_mode' => 'teaser'];
-    $this->drupalPostForm('node/preview/' . $uuid . '/full', $view_mode_edit, t('Switch'));
+    $this->drupalPostForm('node/preview/' . $uuid . '/full', $view_mode_edit, 'Switch');
     $this->assertRaw('view-mode-teaser');
     $this->assertNoText($edit[$body_key], 'Body not displayed.');
 
@@ -242,7 +242,7 @@ public function testPagePreview() {
     $this->assertSession()->fieldExists('field_test_multi[1][value]');
 
     // Return to page preview to check everything is as expected.
-    $this->drupalPostForm(NULL, [], t('Preview'));
+    $this->drupalPostForm(NULL, [], 'Preview');
     $this->assertSession()->titleEquals($expected_title);
     $this->assertSession()->assertEscaped($edit[$title_key]);
     $this->assertText($edit[$body_key], 'Body displayed.');
@@ -256,8 +256,8 @@ public function testPagePreview() {
     $this->assertSession()->fieldValueEquals($term_key, $edit[$term_key]);
 
     // Save the node - this is a new POST, so we need to upload the image.
-    $this->drupalPostForm('node/add/page', $edit, t('Upload'));
-    $this->drupalPostForm(NULL, ['field_image[0][alt]' => 'Picture of llamas'], t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Upload');
+    $this->drupalPostForm(NULL, ['field_image[0][alt]' => 'Picture of llamas'], 'Save');
     $node = $this->drupalGetNodeByTitle($edit[$title_key]);
 
     // Check the term was displayed on the saved node.
@@ -274,7 +274,7 @@ public function testPagePreview() {
     $newterm1 = $this->randomMachineName(8);
     $newterm2 = $this->randomMachineName(8);
     $edit[$term_key] = $this->term->getName() . ', ' . $newterm1 . ', ' . $newterm2;
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Preview');
     $this->assertRaw('>' . $newterm1 . '<');
     $this->assertRaw('>' . $newterm2 . '<');
     // The first term should be displayed as link, the others not.
@@ -282,14 +282,14 @@ public function testPagePreview() {
     $this->assertSession()->linkNotExists($newterm1);
     $this->assertSession()->linkNotExists($newterm2);
 
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Check with one more new term, keeping old terms, removing the existing
     // one.
     $edit = [];
     $newterm3 = $this->randomMachineName(8);
     $edit[$term_key] = $newterm1 . ', ' . $newterm3 . ', ' . $newterm2;
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Preview');
     $this->assertRaw('>' . $newterm1 . '<');
     $this->assertRaw('>' . $newterm2 . '<');
     $this->assertRaw('>' . $newterm3 . '<');
@@ -303,7 +303,7 @@ public function testPagePreview() {
     $edit = [
       $title_key => $this->randomMachineName(8),
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Preview');
     $this->assertText($edit[$title_key], 'New title displayed.');
     $this->clickLink(t('Back to content editing'));
     $this->assertSession()->fieldValueEquals($title_key, $edit[$title_key]);
@@ -319,7 +319,7 @@ public function testPagePreview() {
     $node_type->save();
     $this->drupalGet('node/add/page');
     $this->assertNoRaw('edit-submit');
-    $this->drupalPostForm('node/add/page', [$title_key => 'Preview'], t('Preview'));
+    $this->drupalPostForm('node/add/page', [$title_key => 'Preview'], 'Preview');
     $this->clickLink(t('Back to content editing'));
     $this->assertRaw('edit-submit');
 
@@ -327,22 +327,22 @@ public function testPagePreview() {
     // back to the edit form and clicking save, we should go back to the
     // original destination, if set.
     $destination = 'node';
-    $this->drupalPostForm($node->toUrl('edit-form'), [], t('Preview'), ['query' => ['destination' => $destination]]);
+    $this->drupalPostForm($node->toUrl('edit-form'), [], 'Preview', ['query' => ['destination' => $destination]]);
     $parameters = ['node_preview' => $node->uuid(), 'view_mode_id' => 'full'];
     $options = ['absolute' => TRUE, 'query' => ['destination' => $destination]];
     $this->assertSession()->addressEquals(Url::fromRoute('entity.node.preview', $parameters, $options));
-    $this->drupalPostForm(NULL, ['view_mode' => 'teaser'], t('Switch'));
+    $this->drupalPostForm(NULL, ['view_mode' => 'teaser'], 'Switch');
     $this->clickLink(t('Back to content editing'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->addressEquals($destination);
 
     // Check that preview page works as expected without a destination set.
-    $this->drupalPostForm($node->toUrl('edit-form'), [], t('Preview'));
+    $this->drupalPostForm($node->toUrl('edit-form'), [], 'Preview');
     $parameters = ['node_preview' => $node->uuid(), 'view_mode_id' => 'full'];
     $this->assertSession()->addressEquals(Url::fromRoute('entity.node.preview', $parameters));
-    $this->drupalPostForm(NULL, ['view_mode' => 'teaser'], t('Switch'));
+    $this->drupalPostForm(NULL, ['view_mode' => 'teaser'], 'Switch');
     $this->clickLink(t('Back to content editing'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->addressEquals($node->toUrl());
     $this->assertSession()->statusCodeEquals(200);
 
@@ -355,11 +355,11 @@ public function testPagePreview() {
     $edit_image_2['files[field_image_1][]'] = $file_system->realpath($test_image_2->uri);
     $edit['field_image[0][alt]'] = 'Alt 1';
 
-    $this->drupalPostForm('node/add/page', $edit_image_1, t('Upload'));
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
+    $this->drupalPostForm('node/add/page', $edit_image_1, 'Upload');
+    $this->drupalPostForm(NULL, $edit, 'Preview');
     $this->clickLink(t('Back to content editing'));
     $this->assertSession()->fieldExists('files[field_image_1][]');
-    $this->drupalPostForm(NULL, $edit_image_2, t('Upload'));
+    $this->drupalPostForm(NULL, $edit_image_2, 'Upload');
     $this->assertSession()->fieldNotExists('files[field_image_1][]');
 
     $title = 'node_test_title';
@@ -372,11 +372,11 @@ public function testPagePreview() {
       'field_test_multi[0][value]' => $example_text_1,
     ];
     $this->assertRaw('Storage is not set');
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
+    $this->drupalPostForm(NULL, $edit, 'Preview');
     $this->clickLink(t('Back to content editing'));
     $this->assertRaw('Storage is set');
     $this->assertSession()->fieldExists('field_test_multi[0][value]');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertText('Basic page ' . $title . ' has been created.');
     $node = $this->drupalGetNodeByTitle($title);
     $this->drupalGet('node/' . $node->id() . '/edit');
@@ -386,16 +386,16 @@ public function testPagePreview() {
       'field_test_multi[1][value]' => $example_text_2,
       'field_test_multi[2][value]' => $example_text_3,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
+    $this->drupalPostForm(NULL, $edit, 'Preview');
     $this->clickLink(t('Back to content editing'));
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
+    $this->drupalPostForm(NULL, $edit, 'Preview');
     $this->clickLink(t('Back to content editing'));
     $this->assertSession()->fieldValueEquals('field_test_multi[0][value]', $example_text_1);
     $this->assertSession()->fieldValueEquals('field_test_multi[1][value]', $example_text_2);
     $this->assertSession()->fieldValueEquals('field_test_multi[2][value]', $example_text_3);
 
     // Now save the node and make sure all values got saved.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertText($example_text_1);
     $this->assertText($example_text_2);
     $this->assertText($example_text_3);
@@ -406,7 +406,7 @@ public function testPagePreview() {
       'menu[enabled]' => TRUE,
       'menu[title]' => 'Changed title',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
+    $this->drupalPostForm(NULL, $edit, 'Preview');
     $this->clickLink(t('Back to content editing'));
     $this->assertSession()->checkboxChecked('edit-menu-enabled');
     $this->assertSession()->fieldValueEquals('menu[title]', 'Changed title');
@@ -417,7 +417,7 @@ public function testPagePreview() {
       'menu[enabled]' => TRUE,
       'menu[title]' => 'Second title change',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->drupalGet('node/' . $node->id() . '/edit');
     $this->assertSession()->fieldValueEquals('menu[title]', 'Second title change');
 
@@ -441,7 +441,7 @@ public function testPagePreviewWithRevisions() {
     $edit[$body_key] = $this->randomMachineName(16);
     $edit[$term_key] = $this->term->id();
     $edit['revision_log[0][value]'] = $this->randomString(32);
-    $this->drupalPostForm('node/add/page', $edit, t('Preview'));
+    $this->drupalPostForm('node/add/page', $edit, 'Preview');
 
     // Check that the preview is displaying the title, body and term.
     $this->assertSession()->titleEquals($edit[$title_key] . ' | Drupal');
@@ -461,7 +461,7 @@ public function testPagePreviewWithRevisions() {
 
     // Save the node after coming back from the preview page so we can create a
     // pending revision for it.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $node = $this->drupalGetNodeByTitle($edit[$title_key]);
 
     // Check that previewing a pending revision of a node works. This can not be
@@ -486,7 +486,7 @@ public function testSimultaneousPreview() {
     $node = $this->drupalCreateNode([]);
 
     $edit = [$title_key => 'New page title'];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Preview');
     $this->assertText($edit[$title_key]);
 
     $user2 = $this->drupalCreateUser(['edit any page content']);
@@ -495,7 +495,7 @@ public function testSimultaneousPreview() {
     $this->assertSession()->fieldValueEquals($title_key, $node->label());
 
     $edit2 = [$title_key => 'Another page title'];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit2, t('Preview'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit2, 'Preview');
     $this->assertSession()->addressEquals(Url::fromRoute('entity.node.preview', ['node_preview' => $node->uuid(), 'view_mode_id' => 'full']));
     $this->assertText($edit2[$title_key]);
   }
diff --git a/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php b/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
index 6b3c15badf34..f3e82342a81b 100644
--- a/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
+++ b/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
@@ -92,7 +92,7 @@ public function testNodeEditAccess() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_unpublish_action',
     ];
-    $this->drupalPostForm('test-node-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-node-bulk-form', $edit, 'Apply to selected items');
     $this->assertRaw(new FormattableMarkup('No access to execute %action on the @entity_type_label %entity_label.', [
       '%action' => 'Unpublish content',
       '@entity_type_label' => 'Content',
@@ -120,7 +120,7 @@ public function testNodeEditAccess() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_unpublish_action',
     ];
-    $this->drupalPostForm('test-node-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-node-bulk-form', $edit, 'Apply to selected items');
     // Test that the action message isn't shown.
     $this->assertNoRaw(new FormattableMarkup('%action was applied to 1 item.', [
       '%action' => 'Unpublish content',
@@ -136,7 +136,7 @@ public function testNodeEditAccess() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_delete_action',
     ];
-    $this->drupalPostForm('test-node-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-node-bulk-form', $edit, 'Apply to selected items');
     // Test that the action message isn't shown.
     $this->assertRaw(new FormattableMarkup('No access to execute %action on the @entity_type_label %entity_label.', [
       '%action' => 'Delete content',
@@ -190,8 +190,8 @@ public function testNodeDeleteAccess() {
       'node_bulk_form[1]' => TRUE,
       'action' => 'node_delete_action',
     ];
-    $this->drupalPostForm('test-node-bulk-form', $edit, t('Apply to selected items'));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm('test-node-bulk-form', $edit, 'Apply to selected items');
+    $this->drupalPostForm(NULL, [], 'Delete');
     // Ensure the private node still exists.
     $private_node = Node::load($private_node->id());
     $this->assertNotNull($private_node, 'The private node has not been deleted.');
diff --git a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php
index bf77529e53c5..f8b29c80aa18 100644
--- a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php
+++ b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php
@@ -110,7 +110,7 @@ public function testBulkForm() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_unpublish_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $node = $this->loadNode($node->id());
     $this->assertFalse($node->isPublished(), 'Node has been unpublished');
     $this->assertTrue($node->getTranslation('en-gb')->isPublished(), 'Node translation has not been unpublished');
@@ -121,7 +121,7 @@ public function testBulkForm() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_publish_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $node = $this->loadNode($node->id());
     $this->assertTrue($node->isPublished(), 'Node has been published again');
 
@@ -133,7 +133,7 @@ public function testBulkForm() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_make_sticky_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $node = $this->loadNode($node->id());
     $this->assertTrue($node->isSticky(), 'Node has been made sticky');
     $this->assertFalse($node->getTranslation('en-gb')->isSticky(), 'Node translation has not been made sticky');
@@ -144,7 +144,7 @@ public function testBulkForm() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_make_unsticky_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $node = $this->loadNode($node->id());
     $this->assertFalse($node->isSticky(), 'Node is not sticky anymore');
 
@@ -156,7 +156,7 @@ public function testBulkForm() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_promote_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $node = $this->loadNode($node->id());
     $this->assertTrue($node->isPromoted(), 'Node has been promoted to the front page');
     $this->assertFalse($node->getTranslation('en-gb')->isPromoted(), 'Node translation has not been promoted to the front page');
@@ -167,7 +167,7 @@ public function testBulkForm() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_unpromote_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $node = $this->loadNode($node->id());
     $this->assertFalse($node->isPromoted(), 'Node has been demoted');
 
@@ -200,7 +200,7 @@ public function testBulkForm() {
       'node_bulk_form[9]' => FALSE,
       'action' => 'node_unpublish_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $node = $this->loadNode(1);
     $this->assertFalse($node->getTranslation('en')->isPublished(), '1: English translation has been unpublished');
     $this->assertFalse($node->getTranslation('en-gb')->isPublished(), '1: British English translation has been unpublished');
@@ -251,7 +251,7 @@ public function testBulkDeletion() {
       'node_bulk_form[9]' => FALSE,
       'action' => 'node_delete_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
 
     $label = $this->loadNode(1)->label();
     $this->assertText("$label (Original translation) - The following content item translations will be deleted:");
@@ -264,7 +264,7 @@ public function testBulkDeletion() {
     $this->assertText($label);
     $this->assertNoText("$label (Original translation) - The following content item translations will be deleted:");
 
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     $node = $this->loadNode(1);
     $this->assertNull($node, '1: Node has been deleted');
diff --git a/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php b/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php
index b7af626a064f..1b8991410e26 100644
--- a/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php
+++ b/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php
@@ -49,7 +49,7 @@ public function testViewAdd() {
     $type = [
       'show[wizard_key]' => 'node_revision',
     ];
-    $this->drupalPostForm('admin/structure/views/add', $type, t('Update "Show" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $type, 'Update "Show" choice');
 
     $view = [];
     $view['label'] = $this->randomMachineName(16);
@@ -58,7 +58,7 @@ public function testViewAdd() {
     $view['page[create]'] = FALSE;
     $view['show[type]'] = 'article';
     $view['show[sort]'] = 'changed:DESC';
-    $this->drupalPostForm(NULL, $view, t('Save and edit'));
+    $this->drupalPostForm(NULL, $view, 'Save and edit');
 
     $view = Views::getView($view['id']);
     $view->initHandlers();
@@ -85,7 +85,7 @@ public function testViewAdd() {
     $type = [
       'show[wizard_key]' => 'node_revision',
     ];
-    $this->drupalPostForm('admin/structure/views/add', $type, t('Update "Show" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $type, 'Update "Show" choice');
     $view = [];
     $view['label'] = $this->randomMachineName(16);
     $view['id'] = strtolower($this->randomMachineName(16));
@@ -93,7 +93,7 @@ public function testViewAdd() {
     $view['page[create]'] = FALSE;
     $view['show[type]'] = 'all';
     $view['show[sort]'] = 'changed:DESC';
-    $this->drupalPostForm(NULL, $view, t('Save and edit'));
+    $this->drupalPostForm(NULL, $view, 'Save and edit');
 
     $view = Views::getView($view['id']);
     $view->initHandlers();
diff --git a/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php b/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php
index 8b25fd7df696..9a1ce87bdc55 100644
--- a/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php
+++ b/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php
@@ -53,7 +53,7 @@ public function testPreviewLinks() {
     $this->drupalPostForm('node/add/test', [
       'title[0][value]' => 'Test node',
       'body[0][value]' => '<a href="#foo">Anchor link</a><a href="/foo">Normal link</a>',
-    ], t('Preview'));
+    ], 'Preview');
     $this->clickLink('Anchor link');
     $assertSession->pageTextNotContains('Leave preview?');
     $this->clickLink('Normal link');
diff --git a/core/modules/options/tests/src/Functional/OptionsFieldUITest.php b/core/modules/options/tests/src/Functional/OptionsFieldUITest.php
index 0e4a40c858de..8a344e341be1 100644
--- a/core/modules/options/tests/src/Functional/OptionsFieldUITest.php
+++ b/core/modules/options/tests/src/Functional/OptionsFieldUITest.php
@@ -317,7 +317,7 @@ protected function createOptionsField($type) {
    */
   public function assertAllowedValuesInput($input_string, $result, $message) {
     $edit = ['settings[allowed_values]' => $input_string];
-    $this->drupalPostForm($this->adminPath, $edit, t('Save field settings'));
+    $this->drupalPostForm($this->adminPath, $edit, 'Save field settings');
     // Verify that the page does not have double escaped HTML tags.
     $this->assertNoRaw('&amp;lt;');
 
@@ -346,14 +346,14 @@ public function testNodeDisplay() {
         0|$off",
     ];
 
-    $this->drupalPostForm($this->adminPath, $edit, t('Save field settings'));
+    $this->drupalPostForm($this->adminPath, $edit, 'Save field settings');
     $this->assertText('Updated field ' . $this->fieldName . ' field settings.', "The 'On' and 'Off' form fields work for boolean fields.");
 
     // Select a default value.
     $edit = [
       $this->fieldName => '1',
     ];
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Check the node page and see if the values are correct.
     $file_formatters = ['list_default', 'list_key'];
@@ -362,7 +362,7 @@ public function testNodeDisplay() {
         "fields[$this->fieldName][type]" => $formatter,
         "fields[$this->fieldName][region]" => 'content',
       ];
-      $this->drupalPostForm('admin/structure/types/manage/' . $this->typeName . '/display', $edit, t('Save'));
+      $this->drupalPostForm('admin/structure/types/manage/' . $this->typeName . '/display', $edit, 'Save');
       $this->drupalGet('node/' . $node->id());
 
       if ($formatter == 'list_default') {
diff --git a/core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php b/core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php
index 49d77b115abc..82e748233933 100644
--- a/core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php
@@ -69,14 +69,14 @@ public function testImport() {
 
     // Set the active to not use dots in the allowed values key names.
     $edit = ['settings[allowed_values]' => "0|Zero\n1|One"];
-    $this->drupalPostForm($admin_path, $edit, t('Save field settings'));
+    $this->drupalPostForm($admin_path, $edit, 'Save field settings');
     $field_storage = FieldStorageConfig::loadByName('node', $field_name);
     $this->assertIdentical($field_storage->getSetting('allowed_values'), $array = ['0' => 'Zero', '1' => 'One']);
 
     // Import configuration with dots in the allowed values key names. This
     // tests \Drupal\Core\Config\Entity\ConfigEntityStorage::importUpdate().
     $this->drupalGet('admin/config/development/configuration');
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $field_storage = FieldStorageConfig::loadByName('node', $field_name);
     $this->assertIdentical($field_storage->getSetting('allowed_values'), $array = ['0' => 'Zero', '0.5' => 'Point five']);
 
@@ -85,7 +85,7 @@ public function testImport() {
     FieldConfig::loadByName('node', $type, $field_name)->delete();
 
     $this->drupalGet('admin/config/development/configuration');
-    $this->drupalPostForm(NULL, [], t('Import all'));
+    $this->drupalPostForm(NULL, [], 'Import all');
     $field_storage = FieldStorageConfig::loadByName('node', $field_name);
     $this->assertIdentical($field_storage->getSetting('allowed_values'), $array = ['0' => 'Zero', '0.5' => 'Point five']);
   }
diff --git a/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php b/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php
index 8a11c4761d48..e697d32db81b 100644
--- a/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php
@@ -153,7 +153,7 @@ public function testRadioButtons() {
 
     // Select first option.
     $edit = ['card_1' => 0];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_1', [0]);
 
     // Check that the selected button is checked.
@@ -164,7 +164,7 @@ public function testRadioButtons() {
 
     // Unselect option.
     $edit = ['card_1' => '_none'];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_1', []);
 
     // Check that required radios with one option is auto-selected.
@@ -214,7 +214,7 @@ public function testCheckBoxes() {
       'card_2[1]' => FALSE,
       'card_2[2]' => TRUE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', [0, 2]);
 
     // Display form: check that the right options are selected.
@@ -229,7 +229,7 @@ public function testCheckBoxes() {
       'card_2[1]' => FALSE,
       'card_2[2]' => FALSE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', [0]);
 
     // Display form: check that the right options are selected.
@@ -244,7 +244,7 @@ public function testCheckBoxes() {
       'card_2[1]' => TRUE,
       'card_2[2]' => TRUE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('this field cannot hold more than 2 values', 'Validation error was displayed.');
 
     // Submit form: uncheck all options.
@@ -253,7 +253,7 @@ public function testCheckBoxes() {
       'card_2[1]' => FALSE,
       'card_2[2]' => FALSE,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     // Check that the value was saved.
     $this->assertFieldValues($entity_init, 'card_2', []);
 
@@ -306,12 +306,12 @@ public function testSelectListSingle() {
 
     // Submit form: select invalid 'none' option.
     $edit = ['card_1' => '_none'];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('@title field is required.', ['@title' => $field->getName()]));
 
     // Submit form: select first option.
     $edit = ['card_1' => 0];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_1', [0]);
 
     // Display form: check that the right options are selected.
@@ -332,7 +332,7 @@ public function testSelectListSingle() {
     $this->assertNotEmpty($this->xpath('//select[@id=:id]//option[@value="_none" and text()=:label]', [':id' => 'edit-card-1', ':label' => '- None -']), 'A non-required select list has a "None" choice.');
     // Submit form: Unselect the option.
     $edit = ['card_1' => '_none'];
-    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_1', []);
 
     // Test optgroups.
@@ -352,7 +352,7 @@ public function testSelectListSingle() {
 
     // Submit form: select first option.
     $edit = ['card_1' => 0];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_1', [0]);
 
     // Display form: check that the right options are selected.
@@ -363,7 +363,7 @@ public function testSelectListSingle() {
 
     // Submit form: Unselect the option.
     $edit = ['card_1' => '_none'];
-    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_1', []);
   }
 
@@ -402,7 +402,7 @@ public function testSelectListMultiple() {
 
     // Submit form: select first and third options.
     $edit = ['card_2[]' => [0 => 0, 2 => 2]];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', [0, 2]);
 
     // Display form: check that the right options are selected.
@@ -413,7 +413,7 @@ public function testSelectListMultiple() {
 
     // Submit form: select only first option.
     $edit = ['card_2[]' => [0 => 0]];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', [0]);
 
     // Display form: check that the right options are selected.
@@ -424,12 +424,12 @@ public function testSelectListMultiple() {
 
     // Submit form: select the three options while the field accepts only 2.
     $edit = ['card_2[]' => [0 => 0, 1 => 1, 2 => 2]];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('this field cannot hold more than 2 values', 'Validation error was displayed.');
 
     // Submit form: uncheck all options.
     $edit = ['card_2[]' => []];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', []);
 
     // Test the 'None' option.
@@ -437,12 +437,12 @@ public function testSelectListMultiple() {
     // Check that the 'none' option has no effect if actual options are selected
     // as well.
     $edit = ['card_2[]' => ['_none' => '_none', 0 => 0]];
-    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', [0]);
 
     // Check that selecting the 'none' option empties the field.
     $edit = ['card_2[]' => ['_none' => '_none']];
-    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', []);
 
     // A required select list does not have an empty key.
@@ -474,7 +474,7 @@ public function testSelectListMultiple() {
 
     // Submit form: select first option.
     $edit = ['card_2[]' => [0 => 0]];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', [0]);
 
     // Display form: check that the right options are selected.
@@ -485,7 +485,7 @@ public function testSelectListMultiple() {
 
     // Submit form: Unselect the option.
     $edit = ['card_2[]' => ['_none' => '_none']];
-    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('entity_test/manage/' . $entity->id() . '/edit', $edit, 'Save');
     $this->assertFieldValues($entity_init, 'card_2', []);
   }
 
@@ -526,7 +526,7 @@ public function testSelectListFloat() {
 
     // Submit form.
     $edit = ['float' => 1.5];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertFieldValues($entity, 'float', [1.5]);
 
     // Display form: check that the right options are selected.
diff --git a/core/modules/path/tests/src/Functional/PathAdminTest.php b/core/modules/path/tests/src/Functional/PathAdminTest.php
index 21fc34ed4306..98890c5c2c7b 100644
--- a/core/modules/path/tests/src/Functional/PathAdminTest.php
+++ b/core/modules/path/tests/src/Functional/PathAdminTest.php
@@ -49,27 +49,27 @@ public function testPathFiltering() {
       'path[0][value]' => '/node/' . $node1->id(),
       'alias[0][value]' => $alias1,
     ];
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     $alias2 = '/' . $this->randomMachineName(8);
     $edit = [
       'path[0][value]' => '/node/' . $node2->id(),
       'alias[0][value]' => $alias2,
     ];
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     $alias3 = '/' . $this->randomMachineName(4) . '/' . $this->randomMachineName(4);
     $edit = [
       'path[0][value]' => '/node/' . $node3->id(),
       'alias[0][value]' => $alias3,
     ];
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     // Filter by the first alias.
     $edit = [
       'filter' => $alias1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Filter'));
+    $this->drupalPostForm(NULL, $edit, 'Filter');
     $this->assertSession()->linkByHrefExists($alias1);
     $this->assertSession()->linkByHrefNotExists($alias2);
     $this->assertSession()->linkByHrefNotExists($alias3);
@@ -78,7 +78,7 @@ public function testPathFiltering() {
     $edit = [
       'filter' => $alias2,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Filter'));
+    $this->drupalPostForm(NULL, $edit, 'Filter');
     $this->assertSession()->linkByHrefNotExists($alias1);
     $this->assertSession()->linkByHrefExists($alias2);
     $this->assertSession()->linkByHrefNotExists($alias3);
@@ -87,7 +87,7 @@ public function testPathFiltering() {
     $edit = [
       'filter' => $alias3,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Filter'));
+    $this->drupalPostForm(NULL, $edit, 'Filter');
     $this->assertSession()->linkByHrefNotExists($alias1);
     $this->assertSession()->linkByHrefNotExists($alias2);
     $this->assertSession()->linkByHrefExists($alias3);
@@ -96,13 +96,13 @@ public function testPathFiltering() {
     $edit = [
       'filter' => $this->randomMachineName(10),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Filter'));
+    $this->drupalPostForm(NULL, $edit, 'Filter');
     $this->assertSession()->linkByHrefNotExists($alias1);
     $this->assertSession()->linkByHrefNotExists($alias2);
 
     // Reset the filter.
     $edit = [];
-    $this->drupalPostForm(NULL, $edit, t('Reset'));
+    $this->drupalPostForm(NULL, $edit, 'Reset');
     $this->assertSession()->linkByHrefExists($alias1);
     $this->assertSession()->linkByHrefExists($alias2);
   }
diff --git a/core/modules/path/tests/src/Functional/PathAliasTest.php b/core/modules/path/tests/src/Functional/PathAliasTest.php
index 19fd491253b6..65632436e9f1 100644
--- a/core/modules/path/tests/src/Functional/PathAliasTest.php
+++ b/core/modules/path/tests/src/Functional/PathAliasTest.php
@@ -51,7 +51,7 @@ public function testPathCache() {
     $edit = [];
     $edit['path[0][value]'] = '/node/' . $node1->id();
     $edit['alias[0][value]'] = '/' . $this->randomMachineName(8);
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     // Check the path alias whitelist cache.
     $whitelist = \Drupal::cache('bootstrap')->get('path_alias_whitelist');
@@ -84,7 +84,7 @@ public function testAdminAlias() {
     $edit = [];
     $edit['path[0][value]'] = '/node/' . $node1->id();
     $edit['alias[0][value]'] = '/' . $this->getRandomGenerator()->word(8);
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     // Confirm that the alias works.
     $this->drupalGet($edit['alias[0][value]']);
@@ -120,7 +120,7 @@ public function testAdminAlias() {
       // cSpell:disable-next-line
       $edit['alias[0][value]'] .= "ïвβéø";
     }
-    $this->drupalPostForm('admin/config/search/path/edit/' . $pid, $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/edit/' . $pid, $edit, 'Save');
 
     // Confirm that the alias works.
     $this->drupalGet(mb_strtoupper($edit['alias[0][value]']));
@@ -139,14 +139,14 @@ public function testAdminAlias() {
     // Set alias to second test node.
     $edit['path[0][value]'] = '/node/' . $node2->id();
     // leave $edit['alias'] the same
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     // Confirm no duplicate was created.
     $this->assertRaw(t('The alias %alias is already in use in this language.', ['%alias' => $edit['alias[0][value]']]));
 
     $edit_upper = $edit;
     $edit_upper['alias[0][value]'] = mb_strtoupper($edit['alias[0][value]']);
-    $this->drupalPostForm('admin/config/search/path/add', $edit_upper, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit_upper, 'Save');
     $this->assertRaw(t('The alias %alias could not be added because it is already in use in this language with different capitalization: %stored_alias.', [
       '%alias' => $edit_upper['alias[0][value]'],
       '%stored_alias' => $edit['alias[0][value]'],
@@ -156,7 +156,7 @@ public function testAdminAlias() {
     $this->drupalGet('admin/config/search/path/edit/' . $pid);
     $this->clickLink(t('Delete'));
     $this->assertRaw(t('Are you sure you want to delete the URL alias %name?', ['%name' => $edit['alias[0][value]']]));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Confirm that the alias no longer works.
     $this->drupalGet($edit['alias[0][value]']);
@@ -170,7 +170,7 @@ public function testAdminAlias() {
     $edit['alias[0][value]'] = $alias;
     // The alias is shortened to 50 characters counting the ellipsis.
     $truncated_alias = substr($alias, 0, 47);
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
     $this->assertNoText($alias, 'The untruncated alias was not found.');
     // The 'truncated' alias will always be found.
     $this->assertText($truncated_alias, 'The truncated alias was found.');
@@ -183,7 +183,7 @@ public function testAdminAlias() {
     $edit['path[0][value]'] = '/node/' . $node3->id();
     $node3_alias = '/' . $this->randomMachineName(8);
     $edit['alias[0][value]'] = $node3_alias;
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     // Create fourth test node.
     $node4 = $this->drupalCreateNode();
@@ -193,7 +193,7 @@ public function testAdminAlias() {
     $edit['path[0][value]'] = '/node/' . $node4->id();
     $node4_alias = '/' . $this->randomMachineName(8);
     $edit['alias[0][value]'] = $node4_alias . '/';
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     // Confirm that the alias with trailing slash is not found.
     $this->assertNoText($edit['alias[0][value]'], 'The absolute alias was not found.');
@@ -205,7 +205,7 @@ public function testAdminAlias() {
     $edit = [];
     $edit['alias[0][value]'] = $node4_alias;
     $edit['path[0][value]'] = '/node/' . $node2->id();
-    $this->drupalPostForm('admin/config/search/path/edit/' . $pid, $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/edit/' . $pid, $edit, 'Save');
     $this->assertText('The alias has been saved.');
     $this->drupalGet($edit['alias[0][value]']);
     $this->assertNoText($node4->label(), 'Previous alias no longer works.');
@@ -217,7 +217,7 @@ public function testAdminAlias() {
     $edit = [];
     $edit['alias[0][value]'] = $node4_alias;
     $edit['path[0][value]'] = '/node/' . $node3->id();
-    $this->drupalPostForm('admin/config/search/path/edit/' . $pid, $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/edit/' . $pid, $edit, 'Save');
     $this->assertRaw(t('The alias %alias is already in use in this language.', ['%alias' => $edit['alias[0][value]']]));
 
     // Create an alias without a starting slash.
@@ -227,7 +227,7 @@ public function testAdminAlias() {
     $edit['path[0][value]'] = 'node/' . $node5->id();
     $node5_alias = $this->randomMachineName(8);
     $edit['alias[0][value]'] = $node5_alias . '/';
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     $this->assertSession()->addressEquals('admin/config/search/path/add');
     $this->assertText('The source path has to start with a slash.');
@@ -244,7 +244,7 @@ public function testNodeAlias() {
     // Create alias.
     $edit = [];
     $edit['path[0][alias]'] = '/' . $this->randomMachineName(8);
-    $this->drupalPostForm('node/' . $node1->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node1->id() . '/edit', $edit, 'Save');
 
     // Confirm that the alias works.
     $this->drupalGet($edit['path[0][alias]']);
@@ -276,7 +276,7 @@ public function testNodeAlias() {
       // cSpell:disable-next-line
       $edit['path[0][alias]'] .= "ïвβéø";
     }
-    $this->drupalPostForm('node/' . $node1->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node1->id() . '/edit', $edit, 'Save');
 
     // Confirm that the alias works.
     $this->drupalGet(mb_strtoupper($edit['path[0][alias]']));
@@ -293,13 +293,13 @@ public function testNodeAlias() {
 
     // Set alias to second test node.
     // Leave $edit['path[0][alias]'] the same.
-    $this->drupalPostForm('node/' . $node2->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node2->id() . '/edit', $edit, 'Save');
 
     // Confirm that the alias didn't make a duplicate.
     $this->assertSession()->pageTextContains("The alias {$edit['path[0][alias]']} is already in use in this language.");
 
     // Delete alias.
-    $this->drupalPostForm('node/' . $node1->id() . '/edit', ['path[0][alias]' => ''], t('Save'));
+    $this->drupalPostForm('node/' . $node1->id() . '/edit', ['path[0][alias]' => ''], 'Save');
 
     // Confirm that the alias no longer works.
     $this->drupalGet($edit['path[0][alias]']);
@@ -311,7 +311,7 @@ public function testNodeAlias() {
 
     // Set its path alias to an absolute path.
     $edit = ['path[0][alias]' => '/' . $this->randomMachineName(8)];
-    $this->drupalPostForm('node/' . $node3->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node3->id() . '/edit', $edit, 'Save');
 
     // Confirm that the alias was converted to a relative path.
     $this->drupalGet(trim($edit['path[0][alias]'], '/'));
@@ -323,7 +323,7 @@ public function testNodeAlias() {
 
     // Set its path alias to have a trailing slash.
     $edit = ['path[0][alias]' => '/' . $this->randomMachineName(8) . '/'];
-    $this->drupalPostForm('node/' . $node4->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node4->id() . '/edit', $edit, 'Save');
 
     // Confirm that the alias was converted to a relative path.
     $this->drupalGet(trim($edit['path[0][alias]'], '/'));
@@ -335,7 +335,7 @@ public function testNodeAlias() {
 
     // Set a path alias.
     $edit = ['path[0][alias]' => '/' . $this->randomMachineName(8)];
-    $this->drupalPostForm('node/' . $node5->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node5->id() . '/edit', $edit, 'Save');
 
     // Delete the node and check that the path alias is also deleted.
     $node5->delete();
@@ -361,7 +361,7 @@ public function testNodeAlias() {
     //   programmatically-created alias instead.
     $alias = $this->randomMachineName(8);
     $edit = ['path[0][alias]' => '//' . $alias];
-    $this->drupalPostForm($node6->toUrl('edit-form'), $edit, t('Save'));
+    $this->drupalPostForm($node6->toUrl('edit-form'), $edit, 'Save');
     $this->drupalGet(Url::fromRoute('system.admin_content'));
     // This checks the link href before clicking it, rather than using
     // \Drupal\Tests\BrowserTestBase::assertSession()->addressEquals() after
@@ -402,11 +402,11 @@ public function testDuplicateNodeAlias() {
     $node_one = $this->drupalCreateNode();
     $edit = [];
     $edit['path[0][alias]'] = '/' . $this->randomMachineName();
-    $this->drupalPostForm('node/' . $node_one->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node_one->id() . '/edit', $edit, 'Save');
 
     // Now create another node and try to set the same alias.
     $node_two = $this->drupalCreateNode();
-    $this->drupalPostForm('node/' . $node_two->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node_two->id() . '/edit', $edit, 'Save');
     $this->assertSession()->pageTextContains("The alias {$edit['path[0][alias]']} is already in use in this language.");
     $path_alias = $this->assertSession()->fieldExists('path[0][alias]');
     $this->assertSession()->fieldValueEquals('path[0][alias]', $edit['path[0][alias]']);
@@ -418,7 +418,7 @@ public function testDuplicateNodeAlias() {
     // which have invalid input.
     $this->assertTrue($this->container->get('module_installer')->install(['inline_form_errors'], TRUE), 'Installed inline_form_errors.');
     // Attempt to edit the second node again, as before.
-    $this->drupalPostForm('node/' . $node_two->id() . '/edit', $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $node_two->id() . '/edit', $edit, 'Preview');
     // This error should still be present next to the field.
     $this->assertSession()->pageTextContains("The alias {$edit['path[0][alias]']} is already in use in this language.");
     // The validation error set for the page should include this text.
diff --git a/core/modules/path/tests/src/Functional/PathContentModerationTest.php b/core/modules/path/tests/src/Functional/PathContentModerationTest.php
index eebeb2cdb79b..0b838b547ecb 100644
--- a/core/modules/path/tests/src/Functional/PathContentModerationTest.php
+++ b/core/modules/path/tests/src/Functional/PathContentModerationTest.php
@@ -81,7 +81,7 @@ public function testNodePathAlias() {
       'title[0][value]' => 'moderated content',
       'path[0][alias]' => '/moderated-content',
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
     $node = $this->getNodeByTitle('moderated content');
 
     // Add a pending revision with the same alias.
@@ -91,7 +91,7 @@ public function testNodePathAlias() {
       'title[0][value]' => 'pending revision',
       'path[0][alias]' => '/moderated-content',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $this->assertSession()->pageTextNotContains('You can only change the URL alias for the published version of this content.');
 
     // Create some moderated content with no path alias.
@@ -101,7 +101,7 @@ public function testNodePathAlias() {
       'title[0][value]' => 'moderated content 2',
       'path[0][alias]' => '',
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
     $node = $this->getNodeByTitle('moderated content 2');
 
     // Add a pending revision with a new alias.
@@ -111,7 +111,7 @@ public function testNodePathAlias() {
       'title[0][value]' => 'pending revision',
       'path[0][alias]' => '/pending-revision',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $this->assertSession()->pageTextContains('You can only change the URL alias for the published version of this content.');
 
     // Create some moderated content with no path alias.
@@ -121,7 +121,7 @@ public function testNodePathAlias() {
       'title[0][value]' => 'moderated content 3',
       'path[0][alias]' => '',
       'moderation_state[0][state]' => 'published',
-    ], t('Save'));
+    ], 'Save');
     $node = $this->getNodeByTitle('moderated content 3');
 
     // Add a pending revision with no path alias.
@@ -131,7 +131,7 @@ public function testNodePathAlias() {
       'title[0][value]' => 'pending revision',
       'path[0][alias]' => '',
       'moderation_state[0][state]' => 'draft',
-    ], t('Save'));
+    ], 'Save');
     $this->assertSession()->pageTextNotContains('You can only change the URL alias for the published version of this content.');
   }
 
@@ -180,7 +180,7 @@ public function testTranslatedModeratedNodeAlias() {
       'body[0][value]' => $this->randomMachineName(),
       'moderation_state[0][state]' => 'draft',
     ];
-    $this->drupalPostForm('fr/node/' . $default_node->id() . '/edit', $edit_new_translation_draft, t('Save (this translation)'));
+    $this->drupalPostForm('fr/node/' . $default_node->id() . '/edit', $edit_new_translation_draft, 'Save (this translation)');
     // Confirm that the new draft revision was created.
     $this->assertSession()->pageTextNotContains('You can only change the URL alias for the published version of this content.');
     $this->assertSession()->pageTextContains($edit_new_translation_draft['body[0][value]']);
diff --git a/core/modules/path/tests/src/Functional/PathLanguageTest.php b/core/modules/path/tests/src/Functional/PathLanguageTest.php
index 677557ae3ca0..e5cf5977ff04 100644
--- a/core/modules/path/tests/src/Functional/PathLanguageTest.php
+++ b/core/modules/path/tests/src/Functional/PathLanguageTest.php
@@ -56,11 +56,11 @@ protected function setUp(): void {
     $edit = [];
     $edit['predefined_langcode'] = 'fr';
 
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable URL language detection and selection.
     $edit = ['language_interface[enabled][language-url]' => 1];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Enable translation for page node.
     $edit = [
@@ -70,7 +70,7 @@ protected function setUp(): void {
       'settings[node][page][fields][body]' => 1,
       'settings[node][page][settings][language][language_alterable]' => 1,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     $definitions = \Drupal::service('entity_field.manager')->getFieldDefinitions('node', 'page');
     $this->assertTrue($definitions['path']->isTranslatable(), 'Node path is translatable.');
@@ -88,7 +88,7 @@ public function testAliasTranslation() {
     // Edit the node to set language and path.
     $edit = [];
     $edit['path[0][alias]'] = '/' . $english_alias;
-    $this->drupalPostForm('node/' . $english_node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $english_node->id() . '/edit', $edit, 'Save');
 
     // Confirm that the alias works.
     $this->drupalGet($english_alias);
@@ -103,7 +103,7 @@ public function testAliasTranslation() {
     $edit['body[0][value]'] = $this->randomMachineName();
     $french_alias = $this->randomMachineName();
     $edit['path[0][alias]'] = '/' . $french_alias;
-    $this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
+    $this->drupalPostForm(NULL, $edit, 'Save (this translation)');
 
     // Clear the path lookup cache.
     $this->container->get('path_alias.manager')->cacheClear();
@@ -139,11 +139,11 @@ public function testAliasTranslation() {
       'language_interface[enabled][language-url]' => 1,
       'language_interface[weight][language-url]' => -8,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Change user language preference.
     $edit = ['preferred_langcode' => 'fr'];
-    $this->drupalPostForm("user/" . $this->webUser->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $this->webUser->id() . "/edit", $edit, 'Save');
 
     // Check that the English alias works. In this situation French is the
     // current UI and content language, while URL language is English (since we
@@ -162,7 +162,7 @@ public function testAliasTranslation() {
 
     // Disable URL language negotiation.
     $edit = ['language_interface[enabled][language-url]' => FALSE];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // Check that the English alias still works.
     $this->drupalGet($english_alias);
diff --git a/core/modules/path/tests/src/Functional/PathLanguageUiTest.php b/core/modules/path/tests/src/Functional/PathLanguageUiTest.php
index 9efde77039d6..f2c68075baa6 100644
--- a/core/modules/path/tests/src/Functional/PathLanguageUiTest.php
+++ b/core/modules/path/tests/src/Functional/PathLanguageUiTest.php
@@ -41,11 +41,11 @@ protected function setUp(): void {
     $edit = [];
     $edit['predefined_langcode'] = 'fr';
 
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // Enable URL language detection and selection.
     $edit = ['language_interface[enabled][language-url]' => 1];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
   }
 
   /**
@@ -56,7 +56,7 @@ public function testLanguageNeutralUrl() {
     $edit = [];
     $edit['path[0][value]'] = '/admin/config/search/path';
     $edit['alias[0][value]'] = '/' . $name;
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     $this->drupalGet($name);
     $this->assertText('Filter aliases', 'Language-neutral URL alias works');
@@ -71,7 +71,7 @@ public function testDefaultLanguageUrl() {
     $edit['path[0][value]'] = '/admin/config/search/path';
     $edit['alias[0][value]'] = '/' . $name;
     $edit['langcode[0][value]'] = 'en';
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     $this->drupalGet($name);
     $this->assertText('Filter aliases', 'English URL alias works');
@@ -86,7 +86,7 @@ public function testNonDefaultUrl() {
     $edit['path[0][value]'] = '/admin/config/search/path';
     $edit['alias[0][value]'] = '/' . $name;
     $edit['langcode[0][value]'] = 'fr';
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     $this->drupalGet('fr/' . $name);
     $this->assertText('Filter aliases', 'Foreign URL alias works');
@@ -106,11 +106,11 @@ public function testNotSpecifiedNode() {
       'alias[0][value]' => '/' . $this->getRandomGenerator()->word(8),
       'langcode[0][value]' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
     ];
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
 
     $this->drupalGet($node->toUrl('edit-form'));
     $this->assertSession()->fieldValueEquals('path[0][alias]', $edit['alias[0][value]']);
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $this->drupalGet('admin/config/search/path');
     $this->assertSession()->pageTextContains('None');
@@ -120,7 +120,7 @@ public function testNotSpecifiedNode() {
     // aliases are loaded correctly.
     $node = $this->drupalCreateNode();
     $this->drupalget($node->toUrl('edit-form'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->pageTextNotContains(t('The alias is already in use.'));
   }
 
diff --git a/core/modules/path/tests/src/Functional/PathTaxonomyTermTest.php b/core/modules/path/tests/src/Functional/PathTaxonomyTermTest.php
index 84a7c4337b10..9e6c1e63b983 100644
--- a/core/modules/path/tests/src/Functional/PathTaxonomyTermTest.php
+++ b/core/modules/path/tests/src/Functional/PathTaxonomyTermTest.php
@@ -54,7 +54,7 @@ public function testTermAlias() {
       'description[0][value]' => $description,
       'path[0][alias]' => '/' . $this->randomMachineName(),
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $vocabulary->id() . '/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $vocabulary->id() . '/add', $edit, 'Save');
     $tids = \Drupal::entityQuery('taxonomy_term')
       ->accessCheck(FALSE)
       ->condition('name', $edit['name[0][value]'])
@@ -75,7 +75,7 @@ public function testTermAlias() {
     // Change the term's URL alias.
     $edit2 = [];
     $edit2['path[0][alias]'] = '/' . $this->randomMachineName();
-    $this->drupalPostForm('taxonomy/term/' . $tid . '/edit', $edit2, t('Save'));
+    $this->drupalPostForm('taxonomy/term/' . $tid . '/edit', $edit2, 'Save');
 
     // Confirm that the changed alias works.
     $this->drupalGet(trim($edit2['path[0][alias]'], '/'));
@@ -89,7 +89,7 @@ public function testTermAlias() {
     // Remove the term's URL alias.
     $edit3 = [];
     $edit3['path[0][alias]'] = '';
-    $this->drupalPostForm('taxonomy/term/' . $tid . '/edit', $edit3, t('Save'));
+    $this->drupalPostForm('taxonomy/term/' . $tid . '/edit', $edit3, 'Save');
 
     // Confirm that the alias no longer works.
     $this->drupalGet(trim($edit2['path[0][alias]'], '/'));
diff --git a/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php b/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php
index a100d5151eee..6efd8f55ccd7 100644
--- a/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php
+++ b/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php
@@ -58,7 +58,7 @@ public function testUrlAlter() {
 
     // Test adding an alias via the UI.
     $edit = ['path[0][value]' => "/user/$uid/edit", 'alias[0][value]' => '/alias/test2'];
-    $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/search/path/add', $edit, 'Save');
     $this->assertText('The alias has been saved.');
     $this->drupalGet('alias/test2');
     $this->assertSession()->statusCodeEquals(200);
diff --git a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php
index cd0470f3b980..937203810cda 100644
--- a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php
+++ b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php
@@ -375,9 +375,7 @@ public function testImageField() {
     $page->attachFileToField('files[field_image_0]', $image_path);
     $alt_field = $assert->waitForField('field_image[0][alt]');
     $this->assertNotEmpty($alt_field);
-    $this->drupalPostForm(NULL, [
-      'field_image[0][alt]' => 'Vivamus aliquet elit',
-    ], t('Save'));
+    $this->drupalPostForm(NULL, ['field_image[0][alt]' => 'Vivamus aliquet elit'], 'Save');
 
     // The image field form should load normally.
     // Wait "Quick edit" button for node.
diff --git a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php
index dfdfc205d633..3b64b0d1a6a7 100644
--- a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php
+++ b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php
@@ -58,7 +58,7 @@ public function testResponsiveImageAdmin() {
       'breakpoint_group' => 'responsive_image_test_module',
       'fallback_image_style' => 'thumbnail',
     ];
-    $this->drupalPostForm('admin/config/media/responsive-image-style/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/media/responsive-image-style/add', $edit, 'Save');
 
     // Check if the new group is created.
     $this->assertSession()->statusCodeEquals(200);
@@ -121,7 +121,7 @@ public function testResponsiveImageAdmin() {
       'keyed_styles[responsive_image_test_module.wide][1x][image_mapping_type]' => 'image_style',
       'keyed_styles[responsive_image_test_module.wide][1x][image_style]' => 'large',
     ];
-    $this->drupalPostForm('admin/config/media/responsive-image-style/style_one', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/media/responsive-image-style/style_one', $edit, 'Save');
     $this->drupalGet('admin/config/media/responsive-image-style/style_one');
 
     // Check the mapping for multipliers 1x and 2x for the mobile breakpoint.
@@ -144,7 +144,7 @@ public function testResponsiveImageAdmin() {
 
     // Delete the style.
     $this->drupalGet('admin/config/media/responsive-image-style/style_one/delete');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->drupalGet('admin/config/media/responsive-image-style');
     $this->assertText('There are no responsive image styles yet.');
   }
diff --git a/core/modules/rest/tests/src/Functional/Views/RestExportAuthTest.php b/core/modules/rest/tests/src/Functional/Views/RestExportAuthTest.php
index 287613c5d147..c8d8e86f377a 100644
--- a/core/modules/rest/tests/src/Functional/Views/RestExportAuthTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/RestExportAuthTest.php
@@ -49,7 +49,7 @@ public function testAuthProvidersOptions() {
       'show[wizard_key]' => 'users',
       'rest_export[path]' => $view_rest_path,
       'rest_export[create]' => TRUE,
-    ], t('Save and edit'));
+    ], 'Save and edit');
 
     $this->drupalGet("admin/structure/views/nojs/display/$view_id/$view_display/auth");
     // The "basic_auth" will always be available since module,
diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
index 43750fb75870..d955f45ab93f 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
@@ -394,8 +394,8 @@ public function testResponseFormatConfiguration() {
     $this->assertSession()->statusCodeEquals(406);
 
     // Select only 'xml' as an accepted format.
-    $this->drupalPostForm($style_options, ['style_options[formats][xml]' => 'xml'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($style_options, ['style_options[formats][xml]' => 'xml'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Ensure a request for JSON returns 406 Not Acceptable.
     $this->drupalGet('test/serialize/field', ['query' => ['_format' => 'json']]);
@@ -407,8 +407,8 @@ public function testResponseFormatConfiguration() {
     $this->assertSession()->statusCodeEquals(200);
 
     // Add 'json' as an accepted format, so we have multiple.
-    $this->drupalPostForm($style_options, ['style_options[formats][json]' => 'json'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($style_options, ['style_options[formats][json]' => 'json'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Should return a 406. Emulates a sample Firefox header.
     $this->drupalGet('test/serialize/field', [], ['Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8']);
@@ -431,7 +431,7 @@ public function testResponseFormatConfiguration() {
     $this->assertSession()->statusCodeEquals(200);
 
     // Now configure no format, so both serialization formats should be allowed.
-    $this->drupalPostForm($style_options, ['style_options[formats][json]' => '0', 'style_options[formats][xml]' => '0'], t('Apply'));
+    $this->drupalPostForm($style_options, ['style_options[formats][json]' => '0', 'style_options[formats][xml]' => '0'], 'Apply');
 
     // Ensure a request for JSON returns 200 OK.
     $this->drupalGet('test/serialize/field', ['query' => ['_format' => 'json']]);
@@ -462,8 +462,8 @@ public function testUIFieldAlias() {
 
     // Test an empty string for an alias, this should not be used. This also
     // tests that the form can be submitted with no aliases.
-    $this->drupalPostForm($row_options, ['row_options[field_options][name][alias]' => ''], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($row_options, ['row_options[field_options][name][alias]' => ''], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView('test_serializer_display_field');
     $view->setDisplay('rest_export_1');
@@ -489,16 +489,16 @@ public function testUIFieldAlias() {
     ];
 
     $edit = ['row_options[field_options][name][alias]' => $alias_map['name'], 'row_options[field_options][nothing][alias]' => $alias_map['nothing']];
-    $this->drupalPostForm($row_options, $edit, t('Apply'));
+    $this->drupalPostForm($row_options, $edit, 'Apply');
     $this->assertText('The machine-readable name must contain only letters, numbers, dashes and underscores.');
 
     // Change the map alias value to a valid one.
     $alias_map['nothing'] = $this->randomMachineName();
 
     $edit = ['row_options[field_options][name][alias]' => $alias_map['name'], 'row_options[field_options][nothing][alias]' => $alias_map['nothing']];
-    $this->drupalPostForm($row_options, $edit, t('Apply'));
+    $this->drupalPostForm($row_options, $edit, 'Apply');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView('test_serializer_display_field');
     $view->setDisplay('rest_export_1');
@@ -533,8 +533,8 @@ public function testFieldRawOutput() {
       'row_options[field_options][created][raw_output]' => '1',
       'row_options[field_options][name][raw_output]' => '1',
     ];
-    $this->drupalPostForm($row_options, $values, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($row_options, $values, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView('test_serializer_display_field');
     $view->setDisplay('rest_export_1');
@@ -641,7 +641,7 @@ public function testLivePreview() {
   public function testSerializerViewsUI() {
     $this->drupalLogin($this->adminUser);
     // Click the "Update preview button".
-    $this->drupalPostForm('admin/structure/views/view/test_serializer_display_field/edit/rest_export_1', $edit = [], t('Update preview'));
+    $this->drupalPostForm('admin/structure/views/view/test_serializer_display_field/edit/rest_export_1', $edit = [], 'Update preview');
     $this->assertSession()->statusCodeEquals(200);
     // Check if we receive the expected result.
     $result = $this->xpath('//div[@id="views-live-preview"]/pre');
@@ -678,8 +678,8 @@ public function testFieldapiField() {
 
     // Test an empty string for an alias, this should not be used. This also
     // tests that the form can be submitted with no aliases.
-    $this->drupalPostForm($row_options, ['row_options[field_options][title][raw_output]' => '1'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($row_options, ['row_options[field_options][title][raw_output]' => '1'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView('test_serializer_node_display_field');
     $view->setDisplay('rest_export_1');
@@ -696,8 +696,8 @@ public function testFieldapiField() {
     $storage_definition->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
     $storage_definition->save();
 
-    $this->drupalPostForm($row_options, ['row_options[field_options][body][raw_output]' => '1'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($row_options, ['row_options[field_options][body][raw_output]' => '1'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $node = $this->drupalCreateNode();
 
diff --git a/core/modules/search/tests/src/Functional/SearchBlockTest.php b/core/modules/search/tests/src/Functional/SearchBlockTest.php
index 900e90d24dba..81716fb68cb2 100644
--- a/core/modules/search/tests/src/Functional/SearchBlockTest.php
+++ b/core/modules/search/tests/src/Functional/SearchBlockTest.php
@@ -68,14 +68,14 @@ public function testSearchFormBlock() {
 
     // Test a normal search via the block form, from the front page.
     $terms = ['keys' => 'test'];
-    $this->drupalPostForm('', $terms, t('Search'));
+    $this->drupalPostForm('', $terms, 'Search');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('Your search yielded no results');
 
     // Test a search from the block on a 404 page.
     $this->drupalGet('foo');
     $this->assertSession()->statusCodeEquals(404);
-    $this->drupalPostForm(NULL, $terms, t('Search'));
+    $this->drupalPostForm(NULL, $terms, 'Search');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('Your search yielded no results');
 
@@ -83,7 +83,7 @@ public function testSearchFormBlock() {
     $visibility['request_path']['pages'] = 'search';
     $block->setVisibilityConfig('request_path', $visibility['request_path']);
 
-    $this->drupalPostForm('', $terms, t('Search'));
+    $this->drupalPostForm('', $terms, 'Search');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('Your search yielded no results');
 
@@ -99,7 +99,7 @@ public function testSearchFormBlock() {
 
     // Test an empty search via the block form, from the front page.
     $terms = ['keys' => ''];
-    $this->drupalPostForm('', $terms, t('Search'));
+    $this->drupalPostForm('', $terms, 'Search');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('Please enter some keywords');
 
@@ -113,16 +113,16 @@ public function testSearchFormBlock() {
 
     // Test that after entering a too-short keyword in the form, you can then
     // search again with a longer keyword. First test using the block form.
-    $this->drupalPostForm('node', ['keys' => $this->randomMachineName(1)], t('Search'));
+    $this->drupalPostForm('node', ['keys' => $this->randomMachineName(1)], 'Search');
     $this->assertText('You must include at least one keyword to match in the content', 'Keyword message is displayed when searching for short word');
     $this->assertNoText('Please enter some keywords', 'With short word entered, no keywords message is not displayed');
-    $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], t('Search'), [], 'search-block-form');
+    $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], 'Search', [], 'search-block-form');
     $this->assertNoText('You must include at least one keyword to match in the content', 'Keyword message is not displayed when searching for long word after short word search');
 
     // Same test again, using the search page form for the second search this
     // time.
-    $this->drupalPostForm('node', ['keys' => $this->randomMachineName(1)], t('Search'));
-    $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], t('Search'), [], 'search-form');
+    $this->drupalPostForm('node', ['keys' => $this->randomMachineName(1)], 'Search');
+    $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], 'Search', [], 'search-form');
     $this->assertNoText('You must include at least one keyword to match in the content', 'Keyword message is not displayed when searching for long word after short word search');
 
     // Edit the block configuration so that it searches users instead of nodes,
@@ -132,7 +132,7 @@ public function testSearchFormBlock() {
         'settings[page_id]' => 'user_search',
       ], 'Save block');
     $name = $this->adminUser->getAccountName();
-    $this->drupalPostForm('node', ['keys' => $name], t('Search'));
+    $this->drupalPostForm('node', ['keys' => $name], 'Search');
     $this->assertSession()->linkExists($name);
   }
 
diff --git a/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php b/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php
index 07c72197af32..944a0444be98 100644
--- a/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php
+++ b/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php
@@ -77,7 +77,7 @@ protected function setUp(): void {
     $edit_comment['comment_body[0][value]'] = $this->randomMachineName();
 
     // Post comment to the test node with comment
-    $this->drupalPostForm('comment/reply/node/' . $this->searchableNodes['1 comment']->id() . '/comment', $edit_comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $this->searchableNodes['1 comment']->id() . '/comment', $edit_comment, 'Save');
 
     // First update the index. This does the initial processing.
     $this->container->get('plugin.manager.search')->createInstance('node_search')->updateIndex();
@@ -94,7 +94,7 @@ public function testSearchCommentCountToggle() {
     $this->drupalGet('search/node');
 
     // Test comment count display for nodes with comment status set to Open
-    $this->drupalPostForm(NULL, $edit, t('Search'));
+    $this->drupalPostForm(NULL, $edit, 'Search');
     $this->assertText('0 comments', 'Empty comment count displays for nodes with comment status set to Open');
     $this->assertText('1 comment', 'Non-empty comment count displays for nodes with comment status set to Open');
 
@@ -104,7 +104,7 @@ public function testSearchCommentCountToggle() {
     $this->searchableNodes['1 comment']->set('comment', CommentItemInterface::CLOSED);
     $this->searchableNodes['1 comment']->save();
 
-    $this->drupalPostForm(NULL, $edit, t('Search'));
+    $this->drupalPostForm(NULL, $edit, 'Search');
     $this->assertNoText('0 comments', 'Empty comment count does not display for nodes with comment status set to Closed');
     $this->assertText('1 comment', 'Non-empty comment count displays for nodes with comment status set to Closed');
 
@@ -114,7 +114,7 @@ public function testSearchCommentCountToggle() {
     $this->searchableNodes['1 comment']->set('comment', CommentItemInterface::HIDDEN);
     $this->searchableNodes['1 comment']->save();
 
-    $this->drupalPostForm(NULL, $edit, t('Search'));
+    $this->drupalPostForm(NULL, $edit, 'Search');
     $this->assertNoText('0 comments', 'Empty comment count does not display for nodes with comment status set to Hidden');
     $this->assertNoText('1 comment', 'Non-empty comment count does not display for nodes with comment status set to Hidden');
   }
diff --git a/core/modules/search/tests/src/Functional/SearchCommentTest.php b/core/modules/search/tests/src/Functional/SearchCommentTest.php
index 33941e4887ba..9b8a402911b0 100644
--- a/core/modules/search/tests/src/Functional/SearchCommentTest.php
+++ b/core/modules/search/tests/src/Functional/SearchCommentTest.php
@@ -120,7 +120,7 @@ public function testSearchResultsComment() {
       RoleInterface::ANONYMOUS_ID . '[access comments]' => 1,
       RoleInterface::ANONYMOUS_ID . '[post comments]' => 1,
     ];
-    $this->drupalPostForm('admin/people/permissions', $edit, t('Save permissions'));
+    $this->drupalPostForm('admin/people/permissions', $edit, 'Save permissions');
 
     // Create a node.
     $node = $this->drupalCreateNode(['type' => 'article']);
@@ -130,7 +130,7 @@ public function testSearchResultsComment() {
     $edit_comment['comment_body[0][value]'] = '<h1>' . $comment_body . '</h1>';
     $full_html_format_id = 'full_html';
     $edit_comment['comment_body[0][format]'] = $full_html_format_id;
-    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit_comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit_comment, 'Save');
 
     // Post a comment with an evil script tag in the comment subject and a
     // script tag nearby a keyword in the comment body. Use the 'FULL HTML' text
@@ -139,7 +139,7 @@ public function testSearchResultsComment() {
     $edit_comment2['subject[0][value]'] = "<script>alert('subjectkeyword');</script>";
     $edit_comment2['comment_body[0][value]'] = "nearbykeyword<script>alert('somethinggeneric');</script>";
     $edit_comment2['comment_body[0][format]'] = $full_html_format_id;
-    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit_comment2, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit_comment2, 'Save');
 
     // Post a comment with a keyword inside an evil script tag in the comment
     // body. Use the 'FULL HTML' text format so the script tag is stored.
@@ -147,7 +147,7 @@ public function testSearchResultsComment() {
     $edit_comment3['subject[0][value]'] = 'asubject';
     $edit_comment3['comment_body[0][value]'] = "<script>alert('insidekeyword');</script>";
     $edit_comment3['comment_body[0][format]'] = $full_html_format_id;
-    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit_comment3, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit_comment3, 'Save');
 
     // Invoke search index update.
     $this->drupalLogout();
@@ -157,7 +157,7 @@ public function testSearchResultsComment() {
     $edit = [
       'keys' => "'" . $edit_comment['subject[0][value]'] . "'",
     ];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $node_storage->resetCache([$node->id()]);
     $node2 = $node_storage->load($node->id());
     $this->assertText($node2->label(), 'Node found in search results.');
@@ -167,7 +167,7 @@ public function testSearchResultsComment() {
     $edit = [
       'keys' => "'" . $comment_body . "'",
     ];
-    $this->drupalPostForm(NULL, $edit, t('Search'));
+    $this->drupalPostForm(NULL, $edit, 'Search');
     $this->assertText($node2->label(), 'Node found in search results.');
 
     // Verify that comment is rendered using proper format.
@@ -180,7 +180,7 @@ public function testSearchResultsComment() {
     $edit = [
       'keys' => 'subjectkeyword',
     ];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
 
     // Verify the evil comment subject is escaped in search results.
     $this->assertRaw('&lt;script&gt;alert(&#039;<strong>subjectkeyword</strong>&#039;);');
@@ -190,7 +190,7 @@ public function testSearchResultsComment() {
     $edit = [
       'keys' => 'nearbykeyword',
     ];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
 
     // Verify that nearby script tag in the evil comment body is stripped from
     // search results.
@@ -201,7 +201,7 @@ public function testSearchResultsComment() {
     $edit = [
       'keys' => 'insidekeyword',
     ];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
 
     // @todo Verify the actual search results.
     //   https://www.drupal.org/node/2551135
@@ -219,7 +219,7 @@ public function testSearchResultsComment() {
     $this->cronRun();
 
     // Search for $title.
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText('Your search yielded no results.');
   }
 
@@ -243,7 +243,7 @@ public function testSearchResultsCommentAccess() {
     $edit_comment = [];
     $edit_comment['subject[0][value]'] = $this->commentSubject;
     $edit_comment['comment_body[0][value]'] = '<h1>' . $comment_body . '</h1>';
-    $this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', $edit_comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', $edit_comment, 'Save');
 
     $this->drupalLogout();
     $this->setRolePermissions(RoleInterface::ANONYMOUS_ID);
@@ -307,7 +307,7 @@ public function assertCommentAccess($assume_access, $message) {
     $edit = [
       'keys' => "'" . $this->commentSubject . "'",
     ];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
 
     try {
       if ($assume_access) {
@@ -355,12 +355,12 @@ public function testAddNewComment() {
 
     // Search for 'comment'. Should be no results.
     $this->drupalLogin($user);
-    $this->drupalPostForm('search/node', ['keys' => 'comment'], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => 'comment'], 'Search');
     $this->assertText('Your search yielded no results');
 
     // Search for the node title. Should be found, and 'Add new comment' should
     // not be part of the search snippet.
-    $this->drupalPostForm('search/node', ['keys' => 'short'], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => 'short'], 'Search');
     $this->assertText($node->label(), 'Search for keyword worked');
     $this->assertNoText('Add new comment');
   }
diff --git a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php
index 06b617476bf2..c3a92ffa4eca 100644
--- a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php
+++ b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php
@@ -71,7 +71,7 @@ protected function setUp(): void {
     // also needs the word "pizza" so we can use it as the search keyword.
     $body_key = 'body[0][value]';
     $edit[$body_key] = Link::fromTextAndUrl($node->label(), $node->toUrl())->toString() . ' pizza sandwich';
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     $this->container->get('plugin.manager.search')->createInstance('node_search')->updateIndex();
 
@@ -91,35 +91,35 @@ public function testSearchSettingsPage() {
     $this->assertText('There are 0 items left to index.');
 
     // Test the re-index button.
-    $this->drupalPostForm('admin/config/search/pages', [], t('Re-index site'));
+    $this->drupalPostForm('admin/config/search/pages', [], 'Re-index site');
     $this->assertText('Are you sure you want to re-index the site');
-    $this->drupalPostForm('admin/config/search/pages/reindex', [], t('Re-index site'));
+    $this->drupalPostForm('admin/config/search/pages/reindex', [], 'Re-index site');
     $this->assertText('All search indexes will be rebuilt');
     $this->drupalGet('admin/config/search/pages');
     $this->assertText('There is 1 item left to index.');
 
     // Test that the form saves with the default values.
-    $this->drupalPostForm('admin/config/search/pages', [], t('Save configuration'));
+    $this->drupalPostForm('admin/config/search/pages', [], 'Save configuration');
     $this->assertText('The configuration options have been saved.', 'Form saves with the default values.');
 
     // Test that the form does not save with an invalid word length.
     $edit = [
       'minimum_word_size' => $this->randomMachineName(3),
     ];
-    $this->drupalPostForm('admin/config/search/pages', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/search/pages', $edit, 'Save configuration');
     $this->assertNoText('The configuration options have been saved.', 'Form does not save with an invalid word length.');
 
     // Test logging setting. It should be off by default.
     $text = $this->randomMachineName(5);
-    $this->drupalPostForm('search/node', ['keys' => $text], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => $text], 'Search');
     $this->drupalGet('admin/reports/dblog');
     $this->assertSession()->linkNotExists('Searched Content for ' . $text . '.', 'Search was not logged');
 
     // Turn on logging.
     $edit = ['logging' => TRUE];
-    $this->drupalPostForm('admin/config/search/pages', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/search/pages', $edit, 'Save configuration');
     $text = $this->randomMachineName(5);
-    $this->drupalPostForm('search/node', ['keys' => $text], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => $text], 'Search');
     $this->drupalGet('admin/reports/dblog');
     $this->assertSession()->linkExists('Searched Content for ' . $text . '.', 0, 'Search was logged');
 
@@ -139,7 +139,7 @@ public function testSearchModuleSettingsPage() {
     $edit = [
       'extra_type_settings[boost]' => 'ii',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save search page'));
+    $this->drupalPostForm(NULL, $edit, 'Save search page');
 
     // Ensure that the modifications took effect.
     $this->assertRaw(t('The %label search page has been updated.', ['%label' => 'Dummy search type']));
@@ -197,7 +197,7 @@ public function testSearchModuleDisabling() {
       // Run a search from the search block on the node page. Verify you get
       // to this plugin's search results page.
       $terms = ['keys' => $info['keys']];
-      $this->drupalPostForm('node', $terms, t('Search'));
+      $this->drupalPostForm('node', $terms, 'Search');
       $current = $this->getURL();
       $expected = Url::fromRoute('search.view_' . $entity->id(), [], ['query' => ['keys' => $info['keys']], 'absolute' => TRUE])->toString();
       $this->assertEqual($current, $expected, 'Block redirected to right search page');
@@ -262,26 +262,26 @@ public function testMultipleSearchPages() {
     // Add a search page.
     $edit = [];
     $edit['search_type'] = 'search_extra_type_search';
-    $this->drupalPostForm(NULL, $edit, t('Add search page'));
+    $this->drupalPostForm(NULL, $edit, 'Add search page');
     $this->assertSession()->titleEquals('Add new search page | Drupal');
 
     $first = [];
     $first['label'] = $this->randomString();
     $first_id = $first['id'] = strtolower($this->randomMachineName(8));
     $first['path'] = strtolower($this->randomMachineName(8));
-    $this->drupalPostForm(NULL, $first, t('Save'));
+    $this->drupalPostForm(NULL, $first, 'Save');
     $this->assertDefaultSearch($first_id, 'The default page matches the only search page.');
     $this->assertRaw(t('The %label search page has been added.', ['%label' => $first['label']]));
 
     // Attempt to add a search page with an existing path.
     $edit = [];
     $edit['search_type'] = 'search_extra_type_search';
-    $this->drupalPostForm(NULL, $edit, t('Add search page'));
+    $this->drupalPostForm(NULL, $edit, 'Add search page');
     $edit = [];
     $edit['label'] = $this->randomString();
     $edit['id'] = strtolower($this->randomMachineName(8));
     $edit['path'] = $first['path'];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('The search page path must be unique.');
 
     // Add a second search page.
@@ -289,7 +289,7 @@ public function testMultipleSearchPages() {
     $second['label'] = $this->randomString();
     $second_id = $second['id'] = strtolower($this->randomMachineName(8));
     $second['path'] = strtolower($this->randomMachineName(8));
-    $this->drupalPostForm(NULL, $second, t('Save'));
+    $this->drupalPostForm(NULL, $second, 'Save');
     $this->assertDefaultSearch($first_id, 'The default page matches the only search page.');
 
     // Ensure both search pages have their tabs displayed.
@@ -303,7 +303,7 @@ public function testMultipleSearchPages() {
       'entities[' . $first_id . '][weight]' => 10,
       'entities[' . $second_id . '][weight]' => -10,
     ];
-    $this->drupalPostForm('admin/config/search/pages', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/search/pages', $edit, 'Save configuration');
     $this->drupalGet('search');
     $elements = $this->xpath('//*[contains(@class, :class)]//a', [':class' => 'tabs primary']);
     $this->assertIdentical($elements[0]->getAttribute('href'), Url::fromRoute('search.view_' . $second_id)->toString());
@@ -336,7 +336,7 @@ public function testMultipleSearchPages() {
     // Test deleting.
     $this->clickLink(t('Delete'));
     $this->assertRaw(t('Are you sure you want to delete the search page %label?', ['%label' => $first['label']]));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('The search page %label has been deleted.', ['%label' => $first['label']]));
     $this->verifySearchPageOperations($first_id, FALSE, FALSE, FALSE, FALSE);
   }
diff --git a/core/modules/search/tests/src/Functional/SearchDateIntervalTest.php b/core/modules/search/tests/src/Functional/SearchDateIntervalTest.php
index 22e316bb93a4..1f2a8d08f516 100644
--- a/core/modules/search/tests/src/Functional/SearchDateIntervalTest.php
+++ b/core/modules/search/tests/src/Functional/SearchDateIntervalTest.php
@@ -82,7 +82,7 @@ protected function setUp(): void {
   public function testDateIntervalQueryAlter() {
     // Search for keyword node.
     $edit = ['keys' => 'node'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
 
     // The nodes must have the same node ID but the created date is different.
     // So only the Spanish translation must appear.
diff --git a/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php b/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php
index b36d2a53bd34..b17917127a77 100644
--- a/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php
+++ b/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php
@@ -62,9 +62,7 @@ protected function setUp(): void {
    */
   public function testEmbeddedForm() {
     // First verify we can submit the form from the module's page.
-    $this->drupalPostForm('search_embedded_form',
-      ['name' => 'John'],
-      t('Send away'));
+    $this->drupalPostForm('search_embedded_form', ['name' => 'John'], 'Send away');
     $this->assertText('Test form was submitted', 'Form message appears');
     $count = \Drupal::state()->get('search_embedded_form.submit_count');
     $this->assertEqual($this->submitCount + 1, $count, 'Form submission count is correct');
@@ -73,9 +71,7 @@ public function testEmbeddedForm() {
     // Now verify that we can see and submit the form from the search results.
     $this->drupalGet('search/node', ['query' => ['keys' => $this->node->label()]]);
     $this->assertText('Your name', 'Form is visible');
-    $this->drupalPostForm(NULL,
-      ['name' => 'John'],
-      t('Send away'));
+    $this->drupalPostForm(NULL, ['name' => 'John'], 'Send away');
     $this->assertText('Test form was submitted', 'Form message appears');
     $count = \Drupal::state()->get('search_embedded_form.submit_count');
     $this->assertEqual($this->submitCount + 1, $count, 'Form submission count is correct');
@@ -83,9 +79,7 @@ public function testEmbeddedForm() {
 
     // Now verify that if we submit the search form, it doesn't count as
     // our form being submitted.
-    $this->drupalPostForm('search',
-      ['keys' => 'foo'],
-      t('Search'));
+    $this->drupalPostForm('search', ['keys' => 'foo'], 'Search');
     $this->assertNoText('Test form was submitted', 'Form message does not appear');
     $count = \Drupal::state()->get('search_embedded_form.submit_count');
     $this->assertEqual($this->submitCount, $count, 'Form submission count is correct');
diff --git a/core/modules/search/tests/src/Functional/SearchExactTest.php b/core/modules/search/tests/src/Functional/SearchExactTest.php
index 4b7544a20772..a438f57850b0 100644
--- a/core/modules/search/tests/src/Functional/SearchExactTest.php
+++ b/core/modules/search/tests/src/Functional/SearchExactTest.php
@@ -57,7 +57,7 @@ public function testExactQuery() {
 
     // Test that the correct number of pager links are found for keyword search.
     $edit = ['keys' => 'love pizza'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertSession()->linkByHrefExists('page=1', 0, '2nd page link is found for keyword search.');
     $this->assertSession()->linkByHrefExists('page=2', 0, '3rd page link is found for keyword search.');
     $this->assertSession()->linkByHrefExists('page=3', 0, '4th page link is found for keyword search.');
@@ -65,7 +65,7 @@ public function testExactQuery() {
 
     // Test that the correct number of pager links are found for exact phrase search.
     $edit = ['keys' => '"love pizza"'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertSession()->linkByHrefExists('page=1', 0, '2nd page link is found for exact phrase search.');
     $this->assertSession()->linkByHrefNotExists('page=2', '3rd page link is not found for exact phrase search.');
 
@@ -75,7 +75,7 @@ public function testExactQuery() {
     $node_type_config->save();
 
     $edit = ['keys' => 'Druplicon'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText($user->getAccountName(), 'Basic page node displays author name when post settings are on.');
     $this->assertText($this->container->get('date.formatter')->format($node->getChangedTime(), 'short'), 'Basic page node displays post date when post settings are on.');
 
@@ -84,7 +84,7 @@ public function testExactQuery() {
     $node_type_config->set('display_submitted', FALSE);
     $node_type_config->save();
     $edit = ['keys' => 'Druplicon'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertNoText($user->getAccountName(), 'Basic page node does not display author name when post settings are off.');
     $this->assertNoText($this->container->get('date.formatter')->format($node->getChangedTime(), 'short'), 'Basic page node does not display post date when post settings are off.');
 
diff --git a/core/modules/search/tests/src/Functional/SearchLanguageTest.php b/core/modules/search/tests/src/Functional/SearchLanguageTest.php
index 37bf09ec789e..4009d45bb160 100644
--- a/core/modules/search/tests/src/Functional/SearchLanguageTest.php
+++ b/core/modules/search/tests/src/Functional/SearchLanguageTest.php
@@ -103,7 +103,7 @@ protected function setUp(): void {
   public function testLanguages() {
     // Add predefined language.
     $edit = ['predefined_langcode' => 'fr'];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $this->assertText('French', 'Language added successfully.');
 
     // Now we should have languages displayed.
@@ -143,9 +143,9 @@ public function testLanguages() {
     $edit = [
       'site_default_language' => 'fr',
     ];
-    $this->drupalPostForm($path, $edit, t('Save configuration'));
+    $this->drupalPostForm($path, $edit, 'Save configuration');
     $this->assertSession()->checkboxNotChecked('edit-site-default-language-en');
-    $this->drupalPostForm('admin/config/regional/language/delete/en', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/language/delete/en', [], 'Delete');
   }
 
 }
diff --git a/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php b/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
index b24d6334de47..1ae687bce5b8 100644
--- a/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
+++ b/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
@@ -154,7 +154,7 @@ public function testMultilingualSearch() {
 
     // Now index the rest of the nodes.
     // Make sure index throttle is high enough, via the UI.
-    $this->drupalPostForm('admin/config/search/pages', ['cron_limit' => 20], t('Save configuration'));
+    $this->drupalPostForm('admin/config/search/pages', ['cron_limit' => 20], 'Save configuration');
     $this->assertEqual(20, $this->config('search.settings')->get('index.cron_limit', 100), 'Config setting was saved correctly');
     // Get a new search plugin, to make sure it has this setting.
     $this->plugin = $this->container->get('plugin.manager.search')->createInstance('node_search');
@@ -164,8 +164,8 @@ public function testMultilingualSearch() {
     $this->assertDatabaseCounts(8, 0, 'after updating fully');
 
     // Click the reindex button on the admin page, verify counts, and reindex.
-    $this->drupalPostForm('admin/config/search/pages', [], t('Re-index site'));
-    $this->drupalPostForm(NULL, [], t('Re-index site'));
+    $this->drupalPostForm('admin/config/search/pages', [], 'Re-index site');
+    $this->drupalPostForm(NULL, [], 'Re-index site');
     $this->assertIndexCounts(8, 8, 'after reindex');
     $this->assertDatabaseCounts(8, 0, 'after reindex');
     $this->plugin->updateIndex();
diff --git a/core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php b/core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php
index 04daeb59b594..9b643ca89e39 100644
--- a/core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php
+++ b/core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php
@@ -61,39 +61,39 @@ public function testPhraseSearchPunctuation() {
     $this->refreshVariables();
 
     $edit = ['keys' => 'meklet'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertRaw('<strong>meklēt</strong>');
 
     $edit = ['keys' => 'meklēt'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertRaw('<strong>meklēt</strong>');
 
     $edit = ['keys' => 'cómmīŦŧęđ BɆĬŇĜ påŔťıçȉpǎǹţș'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertRaw('<strong>cómmīŦŧęđ</strong>');
     $this->assertRaw('<strong>BɆĬŇĜ</strong>');
     $this->assertRaw('<strong>påŔťıçȉpǎǹţș</strong>');
 
     $edit = ['keys' => 'committed being participants'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertRaw('<strong>cómmīŦŧęđ</strong>');
     $this->assertRaw('<strong>BɆĬŇĜ</strong>');
     $this->assertRaw('<strong>påŔťıçȉpǎǹţș</strong>');
 
     $edit = ['keys' => 'Enricþment'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertRaw('<strong>Enricþment</strong>');
 
     $edit = ['keys' => 'Enritchment'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertNoRaw('<strong>Enricþment</strong>');
 
     $edit = ['keys' => 'æll'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertRaw('<strong>æll</strong>');
 
     $edit = ['keys' => 'all'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertNoRaw('<strong>æll</strong>');
     // cSpell:enable
   }
diff --git a/core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php b/core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php
index d75a2e805384..98ceb351c810 100644
--- a/core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php
+++ b/core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php
@@ -60,7 +60,7 @@ public function testPhraseSearchPunctuation() {
 
     // Submit a phrase wrapped in double quotes to include the punctuation.
     $edit = ['keys' => '"bunny\'s"'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText($node->label());
 
     // Check if the author is linked correctly to the user profile page.
@@ -69,12 +69,12 @@ public function testPhraseSearchPunctuation() {
 
     // Search for "&" and verify entities are not broken up in the output.
     $edit = ['keys' => '&'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertNoRaw('<strong>&</strong>amp;');
     $this->assertText('You must include at least one keyword');
 
     $edit = ['keys' => '&amp;'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertNoRaw('<strong>&</strong>amp;');
     $this->assertText('You must include at least one keyword');
   }
diff --git a/core/modules/search/tests/src/Functional/SearchNodeUpdateAndDeletionTest.php b/core/modules/search/tests/src/Functional/SearchNodeUpdateAndDeletionTest.php
index 90eafbc35487..36dbe60693d5 100644
--- a/core/modules/search/tests/src/Functional/SearchNodeUpdateAndDeletionTest.php
+++ b/core/modules/search/tests/src/Functional/SearchNodeUpdateAndDeletionTest.php
@@ -62,7 +62,7 @@ public function testSearchIndexUpdateOnNodeChange() {
 
     // Search the node to verify it appears in search results
     $edit = ['keys' => 'knights'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText($node->label());
 
     // Update the node
@@ -74,7 +74,7 @@ public function testSearchIndexUpdateOnNodeChange() {
 
     // Search again to verify the new text appears in test results.
     $edit = ['keys' => 'shrubbery'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText($node->label());
   }
 
@@ -95,7 +95,7 @@ public function testSearchIndexUpdateOnNodeDeletion() {
 
     // Search the node to verify it appears in search results
     $edit = ['keys' => 'dragons'];
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText($node->label());
 
     // Get the node info from the search index tables.
@@ -121,7 +121,7 @@ public function testSearchIndexUpdateOnNodeDeletion() {
     $this->assertFalse($search_index_dataset, 'Node info successfully removed from search_index');
 
     // Search again to verify the node doesn't appear anymore.
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertNoText($node->label());
   }
 
diff --git a/core/modules/search/tests/src/Functional/SearchNumberMatchingTest.php b/core/modules/search/tests/src/Functional/SearchNumberMatchingTest.php
index 8b83017bb52f..781a1025ee02 100644
--- a/core/modules/search/tests/src/Functional/SearchNumberMatchingTest.php
+++ b/core/modules/search/tests/src/Functional/SearchNumberMatchingTest.php
@@ -97,9 +97,7 @@ public function testNumberSearching() {
 
       // Verify that the node title does not appear on the search page
       // with a dummy search.
-      $this->drupalPostForm('search/node',
-        ['keys' => 'foo'],
-        t('Search'));
+      $this->drupalPostForm('search/node', ['keys' => 'foo'], 'Search');
       $this->assertNoText($node->label(), new FormattableMarkup('%number: node title not shown in dummy search', ['%number' => $i]));
 
       // Now verify that we can find node i by searching for any of the
@@ -110,9 +108,7 @@ public function testNumberSearching() {
         // "not keyword" when searching.
         $number = ltrim($number, '-');
 
-        $this->drupalPostForm('search/node',
-          ['keys' => $number],
-          t('Search'));
+        $this->drupalPostForm('search/node', ['keys' => $number], 'Search');
         $this->assertText($node->label(), new FormattableMarkup('%i: node title shown (search found the node) in search for number %number', ['%i' => $i, '%number' => $number]));
       }
     }
diff --git a/core/modules/search/tests/src/Functional/SearchNumbersTest.php b/core/modules/search/tests/src/Functional/SearchNumbersTest.php
index 289510c6561e..8b958358c66a 100644
--- a/core/modules/search/tests/src/Functional/SearchNumbersTest.php
+++ b/core/modules/search/tests/src/Functional/SearchNumbersTest.php
@@ -110,16 +110,12 @@ public function testNumberSearching() {
 
       // Verify that the node title does not appear on the search page
       // with a dummy search.
-      $this->drupalPostForm('search/node',
-        ['keys' => 'foo'],
-        t('Search'));
+      $this->drupalPostForm('search/node', ['keys' => 'foo'], 'Search');
       $this->assertNoText($node->label(), $type . ': node title not shown in dummy search');
 
       // Verify that the node title does appear as a link on the search page
       // when searching for the number.
-      $this->drupalPostForm('search/node',
-        ['keys' => $number],
-        t('Search'));
+      $this->drupalPostForm('search/node', ['keys' => $number], 'Search');
       $this->assertText($node->label(), new FormattableMarkup('%type: node title shown (search found the node) in search for number %number.', ['%type' => $type, '%number' => $number]));
     }
   }
diff --git a/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php b/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php
index dc333d00558f..12f2406a85e0 100644
--- a/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php
+++ b/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php
@@ -80,7 +80,7 @@ public function testSearchText() {
     // Node search results.
     $edit = [];
     $edit['keys'] = 'bike shed';
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText('bike shed shop');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'config:search.page.node_search');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'search_index');
@@ -94,7 +94,7 @@ public function testSearchText() {
     // Updating a node should invalidate the search plugin's index cache tag.
     $this->node->title = 'bike shop';
     $this->node->save();
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText('bike shop');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'config:search.page.node_search');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'search_index');
@@ -107,7 +107,7 @@ public function testSearchText() {
 
     // Deleting a node should invalidate the search plugin's index cache tag.
     $this->node->delete();
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText('Your search yielded no results.');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'config:search.page.node_search');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'search_index');
@@ -123,7 +123,7 @@ public function testSearchText() {
 
     // User search results.
     $edit['keys'] = $this->searchingUser->getAccountName();
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'config:search.page.user_search');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'user_list');
     $this->assertSession()->responseHeaderContains('X-Drupal-Cache-Tags', 'user:2');
@@ -162,10 +162,10 @@ public function testSearchTagsBubbling() {
       'label' => 'Test label',
       'field_name' => 'test__ref',
       'new_storage_type' => 'entity_reference',
-    ], t('Save and continue'));
+    ], 'Save and continue');
 
     // Second step: 'Field settings' form.
-    $this->drupalPostForm(NULL, [], t('Save field settings'));
+    $this->drupalPostForm(NULL, [], 'Save field settings');
 
     // Create a new node of our newly created node type and fill in the entity
     // reference field.
@@ -173,7 +173,7 @@ public function testSearchTagsBubbling() {
       'title[0][value]' => 'Llama shop',
       'field_test__ref[0][target_id]' => $this->node->getTitle(),
     ];
-    $this->drupalPostForm('node/add/' . $type->id(), $edit, t('Save'));
+    $this->drupalPostForm('node/add/' . $type->id(), $edit, 'Save');
 
     // Test that the value of the entity reference field is shown.
     $this->drupalGet('node/2');
@@ -200,7 +200,7 @@ public function testSearchTagsBubbling() {
     // well.
     $edit = [];
     $edit['keys'] = 'shop';
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText('bike shed shop');
     $this->assertText('Llama shop');
     $expected_cache_tags = Cache::mergeTags($default_search_tags, [
@@ -218,7 +218,7 @@ public function testSearchTagsBubbling() {
     // because node:2 is reference in node:1 as an entity reference.
     $edit = [];
     $edit['keys'] = 'Llama';
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText('Llama shop');
     $expected_cache_tags = Cache::mergeTags($default_search_tags, [
       'node:1',
diff --git a/core/modules/search/tests/src/Functional/SearchPageTextTest.php b/core/modules/search/tests/src/Functional/SearchPageTextTest.php
index 6ad5db6d2b00..e8f0ef55d6ce 100644
--- a/core/modules/search/tests/src/Functional/SearchPageTextTest.php
+++ b/core/modules/search/tests/src/Functional/SearchPageTextTest.php
@@ -57,7 +57,7 @@ public function testSearchLabelXSS() {
     $this->drupalLogin($this->drupalCreateUser(['administer search']));
 
     $keys['label'] = '<script>alert("Don\'t Panic");</script>';
-    $this->drupalPostForm('admin/config/search/pages/manage/node_search', $keys, t('Save search page'));
+    $this->drupalPostForm('admin/config/search/pages/manage/node_search', $keys, 'Save search page');
 
     $this->drupalLogin($this->searchingUser);
     $this->drupalGet('search/node');
@@ -77,7 +77,7 @@ public function testSearchText() {
     $edit = [];
     $search_terms = 'bike shed ' . $this->randomMachineName();
     $edit['keys'] = $search_terms;
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertText('search yielded no results');
     $this->assertText('Search');
     $title_source = 'Search for @keywords | Drupal';
@@ -94,18 +94,18 @@ public function testSearchText() {
     $edit = [];
     $search_terms = 'Every word is like an unnecessary stain on silence and nothingness.';
     $edit['keys'] = $search_terms;
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertSession()->titleEquals('Search for Every word is like an unnecessary stain on silence and… | Drupal');
 
     // Search for a string with a lot of special characters.
     $search_terms = 'Hear nothing > "see nothing" `feel' . " '1982.";
     $edit['keys'] = $search_terms;
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $actual_title = $this->xpath('//title')[0]->getText();
     $this->assertEqual($actual_title, Html::decodeEntities(t($title_source, ['@keywords' => Unicode::truncate($search_terms, 60, TRUE, TRUE)])), 'Search page title is correct');
 
     $edit['keys'] = $this->searchingUser->getAccountName();
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText('Search');
     $this->assertSession()->titleEquals('Search for ' . Unicode::truncate($this->searchingUser->getAccountName(), 60, TRUE, TRUE) . ' | Drupal');
 
@@ -132,14 +132,14 @@ public function testSearchText() {
       }
     }
     $edit['keys'] = implode(' ', $keys);
-    $this->drupalPostForm('search/node', $edit, t('Search'));
+    $this->drupalPostForm('search/node', $edit, 'Search');
     $this->assertRaw(t('Your search used too many AND/OR expressions. Only the first @count terms were included in this search.', ['@count' => $limit]));
 
     // Test that a search on Node or User with no keywords entered generates
     // the "Please enter some keywords" message.
-    $this->drupalPostForm('search/node', [], t('Search'));
+    $this->drupalPostForm('search/node', [], 'Search');
     $this->assertText('Please enter some keywords', 'With no keywords entered, message is displayed on node page');
-    $this->drupalPostForm('search/user', [], t('Search'));
+    $this->drupalPostForm('search/user', [], 'Search');
     $this->assertText('Please enter some keywords', 'With no keywords entered, message is displayed on user page');
 
     // Make sure the "Please enter some keywords" message is NOT displayed if
@@ -152,21 +152,21 @@ public function testSearchText() {
     // Verify that if you search for a too-short keyword, you get the right
     // message, and that if after that you search for a longer keyword, you
     // do not still see the message.
-    $this->drupalPostForm('search/node', ['keys' => $this->randomMachineName(1)], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => $this->randomMachineName(1)], 'Search');
     $this->assertText('You must include at least one keyword', 'Keyword message is displayed when searching for short word');
     $this->assertNoText('Please enter some keywords', 'With short word entered, no keywords message is not displayed');
-    $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], t('Search'));
+    $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], 'Search');
     $this->assertNoText('You must include at least one keyword', 'Keyword message is not displayed when searching for long word after short word search');
 
     // Test that if you search for a URL with .. in it, you still end up at
     // the search page. See issue https://www.drupal.org/node/890058.
-    $this->drupalPostForm('search/node', ['keys' => '../../admin'], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => '../../admin'], 'Search');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('no results', 'Searching for ../../admin with non-admin user gives you a no search results page');
 
     // Test that if you search for a URL starting with "./", you still end up
     // at the search page. See issue https://www.drupal.org/node/1421560.
-    $this->drupalPostForm('search/node', ['keys' => '.something'], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => '.something'], 'Search');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('no results', 'Searching for .something gives you a no search results page');
   }
diff --git a/core/modules/search/tests/src/Functional/SearchQueryAlterTest.php b/core/modules/search/tests/src/Functional/SearchQueryAlterTest.php
index fa705b28aec6..74331bcf3dd3 100644
--- a/core/modules/search/tests/src/Functional/SearchQueryAlterTest.php
+++ b/core/modules/search/tests/src/Functional/SearchQueryAlterTest.php
@@ -51,7 +51,7 @@ public function testQueryAlter() {
     $this->container->get('plugin.manager.search')->createInstance('node_search')->updateIndex();
 
     // Search for the body keyword 'pizza'.
-    $this->drupalPostForm('search/node', ['keys' => 'pizza'], t('Search'));
+    $this->drupalPostForm('search/node', ['keys' => 'pizza'], 'Search');
     // The article should be there but not the page.
     $this->assertText('article', 'Article is in search results');
     $this->assertNoText('page', 'Page is not in search results');
diff --git a/core/modules/search/tests/src/Functional/SearchRankingTest.php b/core/modules/search/tests/src/Functional/SearchRankingTest.php
index e80668c1b1f2..6b8cefd5acdb 100644
--- a/core/modules/search/tests/src/Functional/SearchRankingTest.php
+++ b/core/modules/search/tests/src/Functional/SearchRankingTest.php
@@ -110,8 +110,8 @@ public function testRankings() {
     $edit['subject[0][value]'] = 'my comment title';
     $edit['comment_body[0][value]'] = 'some random comment';
     $this->drupalGet('comment/reply/node/' . $nodes['comments'][1]->id() . '/comment');
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Preview');
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Enable counting of statistics.
     $this->config('statistics.settings')->set('count_content_views', 1)->save();
@@ -141,7 +141,7 @@ public function testRankings() {
     foreach ($node_ranks as $node_rank) {
       // Enable the ranking we are testing.
       $edit['rankings[' . $node_rank . '][value]'] = 10;
-      $this->drupalPostForm('admin/config/search/pages/manage/node_search', $edit, t('Save search page'));
+      $this->drupalPostForm('admin/config/search/pages/manage/node_search', $edit, 'Save search page');
       $this->drupalGet('admin/config/search/pages/manage/node_search');
       $this->assertNotEmpty($this->xpath('//select[@id="edit-rankings-' . $node_rank . '-value"]//option[@value="10"]'), 'Select list to prioritize ' . $node_rank . ' for node ranks is visible and set to 10.');
 
@@ -158,7 +158,7 @@ public function testRankings() {
 
     // Save the final node_rank change then check that all rankings are visible
     // and have been set back to 0.
-    $this->drupalPostForm('admin/config/search/pages/manage/node_search', $edit, t('Save search page'));
+    $this->drupalPostForm('admin/config/search/pages/manage/node_search', $edit, 'Save search page');
     $this->drupalGet('admin/config/search/pages/manage/node_search');
     foreach ($node_ranks as $node_rank) {
       $this->assertNotEmpty($this->xpath('//select[@id="edit-rankings-' . $node_rank . '-value"]//option[@value="0"]'), 'Select list to prioritize ' . $node_rank . ' for node ranks is visible and set to 0.');
diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php b/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php
index 7091f58fef30..143b237b77aa 100644
--- a/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php
+++ b/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php
@@ -79,7 +79,7 @@ public function testShortcutLinkAdd() {
         'title[0][value]' => $title,
         'link[0][uri]' => $test_path,
       ];
-      $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $set->id() . '/add-link', $form_data, t('Save'));
+      $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $set->id() . '/add-link', $form_data, 'Save');
       $this->assertSession()->statusCodeEquals(200);
       $this->assertText('Added a shortcut for ' . $title . '.');
       $saved_set = ShortcutSet::load($set->id());
@@ -112,7 +112,7 @@ public function testShortcutLinkAdd() {
       'title[0][value]' => $title,
       'link[0][uri]' => '/admin',
     ];
-    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $set->id() . '/add-link', $form_data, t('Save'));
+    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $set->id() . '/add-link', $form_data, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertRaw(t("The path '@link_path' is inaccessible.", ['@link_path' => '/admin']));
 
@@ -120,7 +120,7 @@ public function testShortcutLinkAdd() {
       'title[0][value]' => $title,
       'link[0][uri]' => '/node',
     ];
-    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $set->id() . '/add-link', $form_data, t('Save'));
+    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $set->id() . '/add-link', $form_data, 'Save');
     $this->assertSession()->linkExists($title, 0, 'Shortcut link found on the page.');
 
     // Create a new shortcut set and add a link to it.
@@ -129,13 +129,13 @@ public function testShortcutLinkAdd() {
       'label' => $this->randomMachineName(),
       'id' => strtolower($this->randomMachineName()),
     ];
-    $this->drupalPostForm('admin/config/user-interface/shortcut/add-set', $edit, t('Save'));
+    $this->drupalPostForm('admin/config/user-interface/shortcut/add-set', $edit, 'Save');
     $title = $this->randomMachineName();
     $form_data = [
       'title[0][value]' => $title,
       'link[0][uri]' => '/admin',
     ];
-    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $edit['id'] . '/add-link', $form_data, t('Save'));
+    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $edit['id'] . '/add-link', $form_data, 'Save');
     $this->assertSession()->statusCodeEquals(200);
   }
 
@@ -236,7 +236,7 @@ public function testShortcutLinkRename() {
 
     $shortcuts = $set->getShortcuts();
     $shortcut = reset($shortcuts);
-    $this->drupalPostForm('admin/config/user-interface/shortcut/link/' . $shortcut->id(), ['title[0][value]' => $new_link_name], t('Save'));
+    $this->drupalPostForm('admin/config/user-interface/shortcut/link/' . $shortcut->id(), ['title[0][value]' => $new_link_name], 'Save');
     $saved_set = ShortcutSet::load($set->id());
     $titles = $this->getShortcutInformation($saved_set, 'title');
     $this->assertContains($new_link_name, $titles, 'Shortcut renamed: ' . $new_link_name);
@@ -255,7 +255,7 @@ public function testShortcutLinkChangePath() {
 
     $shortcuts = $set->getShortcuts();
     $shortcut = reset($shortcuts);
-    $this->drupalPostForm('admin/config/user-interface/shortcut/link/' . $shortcut->id(), ['title[0][value]' => $shortcut->getTitle(), 'link[0][uri]' => $new_link_path], t('Save'));
+    $this->drupalPostForm('admin/config/user-interface/shortcut/link/' . $shortcut->id(), ['title[0][value]' => $shortcut->getTitle(), 'link[0][uri]' => $new_link_path], 'Save');
     $saved_set = ShortcutSet::load($set->id());
     $paths = $this->getShortcutInformation($saved_set, 'link');
     $this->assertContains('internal:' . $new_link_path, $paths, 'Shortcut path changed: ' . $new_link_path);
diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php b/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php
index 7524a8fe77cb..40d9f747aa7a 100644
--- a/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php
+++ b/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php
@@ -42,7 +42,7 @@ public function testShortcutSetAdd() {
       'label' => $this->randomMachineName(),
       'id' => strtolower($this->randomMachineName()),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $new_set = $this->container->get('entity_type.manager')->getStorage('shortcut_set')->load($edit['id']);
     $this->assertIdentical($new_set->id(), $edit['id'], 'Successfully created a shortcut set.');
     $this->drupalGet('user/' . $this->adminUser->id() . '/shortcuts');
@@ -93,7 +93,7 @@ public function testShortcutSetEdit() {
       $weight--;
     }
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('The shortcut set has been updated.'));
 
     \Drupal::entityTypeManager()->getStorage('shortcut')->resetCache();
@@ -110,7 +110,7 @@ public function testShortcutSetSwitchOwn() {
 
     // Attempt to switch the default shortcut set to the newly created shortcut
     // set.
-    $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', ['set' => $new_set->id()], t('Change set'));
+    $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', ['set' => $new_set->id()], 'Change set');
     $this->assertSession()->statusCodeEquals(200);
     $current_set = shortcut_current_displayed_set($this->adminUser);
     $this->assertTrue($new_set->id() == $current_set->id(), 'Successfully switched own shortcut set.');
@@ -136,7 +136,7 @@ public function testShortcutSetSwitchCreate() {
       'id' => strtolower($this->randomMachineName()),
       'label' => $this->randomString(),
     ];
-    $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set'));
+    $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, 'Change set');
     $current_set = shortcut_current_displayed_set($this->adminUser);
     $this->assertNotEqual($current_set->id(), $this->set->id(), 'A shortcut set can be switched to at the same time as it is created.');
     $this->assertEqual($current_set->label(), $edit['label'], 'The new set is correctly assigned to the user.');
@@ -147,7 +147,7 @@ public function testShortcutSetSwitchCreate() {
    */
   public function testShortcutSetSwitchNoSetName() {
     $edit = ['set' => 'new'];
-    $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set'));
+    $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, 'Change set');
     $this->assertText('The new set label is required.');
     $current_set = shortcut_current_displayed_set($this->adminUser);
     $this->assertEqual($current_set->id(), $this->set->id(), 'Attempting to switch to a new shortcut set without providing a set name does not succeed.');
@@ -164,7 +164,7 @@ public function testShortcutSetRename() {
     $new_label = $this->randomMachineName();
     $this->drupalGet('admin/config/user-interface/shortcut');
     $this->clickLink(t('Edit shortcut set'));
-    $this->drupalPostForm(NULL, ['label' => $new_label], t('Save'));
+    $this->drupalPostForm(NULL, ['label' => $new_label], 'Save');
     $set = ShortcutSet::load($set->id());
     $this->assertTrue($set->label() == $new_label, 'Shortcut set has been successfully renamed.');
   }
@@ -189,7 +189,7 @@ public function testShortcutSetUnassign() {
   public function testShortcutSetDelete() {
     $new_set = $this->generateShortcutSet($this->randomMachineName());
 
-    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $new_set->id() . '/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $new_set->id() . '/delete', [], 'Delete');
     $sets = ShortcutSet::loadMultiple();
     $this->assertFalse(isset($sets[$new_set->id()]), 'Successfully deleted a shortcut set.');
   }
diff --git a/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php b/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
index a1705280e08c..59c7437ba75c 100644
--- a/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
+++ b/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
@@ -77,7 +77,7 @@ public function testStatisticsSettings() {
 
     // Enable counter on content view.
     $edit['statistics_count_content_views'] = 1;
-    $this->drupalPostForm('admin/config/system/statistics', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/statistics', $edit, 'Save configuration');
     $config = $this->config('statistics.settings');
     $this->assertNotEmpty($config->get('count_content_views'), 'Count content view log is enabled.');
 
diff --git a/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php b/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php
index f0f660e9e2a6..227df1ee39b8 100644
--- a/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php
+++ b/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php
@@ -78,8 +78,8 @@ protected function setUp(): void {
       'label' => $this->randomMachineName(16),
       'direction' => 'ltr',
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $this->language, t('Add custom language'));
-    $this->drupalPostForm('admin/config/regional/language/detection', ['language_interface[enabled][language-url]' => 1], t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/add', $this->language, 'Add custom language');
+    $this->drupalPostForm('admin/config/regional/language/detection', ['language_interface[enabled][language-url]' => 1], 'Save settings');
     $this->drupalLogout();
 
     // Enable access logging.
diff --git a/core/modules/syslog/tests/src/Functional/SyslogTest.php b/core/modules/syslog/tests/src/Functional/SyslogTest.php
index 1b7964cac3d2..bce03f48a227 100644
--- a/core/modules/syslog/tests/src/Functional/SyslogTest.php
+++ b/core/modules/syslog/tests/src/Functional/SyslogTest.php
@@ -32,7 +32,7 @@ public function testSettings() {
 
     // If we're on Windows, there is no configuration form.
     if (defined('LOG_LOCAL6')) {
-      $this->drupalPostForm('admin/config/development/logging', ['syslog_facility' => LOG_LOCAL6], t('Save configuration'));
+      $this->drupalPostForm('admin/config/development/logging', ['syslog_facility' => LOG_LOCAL6], 'Save configuration');
       $this->assertText('The configuration options have been saved.');
 
       $this->drupalGet('admin/config/development/logging');
diff --git a/core/modules/system/tests/src/Functional/Bootstrap/DrupalMessengerServiceTest.php b/core/modules/system/tests/src/Functional/Bootstrap/DrupalMessengerServiceTest.php
index 4a9eb59d2190..193680b97f9a 100644
--- a/core/modules/system/tests/src/Functional/Bootstrap/DrupalMessengerServiceTest.php
+++ b/core/modules/system/tests/src/Functional/Bootstrap/DrupalMessengerServiceTest.php
@@ -55,7 +55,7 @@ public function testDrupalMessengerService() {
     $this->drupalLogin($this->rootUser);
     $edit = [];
     $edit["modules[help][enable]"] = TRUE;
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $assert->pageTextContains('Help has been enabled');
     $assert->pageTextContains('system_test_preinstall_module called');
   }
diff --git a/core/modules/system/tests/src/Functional/Common/FormatDateTest.php b/core/modules/system/tests/src/Functional/Common/FormatDateTest.php
index 6a5b66957112..3edc01f7db26 100644
--- a/core/modules/system/tests/src/Functional/Common/FormatDateTest.php
+++ b/core/modules/system/tests/src/Functional/Common/FormatDateTest.php
@@ -31,7 +31,7 @@ public function testAdminDefinedFormatDate() {
       'label' => 'Example Style',
       'date_format_pattern' => 'j M y',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
 
     // Add a second date format with a different case than the first.
     $edit = [
@@ -39,7 +39,7 @@ public function testAdminDefinedFormatDate() {
       'label' => 'Example Style Uppercase',
       'date_format_pattern' => 'j M Y',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     $this->assertText('Custom date format added.');
 
     /** @var \Drupal\Core\Datetime\DateFormatterInterface $date_formatter */
diff --git a/core/modules/system/tests/src/Functional/Condition/ConditionFormTest.php b/core/modules/system/tests/src/Functional/Condition/ConditionFormTest.php
index 25c38796140c..5c1c0a8ec094 100644
--- a/core/modules/system/tests/src/Functional/Condition/ConditionFormTest.php
+++ b/core/modules/system/tests/src/Functional/Condition/ConditionFormTest.php
@@ -39,7 +39,7 @@ public function testConfigForm() {
     $this->drupalGet('condition_test');
     $this->assertSession()->fieldExists('bundles[article]');
     $this->assertSession()->fieldExists('bundles[page]');
-    $this->drupalPostForm(NULL, ['bundles[page]' => 'page', 'bundles[article]' => 'article'], t('Submit'));
+    $this->drupalPostForm(NULL, ['bundles[page]' => 'page', 'bundles[article]' => 'article'], 'Submit');
     // @see \Drupal\condition_test\FormController::submitForm()
     $this->assertText('Bundle: page');
     $this->assertText('Bundle: article');
diff --git a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
index 7e5440f7514e..6d40ad9141bd 100644
--- a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
+++ b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
@@ -90,7 +90,7 @@ public function testDateTimezone() {
 
     // Set up the user with a different timezone than the site.
     $edit = ['mail' => $test_user->getEmail(), 'timezone' => 'Asia/Manila'];
-    $this->drupalPostForm('user/' . $test_user->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('user/' . $test_user->id() . '/edit', $edit, 'Save');
 
     // Reload the user and reset the timezone in AccountProxy::setAccount().
     \Drupal::entityTypeManager()->getStorage('user')->resetCache();
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php b/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php
index e9396616655e..0703e010736e 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php
@@ -75,7 +75,7 @@ public function testAddPageWithBundleEntities() {
     $this->clickLink('Test2 label');
     $this->drupalGet('/entity_test_with_bundle/add/test2');
 
-    $this->drupalPostForm(NULL, ['name[0][value]' => 'test name'], t('Save'));
+    $this->drupalPostForm(NULL, ['name[0][value]' => 'test name'], 'Save');
     $entity = EntityTestWithBundle::load(1);
     $this->assertEqual('test name', $entity->label());
 
@@ -147,7 +147,7 @@ public function testAddPageWithoutBundleEntities() {
     $this->clickLink('Test2 label');
     $this->drupalGet('/entity_test_mul/add/test2');
 
-    $this->drupalPostForm(NULL, ['name[0][value]' => 'test name'], t('Save'));
+    $this->drupalPostForm(NULL, ['name[0][value]' => 'test name'], 'Save');
     $entity = EntityTestMul::load(1);
     $this->assertEqual('test name', $entity->label());
   }
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php b/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php
index 320944b67aaf..4d448526ca86 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php
@@ -83,12 +83,12 @@ protected function doTestFormCRUD($entity_type) {
       'field_test_text[0][value]' => $this->randomMachineName(16),
     ];
 
-    $this->drupalPostForm($entity_type . '/add', $edit, t('Save'));
+    $this->drupalPostForm($entity_type . '/add', $edit, 'Save');
     $entity = $this->loadEntityByName($entity_type, $name1);
     $this->assertNotNull($entity, new FormattableMarkup('%entity_type: Entity found in the database.', ['%entity_type' => $entity_type]));
 
     $edit['name[0][value]'] = $name2;
-    $this->drupalPostForm($entity_type . '/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm($entity_type . '/manage/' . $entity->id() . '/edit', $edit, 'Save');
     $entity = $this->loadEntityByName($entity_type, $name1);
     $this->assertNull($entity, new FormattableMarkup('%entity_type: The entity has been modified.', ['%entity_type' => $entity_type]));
     $entity = $this->loadEntityByName($entity_type, $name2);
@@ -97,7 +97,7 @@ protected function doTestFormCRUD($entity_type) {
 
     $this->drupalGet($entity_type . '/manage/' . $entity->id() . '/edit');
     $this->clickLink(t('Delete'));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $entity = $this->loadEntityByName($entity_type, $name2);
     $this->assertNull($entity, new FormattableMarkup('%entity_type: Entity not found in the database.', ['%entity_type' => $entity_type]));
   }
@@ -118,7 +118,7 @@ protected function doTestMultilingualFormCRUD($entity_type_id) {
       'field_test_text[0][value]' => $this->randomMachineName(16),
     ];
 
-    $this->drupalPostForm($entity_type_id . '/add', $edit, t('Save'));
+    $this->drupalPostForm($entity_type_id . '/add', $edit, 'Save');
     $entity = $this->loadEntityByName($entity_type_id, $name1);
     $this->assertNotNull($entity, new FormattableMarkup('%entity_type: Entity found in the database.', ['%entity_type' => $entity_type_id]));
 
@@ -129,14 +129,14 @@ protected function doTestMultilingualFormCRUD($entity_type_id) {
     $this->assertEqual($translated_entity->name->value, $name1_ro, new FormattableMarkup('%entity_type: The translation has been added.', ['%entity_type' => $entity_type_id]));
 
     $edit['name[0][value]'] = $name2_ro;
-    $this->drupalPostForm('ro/' . $entity_type_id . '/manage/' . $entity->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('ro/' . $entity_type_id . '/manage/' . $entity->id() . '/edit', $edit, 'Save');
     $translated_entity = $this->loadEntityByName($entity_type_id, $name1)->getTranslation('ro');
     $this->assertNotNull($translated_entity, new FormattableMarkup('%entity_type: Modified translation found in the database.', ['%entity_type' => $entity_type_id]));
     $this->assertEqual($translated_entity->name->value, $name2_ro, new FormattableMarkup('%entity_type: The name of the translation has been modified.', ['%entity_type' => $entity_type_id]));
 
     $this->drupalGet('ro/' . $entity_type_id . '/manage/' . $entity->id() . '/edit');
     $this->clickLink(t('Delete'));
-    $this->drupalPostForm(NULL, [], t('Delete Romanian translation'));
+    $this->drupalPostForm(NULL, [], 'Delete Romanian translation');
     $entity = $this->loadEntityByName($entity_type_id, $name1);
     $this->assertNotNull($entity, new FormattableMarkup('%entity_type: The original entity still exists.', ['%entity_type' => $entity_type_id]));
     $this->assertFalse($entity->hasTranslation('ro'), new FormattableMarkup('%entity_type: Entity translation does not exist anymore.', ['%entity_type' => $entity_type_id]));
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php b/core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php
index 7b124210c630..d8bdbf61b692 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php
@@ -65,7 +65,7 @@ public function testEntityFormLanguage() {
     $edit['body[0][value]'] = $this->randomMachineName(16);
     $this->drupalGet('node/add/page');
     $form_langcode = \Drupal::state()->get('entity_test.form_langcode');
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
@@ -86,7 +86,7 @@ public function testEntityFormLanguage() {
     // Enable language selector.
     $this->drupalGet('admin/structure/types/manage/page');
     $edit = ['language_configuration[language_alterable]' => TRUE, 'language_configuration[langcode]' => LanguageInterface::LANGCODE_NOT_SPECIFIED];
-    $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/page', $edit, 'Save content type');
     $this->assertRaw(t('The content type %type has been updated.', ['%type' => 'Basic page']));
 
     // Create a node with language.
@@ -95,7 +95,7 @@ public function testEntityFormLanguage() {
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
     $edit['langcode[0][value]'] = $langcode;
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
     $this->assertText('Basic page ' . $edit['title[0][value]'] . ' has been created.', 'Basic page created.');
 
     // Verify that the creation message contains a link to a node.
diff --git a/core/modules/system/tests/src/Functional/File/ConfigTest.php b/core/modules/system/tests/src/Functional/File/ConfigTest.php
index cd4dd986b7c2..5dbf4b908a4a 100644
--- a/core/modules/system/tests/src/Functional/File/ConfigTest.php
+++ b/core/modules/system/tests/src/Functional/File/ConfigTest.php
@@ -40,7 +40,7 @@ public function testFileConfigurationPage() {
     $this->assertText('Public local files served by the webserver.');
     $this->assertText('Private local files served by Drupal.');
 
-    $this->drupalPostForm(NULL, $fields, t('Save configuration'));
+    $this->drupalPostForm(NULL, $fields, 'Save configuration');
     $this->assertText('The configuration options have been saved.');
     foreach ($fields as $field => $value) {
       $this->assertSession()->fieldValueEquals($field, $value);
diff --git a/core/modules/system/tests/src/Functional/Form/ArbitraryRebuildTest.php b/core/modules/system/tests/src/Functional/Form/ArbitraryRebuildTest.php
index 71d889391bd9..1dde537c517d 100644
--- a/core/modules/system/tests/src/Functional/Form/ArbitraryRebuildTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ArbitraryRebuildTest.php
@@ -73,7 +73,7 @@ public function testUserRegistrationMultipleField() {
       'name' => 'foo',
       'mail' => 'bar@example.com',
     ];
-    $this->drupalPostForm('user/register', $edit, t('Add another item'));
+    $this->drupalPostForm('user/register', $edit, 'Add another item');
     $this->assertText('Test a multiple valued field', 'Form has been rebuilt.');
     $this->assertSession()->fieldValueEquals('name', 'foo');
     $this->assertSession()->fieldValueEquals('mail', 'bar@example.com');
diff --git a/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php b/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php
index 2f561fa77f57..0b4d7eaf0188 100644
--- a/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php
@@ -38,12 +38,12 @@ public function testConfirmForm() {
     $this->assertSession()->addressEquals('form-test/autocomplete');
 
     // Test submitting the form.
-    $this->drupalPostForm('form-test/confirm-form', [], t('ConfirmFormTestForm::getConfirmText().'));
+    $this->drupalPostForm('form-test/confirm-form', [], 'ConfirmFormTestForm::getConfirmText().');
     $this->assertText('The ConfirmFormTestForm::submitForm() method was used for this form.');
     $this->assertSession()->addressEquals('');
 
     // Test submitting the form with a destination.
-    $this->drupalPostForm('form-test/confirm-form', [], t('ConfirmFormTestForm::getConfirmText().'), ['query' => ['destination' => 'admin/config']]);
+    $this->drupalPostForm('form-test/confirm-form', [], 'ConfirmFormTestForm::getConfirmText().', ['query' => ['destination' => 'admin/config']]);
     $this->assertSession()->addressEquals('admin/config');
 
     // Test cancelling the form with a complex destination.
diff --git a/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php b/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php
index 99712dd3a0b0..f0b7a9ff22c2 100644
--- a/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php
@@ -27,7 +27,7 @@ class ElementsAccessTest extends BrowserTestBase {
    * Ensures that child values are still processed when #access = FALSE.
    */
   public function testAccessFalse() {
-    $this->drupalPostForm('form_test/vertical-tabs-access', [], t('Submit'));
+    $this->drupalPostForm('form_test/vertical-tabs-access', [], 'Submit');
     $this->assertNoText('This checkbox inside a vertical tab does not have its default value.');
     $this->assertNoText('This textfield inside a vertical tab does not have its default value.');
     $this->assertNoText('This checkbox inside a fieldset does not have its default value.');
diff --git a/core/modules/system/tests/src/Functional/Form/ElementsVerticalTabsTest.php b/core/modules/system/tests/src/Functional/Form/ElementsVerticalTabsTest.php
index b64e0121c25c..0459ff049aaf 100644
--- a/core/modules/system/tests/src/Functional/Form/ElementsVerticalTabsTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ElementsVerticalTabsTest.php
@@ -97,7 +97,7 @@ public function testDefaultTab() {
    * Ensures that vertical tab form values are cleaned.
    */
   public function testDefaultTabCleaned() {
-    $values = Json::decode($this->drupalPostForm('form_test/form-state-values-clean', [], t('Submit')));
+    $values = Json::decode($this->drupalPostForm('form_test/form-state-values-clean', [], 'Submit'));
     $this->assertFalse(isset($values['vertical_tabs__active_tab']), new FormattableMarkup('%element was removed.', ['%element' => 'vertical_tabs__active_tab']));
   }
 
diff --git a/core/modules/system/tests/src/Functional/Form/FormObjectTest.php b/core/modules/system/tests/src/Functional/Form/FormObjectTest.php
index 2e5d27a68b41..c39cb8894097 100644
--- a/core/modules/system/tests/src/Functional/Form/FormObjectTest.php
+++ b/core/modules/system/tests/src/Functional/Form/FormObjectTest.php
@@ -35,7 +35,7 @@ public function testObjectFormCallback() {
     $this->assertText('The FormTestObject::buildForm() method was used for this form.');
     $elements = $this->xpath('//form[@id="form-test-form-test-object"]');
     $this->assertTrue(!empty($elements), 'The correct form ID was used.');
-    $this->drupalPostForm(NULL, ['bananas' => 'green'], t('Save'));
+    $this->drupalPostForm(NULL, ['bananas' => 'green'], 'Save');
     $this->assertText('The FormTestObject::validateForm() method was used for this form.');
     $this->assertText('The FormTestObject::submitForm() method was used for this form.');
     $value = $config_factory->get('form_test.object')->get('bananas');
@@ -45,7 +45,7 @@ public function testObjectFormCallback() {
     $this->assertText('The FormTestArgumentsObject::buildForm() method was used for this form.');
     $elements = $this->xpath('//form[@id="form-test-form-test-arguments-object"]');
     $this->assertTrue(!empty($elements), 'The correct form ID was used.');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertText('The FormTestArgumentsObject::validateForm() method was used for this form.');
     $this->assertText('The FormTestArgumentsObject::submitForm() method was used for this form.');
     $value = $config_factory->get('form_test.object')->get('bananas');
@@ -55,7 +55,7 @@ public function testObjectFormCallback() {
     $this->assertText('The FormTestServiceObject::buildForm() method was used for this form.');
     $elements = $this->xpath('//form[@id="form-test-form-test-service-object"]');
     $this->assertTrue(!empty($elements), 'The correct form ID was used.');
-    $this->drupalPostForm(NULL, ['bananas' => 'brown'], t('Save'));
+    $this->drupalPostForm(NULL, ['bananas' => 'brown'], 'Save');
     $this->assertText('The FormTestServiceObject::validateForm() method was used for this form.');
     $this->assertText('The FormTestServiceObject::submitForm() method was used for this form.');
     $value = $config_factory->get('form_test.object')->get('bananas');
@@ -68,7 +68,7 @@ public function testObjectFormCallback() {
     $this->assertTrue(!empty($elements), 'The correct form ID was used.');
     $this->assertText('custom_value', 'Ensure parameters are injected from request attributes.');
     $this->assertText('request_value', 'Ensure the request object is injected.');
-    $this->drupalPostForm(NULL, ['bananas' => 'black'], t('Save'));
+    $this->drupalPostForm(NULL, ['bananas' => 'black'], 'Save');
     $this->assertText('The FormTestControllerObject::validateForm() method was used for this form.');
     $this->assertText('The FormTestControllerObject::submitForm() method was used for this form.');
     $value = $config_factory->get('form_test.object')->get('bananas');
diff --git a/core/modules/system/tests/src/Functional/Form/FormTest.php b/core/modules/system/tests/src/Functional/Form/FormTest.php
index b0b515668cbf..2d580024f24e 100644
--- a/core/modules/system/tests/src/Functional/Form/FormTest.php
+++ b/core/modules/system/tests/src/Functional/Form/FormTest.php
@@ -380,11 +380,11 @@ public function testRequiredTextfieldNoTitle() {
   public function testCheckboxProcessing() {
     // First, try to submit without the required checkbox.
     $edit = [];
-    $this->drupalPostForm('form-test/checkbox', $edit, t('Submit'));
+    $this->drupalPostForm('form-test/checkbox', $edit, 'Submit');
     $this->assertRaw(t('@name field is required.', ['@name' => 'required_checkbox']));
 
     // Now try to submit the form correctly.
-    $this->drupalPostForm(NULL, ['required_checkbox' => 1], t('Submit'));
+    $this->drupalPostForm(NULL, ['required_checkbox' => 1], 'Submit');
     $values = Json::decode($this->getSession()->getPage()->getContent());
     $expected_values = [
       'disabled_checkbox_on' => 'disabled_checkbox_on',
@@ -753,7 +753,7 @@ public function testDisabledElements() {
 
     // Submit the form with no input, as the browser does for disabled elements,
     // and fetch the $form_state->getValues() that is passed to the submit handler.
-    $this->drupalPostForm('form-test/disabled-elements', [], t('Submit'));
+    $this->drupalPostForm('form-test/disabled-elements', [], 'Submit');
     $returned_values['normal'] = Json::decode($this->getSession()->getPage()->getContent());
 
     // Do the same with input, as could happen if JavaScript un-disables an
@@ -780,7 +780,7 @@ public function testDisabledElements() {
       ->elementExists('css', 'input[name="hidden"]')
       ->setValue($edit['hidden']);
     unset($edit['hidden']);
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $returned_values['hijacked'] = Json::decode($this->getSession()->getPage()->getContent());
 
     // Ensure that the returned values match the form's default values in both
@@ -890,7 +890,7 @@ public function testInputForgery() {
     // The value for checkboxes[two] was changed using post render to simulate
     // an input forgery.
     // @see \Drupal\form_test\Form\FormTestInputForgeryForm::postRender
-    $this->drupalPostForm(NULL, ['checkboxes[one]' => TRUE, 'checkboxes[two]' => TRUE], t('Submit'));
+    $this->drupalPostForm(NULL, ['checkboxes[one]' => TRUE, 'checkboxes[two]' => TRUE], 'Submit');
     $this->assertText('An illegal choice has been detected.', 'Input forgery was detected.');
   }
 
diff --git a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
index 4f5cac94011e..4bf6cfa28822 100644
--- a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
+++ b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
@@ -88,7 +88,7 @@ public function testHiddenLanguageSelectElement() {
     // Check that the submitted values were the default values of the language
     // field elements.
     $edit = [];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $values = Json::decode($this->getSession()->getPage()->getContent());
     $this->assertEqual($values['languages_all'], 'xx');
     $this->assertEqual($values['languages_configurable'], 'en');
diff --git a/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php b/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php
index fb94dd163503..8ef186356fef 100644
--- a/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php
@@ -142,7 +142,7 @@ public function testInstalledIncompatibleModule() {
     file_put_contents($file_path, Yaml::encode($compatible_info));
     $edit = ['modules[changing_module][enable]' => 'changing_module'];
     $this->drupalGet('admin/modules');
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertText('Module Module that changes has been enabled.');
 
     $incompatible_updates = [
@@ -166,8 +166,8 @@ public function testInstalledIncompatibleModule() {
     // Uninstall the module and ensure that incompatible modules message is not
     // displayed for modules that are not installed.
     $edit = ['uninstall[changing_module]' => 'changing_module'];
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.');
     foreach ($incompatible_updates as $incompatible_update) {
       $incompatible_info = $info + $incompatible_update;
diff --git a/core/modules/system/tests/src/Functional/Form/RedirectTest.php b/core/modules/system/tests/src/Functional/Form/RedirectTest.php
index bb013c2a3905..9fac149824e7 100644
--- a/core/modules/system/tests/src/Functional/Form/RedirectTest.php
+++ b/core/modules/system/tests/src/Functional/Form/RedirectTest.php
@@ -37,14 +37,14 @@ public function testRedirect() {
       'redirection' => TRUE,
       'destination' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm($path, $edit, t('Submit'));
+    $this->drupalPostForm($path, $edit, 'Submit');
     $this->assertSession()->addressEquals($edit['destination']);
 
     // Test without redirection.
     $edit = [
       'redirection' => FALSE,
     ];
-    $this->drupalPostForm($path, $edit, t('Submit'));
+    $this->drupalPostForm($path, $edit, 'Submit');
     $this->assertSession()->addressEquals($path);
 
     // Test redirection with query parameters.
@@ -52,14 +52,14 @@ public function testRedirect() {
       'redirection' => TRUE,
       'destination' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm($path, $edit, t('Submit'), $options);
+    $this->drupalPostForm($path, $edit, 'Submit', $options);
     $this->assertSession()->addressEquals($edit['destination']);
 
     // Test without redirection but with query parameters.
     $edit = [
       'redirection' => FALSE,
     ];
-    $this->drupalPostForm($path, $edit, t('Submit'), $options);
+    $this->drupalPostForm($path, $edit, 'Submit', $options);
     // When redirect is set to FALSE, there should be no redirection, and the
     // query parameters should be passed along.
     $this->assertSession()->addressEquals($path . '?foo=bar');
@@ -69,7 +69,7 @@ public function testRedirect() {
       'redirection' => TRUE,
       'destination' => '',
     ];
-    $this->drupalPostForm($path, $edit, t('Submit'));
+    $this->drupalPostForm($path, $edit, 'Submit');
     $this->assertSession()->addressEquals($path);
 
     // Test redirection back to the original path with query parameters.
@@ -77,7 +77,7 @@ public function testRedirect() {
       'redirection' => TRUE,
       'destination' => '',
     ];
-    $this->drupalPostForm($path, $edit, t('Submit'), $options);
+    $this->drupalPostForm($path, $edit, 'Submit', $options);
     // When using an empty redirection string, there should be no redirection,
     // and the query parameters should be passed along.
     $this->assertSession()->addressEquals($path . '?foo=bar');
@@ -99,7 +99,7 @@ public function testRedirectFromErrorPages() {
     $expected = Url::fromRoute('form_test.route1', [], ['query' => ['test1' => 'test2'], 'absolute' => TRUE])->toString();
     $this->drupalGet('foo');
     $this->assertSession()->statusCodeEquals(404);
-    $this->drupalPostForm(NULL, [], t('Submit'));
+    $this->drupalPostForm(NULL, [], 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->addressEquals($expected);
 
@@ -107,7 +107,7 @@ public function testRedirectFromErrorPages() {
     // ends up at the right URL.
     $this->drupalGet('admin/structure/block');
     $this->assertSession()->statusCodeEquals(403);
-    $this->drupalPostForm(NULL, [], t('Submit'));
+    $this->drupalPostForm(NULL, [], 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->addressEquals($expected);
   }
diff --git a/core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php b/core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php
index 486e3b877ffe..1719cc8e0cb0 100644
--- a/core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php
+++ b/core/modules/system/tests/src/Functional/Form/StateValuesCleanAdvancedTest.php
@@ -53,7 +53,7 @@ public function testFormStateValuesCleanAdvanced() {
     $edit = ['files[image]' => \Drupal::service('file_system')->realpath($this->image->uri)];
 
     // Post the form.
-    $this->drupalPostForm('form_test/form-state-values-clean-advanced', $edit, t('Submit'));
+    $this->drupalPostForm('form_test/form-state-values-clean-advanced', $edit, 'Submit');
 
     // Expecting a 200 HTTP code.
     $this->assertSession()->statusCodeEquals(200);
diff --git a/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php b/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
index 917ae1af90c7..52960d027f1a 100644
--- a/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
+++ b/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
@@ -30,7 +30,7 @@ class StateValuesCleanTest extends BrowserTestBase {
    * Tests \Drupal\Core\Form\FormState::cleanValues().
    */
   public function testFormStateValuesClean() {
-    $this->drupalPostForm('form_test/form-state-values-clean', [], t('Submit'));
+    $this->drupalPostForm('form_test/form-state-values-clean', [], 'Submit');
     $values = Json::decode($this->getSession()->getPage()->getContent());
 
     // Setup the expected result.
diff --git a/core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php b/core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php
index 1e98fd759eab..4253e1c60686 100644
--- a/core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php
+++ b/core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php
@@ -30,7 +30,7 @@ public function testSystemConfigForm() {
     $this->drupalGet('form-test/system-config-form');
     $element = $this->xpath('//div[@id = :id]/input[contains(@class, :class)]', [':id' => 'edit-actions', ':class' => 'button--primary']);
     $this->assertNotEmpty($element, 'The primary action submit button was found.');
-    $this->drupalPostForm(NULL, [], t('Save configuration'));
+    $this->drupalPostForm(NULL, [], 'Save configuration');
     $this->assertText('The configuration options have been saved.');
   }
 
diff --git a/core/modules/system/tests/src/Functional/Form/ValidationTest.php b/core/modules/system/tests/src/Functional/Form/ValidationTest.php
index 8213726e9d27..0b579ae2875f 100644
--- a/core/modules/system/tests/src/Functional/Form/ValidationTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ValidationTest.php
@@ -119,29 +119,29 @@ public function testValidateLimitErrors() {
     // #limit_validation_errors) and ensure that the title field is not
     // validated, but the #element_validate handler for the 'test' field
     // is triggered.
-    $this->drupalPostForm($path, $edit, t('Partial validate'));
+    $this->drupalPostForm($path, $edit, 'Partial validate');
     $this->assertNoText('Title field is required.');
     $this->assertText('Test element is invalid');
 
     // Edge case of #limit_validation_errors containing numeric indexes: same
     // thing with the 'Partial validate (numeric index)' button and the
     // 'test_numeric_index' field.
-    $this->drupalPostForm($path, $edit, t('Partial validate (numeric index)'));
+    $this->drupalPostForm($path, $edit, 'Partial validate (numeric index)');
     $this->assertNoText('Title field is required.');
     $this->assertText('Test (numeric index) element is invalid');
 
     // Ensure something like 'foobar' isn't considered "inside" 'foo'.
-    $this->drupalPostForm($path, $edit, t('Partial validate (substring)'));
+    $this->drupalPostForm($path, $edit, 'Partial validate (substring)');
     $this->assertNoText('Title field is required.');
     $this->assertText('Test (substring) foo element is invalid');
 
     // Ensure not validated values are not available to submit handlers.
-    $this->drupalPostForm($path, ['title' => '', 'test' => 'valid'], t('Partial validate'));
+    $this->drupalPostForm($path, ['title' => '', 'test' => 'valid'], 'Partial validate');
     $this->assertText('Only validated values appear in the form values.');
 
     // Now test full form validation and ensure that the #element_validate
     // handler is still triggered.
-    $this->drupalPostForm($path, $edit, t('Full validate'));
+    $this->drupalPostForm($path, $edit, 'Full validate');
     $this->assertText('Title field is required.');
     $this->assertText('Test element is invalid');
   }
diff --git a/core/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php b/core/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php
index c2d49e2916cd..e6d43183c136 100644
--- a/core/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php
+++ b/core/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php
@@ -206,14 +206,14 @@ public function testBreadCrumbs() {
       'title[0][value]' => 'Root',
       'link[0][uri]' => '/node',
     ];
-    $this->drupalPostForm("admin/structure/menu/manage/$menu/add", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/manage/$menu/add", $edit, 'Save');
     $menu_links = \Drupal::entityTypeManager()->getStorage('menu_link_content')->loadByProperties(['title' => 'Root']);
     $link = reset($menu_links);
 
     $edit = [
       'menu[menu_parent]' => $link->getMenuName() . ':' . $link->getPluginId(),
     ];
-    $this->drupalPostForm('node/' . $parent->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $parent->id() . '/edit', $edit, 'Save');
     $expected = [
       "node" => $link->getTitle(),
     ];
@@ -234,7 +234,7 @@ public function testBreadCrumbs() {
     $edit = [
       'field_tags[target_id]' => implode(',', array_keys($tags)),
     ];
-    $this->drupalPostForm('node/' . $parent->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $parent->id() . '/edit', $edit, 'Save');
 
     // Put both terms into a hierarchy Drupal » Breadcrumbs. Required for both
     // the menu links and the terms itself, since taxonomy_term_page() resets
@@ -248,7 +248,7 @@ public function testBreadCrumbs() {
         $edit = [
           'parent[]' => [$parent_tid],
         ];
-        $this->drupalPostForm("taxonomy/term/{$term->id()}/edit", $edit, t('Save'));
+        $this->drupalPostForm("taxonomy/term/{$term->id()}/edit", $edit, 'Save');
       }
       $parent_tid = $term->id();
     }
@@ -261,7 +261,7 @@ public function testBreadCrumbs() {
         'menu_parent' => "$menu:{$parent_mlid}",
         'enabled[value]' => 1,
       ];
-      $this->drupalPostForm("admin/structure/menu/manage/$menu/add", $edit, t('Save'));
+      $this->drupalPostForm("admin/structure/menu/manage/$menu/add", $edit, 'Save');
       $menu_links = \Drupal::entityTypeManager()->getStorage('menu_link_content')->loadByProperties([
         'title' => $edit['title[0][value]'],
         'link.uri' => 'internal:/taxonomy/term/' . $term->id(),
diff --git a/core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php b/core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php
index c22247b63fa3..c0b3a34d6860 100644
--- a/core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php
+++ b/core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php
@@ -92,7 +92,7 @@ public function testMultipleModules() {
       "modules[module_install_class_loader_test1][enable]" => TRUE,
       "modules[module_install_class_loader_test2][enable]" => TRUE,
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->rebuildContainer();
     $this->assertTrue(\Drupal::moduleHandler()->moduleExists('module_install_class_loader_test2'), 'The module_install_class_loader_test2 module has been installed.');
   }
@@ -106,7 +106,7 @@ public function testAutoloadFromModuleFile() {
     $edit = [
       "modules[module_autoload_test][enable]" => TRUE,
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertSession()->statusCodeEquals(200);
     $this->resetAll();
     $this->assertSame(SomeClass::TEST, MODULE_AUTOLOAD_TEST_CONSTANT);
diff --git a/core/modules/system/tests/src/Functional/Module/DependencyTest.php b/core/modules/system/tests/src/Functional/Module/DependencyTest.php
index 34a3e260946e..19fcee94919f 100644
--- a/core/modules/system/tests/src/Functional/Module/DependencyTest.php
+++ b/core/modules/system/tests/src/Functional/Module/DependencyTest.php
@@ -23,12 +23,12 @@ public function testProjectNamespaceForDependencies() {
     $edit = [
       'modules[filter][enable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     // Enable module with project namespace to ensure nothing breaks.
     $edit = [
       'modules[system_project_namespace_test][enable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertModules(['system_project_namespace_test'], TRUE);
   }
 
@@ -39,7 +39,7 @@ public function testEnableWithoutDependency() {
     // Attempt to enable Content Translation without Language enabled.
     $edit = [];
     $edit['modules[content_translation][enable]'] = 'content_translation';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertText('Some required modules must be enabled', 'Dependency required.');
 
     $this->assertModules(['content_translation', 'language'], FALSE);
@@ -47,7 +47,7 @@ public function testEnableWithoutDependency() {
     // Assert that the language tables weren't enabled.
     $this->assertTableCount('language', FALSE);
 
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm(NULL, [], 'Continue');
     $this->assertText('2 modules have been enabled: Content Translation, Language.', 'Modules status has been updated.');
     $this->assertModules(['content_translation', 'language'], TRUE);
 
@@ -125,7 +125,7 @@ public function testCoreCompatibility() {
     // Ensure the modules can actually be installed.
     $edit['modules[common_test][enable]'] = 'common_test';
     $edit['modules[system_core_semver_test][enable]'] = 'system_core_semver_test';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertModules(['common_test', 'system_core_semver_test'], TRUE);
   }
 
@@ -142,7 +142,7 @@ public function testEnableRequirementsFailureDependency() {
     $edit = [];
     $edit['modules[requirements1_test][enable]'] = 'requirements1_test';
     $edit['modules[requirements2_test][enable]'] = 'requirements2_test';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // Makes sure the modules were NOT installed.
     $this->assertText('Requirements 1 Test failed requirements', 'Modules status has been updated.');
@@ -173,7 +173,7 @@ public function testModuleEnableOrder() {
     // is correct.
     $edit = [];
     $edit['modules[color][enable]'] = 'color';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertModules(['color'], FALSE);
     // Note that dependencies are sorted alphabetically in the confirmation
     // message.
@@ -181,7 +181,7 @@ public function testModuleEnableOrder() {
 
     $edit['modules[config][enable]'] = 'config';
     $edit['modules[help][enable]'] = 'help';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertModules(['color', 'config', 'help'], TRUE);
 
     // Check the actual order which is saved by module_test_modules_enabled().
@@ -195,8 +195,8 @@ public function testModuleEnableOrder() {
   public function testUninstallDependents() {
     // Enable the forum module.
     $edit = ['modules[forum][enable]' => 'forum'];
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
-    $this->drupalPostForm(NULL, [], t('Continue'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
+    $this->drupalPostForm(NULL, [], 'Continue');
     $this->assertModules(['forum'], TRUE);
 
     // Check that the comment module cannot be uninstalled.
@@ -216,14 +216,14 @@ public function testUninstallDependents() {
     // Uninstall the forum module, and check that taxonomy now can also be
     // uninstalled.
     $edit = ['uninstall[forum]' => 'forum'];
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.', 'Modules status has been updated.');
 
     // Uninstall comment module.
     $edit = ['uninstall[comment]' => 'comment'];
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.', 'Modules status has been updated.');
   }
 
diff --git a/core/modules/system/tests/src/Functional/Module/ExperimentalModuleTest.php b/core/modules/system/tests/src/Functional/Module/ExperimentalModuleTest.php
index 1adf98eb39f2..8d99da9249e4 100644
--- a/core/modules/system/tests/src/Functional/Module/ExperimentalModuleTest.php
+++ b/core/modules/system/tests/src/Functional/Module/ExperimentalModuleTest.php
@@ -45,7 +45,7 @@ public function testExperimentalConfirmForm() {
     // There should be no confirmation form and no experimental module warning.
     $edit = [];
     $edit["modules[test_page_test][enable]"] = TRUE;
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertText('Module Test page has been enabled.');
     $this->assertNoText('Experimental modules are provided for testing purposes only.');
 
diff --git a/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php b/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php
index 9089c03e1441..fdb26fa266f7 100644
--- a/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php
+++ b/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php
@@ -23,7 +23,7 @@ public function testHookRequirementsFailure() {
     // Attempt to install the requirements1_test module.
     $edit = [];
     $edit['modules[requirements1_test][enable]'] = 'requirements1_test';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // Makes sure the module was NOT installed.
     $this->assertText('Requirements 1 Test failed requirements', 'Modules status has been updated.');
diff --git a/core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php b/core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php
index 37e4dfd1b1ff..94310ca0e4c2 100644
--- a/core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php
+++ b/core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php
@@ -72,7 +72,7 @@ public function testInstallUninstall() {
     $this->assertModuleNotInstalled('help');
     $edit = [];
     $edit["modules[help][enable]"] = TRUE;
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertText('has been enabled', 'Modules status has been updated.');
     $this->assertText('hook_modules_installed fired for help');
     $this->assertModuleSuccessfullyInstalled('help');
@@ -105,7 +105,7 @@ public function testInstallUninstall() {
       $edit = [];
       $package = $module->info['package'];
       $edit['modules[' . $name . '][enable]'] = TRUE;
-      $this->drupalPostForm('admin/modules', $edit, t('Install'));
+      $this->drupalPostForm('admin/modules', $edit, 'Install');
 
       // Handle experimental modules, which require a confirmation screen.
       if ($package == 'Core (Experimental)') {
@@ -116,7 +116,7 @@ public function testInstallUninstall() {
           // indicating they need to be enabled.
           $this->assertText('You must enable');
         }
-        $this->drupalPostForm(NULL, [], t('Continue'));
+        $this->drupalPostForm(NULL, [], 'Continue');
       }
       // Handle the case where modules were installed along with this one and
       // where we therefore hit a confirmation screen.
@@ -125,7 +125,7 @@ public function testInstallUninstall() {
         // about enabling dependencies appears.
         $this->assertText('Some required modules must be enabled');
         $this->assertText('You must enable');
-        $this->drupalPostForm(NULL, [], t('Continue'));
+        $this->drupalPostForm(NULL, [], 'Continue');
       }
 
       // List the module display names to check the confirmation message.
@@ -215,12 +215,12 @@ public function testInstallUninstall() {
         $experimental = TRUE;
       }
     }
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
 
     // If there are experimental modules, click the confirm form.
     if ($experimental) {
       $this->assertText('Are you sure you wish to enable experimental modules?');
-      $this->drupalPostForm(NULL, [], t('Continue'));
+      $this->drupalPostForm(NULL, [], 'Continue');
     }
     $this->assertText(count($all_modules) . ' modules have been enabled: ', 'Modules status has been updated.');
   }
@@ -260,8 +260,8 @@ protected function assertModuleSuccessfullyInstalled($name) {
   protected function assertSuccessfulUninstall($module, $package = 'Core') {
     $edit = [];
     $edit['uninstall[' . $module . ']'] = TRUE;
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.', 'Modules status has been updated.');
     $this->assertModules([$module], FALSE);
 
diff --git a/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php b/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php
index 5ee85c847b27..49bde3ccf8c6 100644
--- a/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php
+++ b/core/modules/system/tests/src/Functional/Module/PrepareUninstallTest.php
@@ -85,7 +85,7 @@ public function testUninstall() {
     $this->assertText("And $term_count more taxonomy terms.");
     $this->assertText('This action cannot be undone.');
     $this->assertText('Make a backup of your database if you want to be able to restore these items.');
-    $this->drupalPostForm(NULL, [], t('Delete all taxonomy terms'));
+    $this->drupalPostForm(NULL, [], 'Delete all taxonomy terms');
 
     // Check that we are redirected to the uninstall page and data has been
     // removed.
@@ -98,8 +98,8 @@ public function testUninstall() {
     $this->assertSession()->linkByHrefNotExists('admin/modules/uninstall/entity/taxonomy_term');
 
     // Uninstall the Taxonomy module.
-    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[taxonomy]' => TRUE], t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[taxonomy]' => TRUE], 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.');
     $this->assertNoText('Enables the categorization of content.');
 
@@ -134,7 +134,7 @@ public function testUninstall() {
     // the first 10's labels.
     $this->assertText('And 2 more content items.');
 
-    $this->drupalPostForm(NULL, [], t('Delete all content items'));
+    $this->drupalPostForm(NULL, [], 'Delete all content items');
 
     // Check we are redirected to the uninstall page and data has been removed.
     $this->assertSession()->addressEquals('admin/modules/uninstall');
@@ -146,8 +146,8 @@ public function testUninstall() {
     $this->assertSession()->linkByHrefNotExists('admin/modules/uninstall/entity/node');
 
     // Uninstall Node module.
-    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[node]' => TRUE], t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', ['uninstall[node]' => TRUE], 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.');
     $this->assertNoText('Allows content to be submitted to the site and displayed on pages.');
 
diff --git a/core/modules/system/tests/src/Functional/Module/UninstallTest.php b/core/modules/system/tests/src/Functional/Module/UninstallTest.php
index 464b74a84940..1401197f4891 100644
--- a/core/modules/system/tests/src/Functional/Module/UninstallTest.php
+++ b/core/modules/system/tests/src/Functional/Module/UninstallTest.php
@@ -85,11 +85,11 @@ public function testUninstallPage() {
     // Uninstall module_test.
     $edit = [];
     $edit['uninstall[module_test]'] = TRUE;
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
     $this->assertNoText('Configuration deletions', 'No configuration deletions listed on the module install confirmation page.');
     $this->assertText('Configuration updates', 'Configuration updates listed on the module install confirmation page.');
     $this->assertText($node_type->label());
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.', 'Modules status has been updated.');
 
     // Uninstall node testing that the configuration that will be deleted is
@@ -97,7 +97,7 @@ public function testUninstallPage() {
     $node_dependencies = \Drupal::service('config.manager')->findConfigEntityDependentsAsEntities('module', ['node']);
     $edit = [];
     $edit['uninstall[node]'] = TRUE;
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
     $this->assertText('Configuration deletions', 'Configuration deletions listed on the module install confirmation page.');
     $this->assertNoText('Configuration updates', 'No configuration updates listed on the module install confirmation page.');
 
@@ -121,7 +121,7 @@ public function testUninstallPage() {
     $cached = \Drupal::cache()->get('uninstall_test');
     $this->assertEqual($cached->data, 'test_uninstall_page', new FormattableMarkup('Cache entry found: @bin', ['@bin' => $cached->data]));
 
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.', 'Modules status has been updated.');
     // Check that the page does not have double escaped HTML tags.
     $this->assertNoRaw('&lt;label');
@@ -141,7 +141,7 @@ public function testUninstallPage() {
 
     // Make sure the correct error is shown when no modules are selected.
     $edit = [];
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
     $this->assertText('No modules selected.', 'No module is selected to uninstall');
   }
 
@@ -166,8 +166,8 @@ public function testFailedInstallStatus() {
     $this->drupalGet('admin/modules/uninstall');
     $this->assertText('Module installer config test');
     $edit['uninstall[module_installer_config_test]'] = TRUE;
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.');
     $this->assertNoText('Module installer config test');
   }
diff --git a/core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php b/core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php
index 78166c6a13ac..692e7ae663b5 100644
--- a/core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php
+++ b/core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php
@@ -136,7 +136,7 @@ public function testBasicAuthNoSession() {
     $this->drupalGet($cookie_url);
     $this->assertEmpty($this->getSessionCookies());
     $edit = ['name' => $this->user->getAccountName(), 'pass' => $this->user->passRaw];
-    $this->drupalPostForm($cookie_url, $edit, t('Log in'));
+    $this->drupalPostForm($cookie_url, $edit, 'Log in');
     $this->assertNotEmpty($this->getSessionCookies());
   }
 
diff --git a/core/modules/system/tests/src/Functional/Session/SessionTest.php b/core/modules/system/tests/src/Functional/Session/SessionTest.php
index d0e6ccaa016e..bf5710ddaaf1 100644
--- a/core/modules/system/tests/src/Functional/Session/SessionTest.php
+++ b/core/modules/system/tests/src/Functional/Session/SessionTest.php
@@ -70,7 +70,7 @@ public function testSessionSaveRegenerate() {
       'name' => $user->getAccountName(),
       'pass' => $user->passRaw,
     ];
-    $this->drupalPostForm('user/login', $edit, t('Log in'));
+    $this->drupalPostForm('user/login', $edit, 'Log in');
     $this->drupalGet('user');
     $pass = $this->assertText($user->getAccountName(), new FormattableMarkup('Found name: %name', ['%name' => $user->getAccountName()]), 'User login');
     $this->_logged_in = $pass;
diff --git a/core/modules/system/tests/src/Functional/System/AccessDeniedTest.php b/core/modules/system/tests/src/Functional/System/AccessDeniedTest.php
index 4b7f8b332cfb..c4d286007ed5 100644
--- a/core/modules/system/tests/src/Functional/System/AccessDeniedTest.php
+++ b/core/modules/system/tests/src/Functional/System/AccessDeniedTest.php
@@ -70,14 +70,14 @@ public function testAccessDenied() {
     $edit = [
       'site_403' => 'user/' . $this->adminUser->id(),
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
     $this->assertRaw(new FormattableMarkup("The path '%path' has to start with a slash.", ['%path' => $edit['site_403']]));
 
     // Use a custom 403 page.
     $edit = [
       'site_403' => '/user/' . $this->adminUser->id(),
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
 
     // Enable the user login block.
     $block = $this->drupalPlaceBlock('user_login_block', ['id' => 'login']);
@@ -93,7 +93,7 @@ public function testAccessDenied() {
     $edit = [
       'site_403' => '',
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
 
     // Logout and check that the user login block is shown on default 403 pages.
     $this->drupalLogout();
@@ -113,7 +113,7 @@ public function testAccessDenied() {
       'name' => $this->adminUser->getAccountName(),
       'pass' => $this->adminUser->pass_raw,
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Log in'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Log in');
 
     // Check that we're still on the same page.
     $this->assertText('Basic site settings');
diff --git a/core/modules/system/tests/src/Functional/System/CronRunTest.php b/core/modules/system/tests/src/Functional/System/CronRunTest.php
index 29b24686ecb5..5c9e6f0cb866 100644
--- a/core/modules/system/tests/src/Functional/System/CronRunTest.php
+++ b/core/modules/system/tests/src/Functional/System/CronRunTest.php
@@ -81,7 +81,7 @@ public function testAutomatedCron() {
     $this->assertTrue($cron_last < \Drupal::state()->get('system.cron_last'), 'Cron runs when the cron interval is passed.');
 
     // Disable cron through the interface by setting the interval to zero.
-    $this->drupalPostForm('admin/config/system/cron', ['interval' => 0], t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/cron', ['interval' => 0], 'Save configuration');
     $this->assertText('The configuration options have been saved.');
     $this->drupalLogout();
 
diff --git a/core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php b/core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php
index 7e1ad91f5788..c7b0ac9afc1b 100644
--- a/core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php
+++ b/core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php
@@ -37,7 +37,7 @@ public function testDateFormatsMachineNameAllowedValues() {
       'id' => 'something.bad',
       'date_format_pattern' => 'Y-m-d',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     $this->assertText('The machine-readable name must be unique, and can only contain lowercase letters, numbers, and underscores. Additionally, it can not be the reserved word "custom".', 'It is not possible to create a date format with the machine name that has any character other than lowercase letters, digits or underscore.');
 
     // Try to create a date format with the reserved machine name "custom".
@@ -46,7 +46,7 @@ public function testDateFormatsMachineNameAllowedValues() {
       'id' => 'custom',
       'date_format_pattern' => 'Y-m-d',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     $this->assertText('The machine-readable name must be unique, and can only contain lowercase letters, numbers, and underscores. Additionally, it can not be the reserved word "custom".', 'It is not possible to create a date format with the machine name "custom".');
 
     // Try to create a date format with a machine name, "fallback", that
@@ -56,7 +56,7 @@ public function testDateFormatsMachineNameAllowedValues() {
       'id' => 'fallback',
       'date_format_pattern' => 'j/m/Y',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     $this->assertText('The machine-readable name is already in use. It must be unique.', 'It is not possible to create a date format with the machine name "fallback". It is a built-in format that already exists.');
 
     // Create a date format with a machine name distinct from the previous two.
@@ -66,7 +66,7 @@ public function testDateFormatsMachineNameAllowedValues() {
       'id' => $id,
       'date_format_pattern' => 'd/m/Y',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     $this->assertText('Custom date format added.', 'It is possible to create a date format with a new machine name.');
 
     // Try to create a date format with same machine name as the previous one.
@@ -75,7 +75,7 @@ public function testDateFormatsMachineNameAllowedValues() {
       'id' => $id,
       'date_format_pattern' => 'd-m-Y',
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     $this->assertText('The machine-readable name is already in use. It must be unique.', 'It is not possible to create a new date format with an existing machine name.');
   }
 
diff --git a/core/modules/system/tests/src/Functional/System/DateTimeTest.php b/core/modules/system/tests/src/Functional/System/DateTimeTest.php
index 98832d20f904..92d316fdb773 100644
--- a/core/modules/system/tests/src/Functional/System/DateTimeTest.php
+++ b/core/modules/system/tests/src/Functional/System/DateTimeTest.php
@@ -103,7 +103,7 @@ public function testDateFormatConfiguration() {
       'label' => $name,
       'date_format_pattern' => $date_format,
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     // Verify that the user is redirected to the correct page.
     $this->assertSession()->addressEquals(Url::fromRoute('entity.date_format.collection'));
     $this->assertText('Custom date format added.', 'Date format added confirmation message appears.');
@@ -113,7 +113,7 @@ public function testDateFormatConfiguration() {
     // Edit the custom date format and re-save without editing the format.
     $this->drupalGet('admin/config/regional/date-time');
     $this->clickLink(t('Edit'));
-    $this->drupalPostForm(NULL, [], t('Save format'));
+    $this->drupalPostForm(NULL, [], 'Save format');
     // Verify that the user is redirected to the correct page.
     $this->assertSession()->addressEquals(Url::fromRoute('entity.date_format.collection'));
     $this->assertText('Custom date format updated.', 'Custom date format successfully updated.');
@@ -124,14 +124,14 @@ public function testDateFormatConfiguration() {
     $edit = [
       'date_format_pattern' => 'Y m',
     ];
-    $this->drupalPostForm($this->getUrl(), $edit, t('Save format'));
+    $this->drupalPostForm($this->getUrl(), $edit, 'Save format');
     // Verify that the user is redirected to the correct page.
     $this->assertSession()->addressEquals(Url::fromRoute('entity.date_format.collection'));
     $this->assertText('Custom date format updated.', 'Custom date format successfully updated.');
 
     // Delete custom date format.
     $this->clickLink(t('Delete'));
-    $this->drupalPostForm('admin/config/regional/date-time/formats/manage/' . $date_format_id . '/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/manage/' . $date_format_id . '/delete', [], 'Delete');
     // Verify that the user is redirected to the correct page.
     $this->assertSession()->addressEquals(Url::fromRoute('entity.date_format.collection'));
     $this->assertRaw(t('The date format %format has been deleted.', ['%format' => $name]));
@@ -149,7 +149,7 @@ public function testDateFormatConfiguration() {
       'label' => $name,
       'date_format_pattern' => $date_format,
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     // Verify that the user is redirected to the correct page.
     $this->assertSession()->addressEquals(Url::fromRoute('entity.date_format.collection'));
     $this->assertText('Custom date format added.', 'Date format added confirmation message appears.');
@@ -176,7 +176,7 @@ public function testDateFormatConfiguration() {
       'label' => $name,
       'date_format_pattern' => $date_format,
     ];
-    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, t('Add format'));
+    $this->drupalPostForm('admin/config/regional/date-time/formats/add', $edit, 'Add format');
     // Verify that the user is redirected to the correct page.
     $this->assertSession()->addressEquals(Url::fromRoute('entity.date_format.collection'));
     $this->assertText('Custom date format added.', 'Date format added confirmation message appears.');
@@ -200,7 +200,7 @@ public function testEnteringDateTimeViaSelectors() {
       'label' => 'dt',
       'field_name' => 'dt',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page_with_date/fields/add-field', $edit, t('Save and continue'));
+    $this->drupalPostForm('admin/structure/types/manage/page_with_date/fields/add-field', $edit, 'Save and continue');
     $this->assertText('These settings apply to the', 'New datetime field created, now configuring');
 
     $this->drupalGet('admin/structure/types/manage/page_with_date/fields/node.page_with_date.field_dt/storage');
@@ -209,7 +209,7 @@ public function testEnteringDateTimeViaSelectors() {
       'cardinality' => 'number',
       'cardinality_number' => '1',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page_with_date/fields/node.page_with_date.field_dt/storage', $edit, t('Save field settings'));
+    $this->drupalPostForm('admin/structure/types/manage/page_with_date/fields/node.page_with_date.field_dt/storage', $edit, 'Save field settings');
 
     $this->drupalGet('admin/structure/types/manage/page_with_date/fields');
     $this->assertText('field_dt', 'New field is in place');
@@ -219,7 +219,7 @@ public function testEnteringDateTimeViaSelectors() {
       'fields[field_dt][type]' => 'datetime_datelist',
       'fields[field_dt][region]' => 'content',
     ];
-    $this->drupalPostForm('admin/structure/types/manage/page_with_date/form-display', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/types/manage/page_with_date/form-display', $edit, 'Save');
     $this->drupalLogout();
 
     // Now log in as a regular editor.
@@ -236,11 +236,11 @@ public function testEnteringDateTimeViaSelectors() {
       'field_dt[0][value][hour]' => '1',
       'field_dt[0][value][minute]' => '30',
     ];
-    $this->drupalPostForm('node/add/page_with_date', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page_with_date', $edit, 'Save');
     $this->assertText('Selected combination of day and month is not valid.', 'Incorrect date failed validation');
 
     $edit['field_dt[0][value][day]'] = '29';
-    $this->drupalPostForm('node/add/page_with_date', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page_with_date', $edit, 'Save');
     $this->assertNoText('Selected combination of day and month is not valid.', 'Correct date passed validation.');
 
     $this->drupalGet('node/1');
diff --git a/core/modules/system/tests/src/Functional/System/FrontPageTest.php b/core/modules/system/tests/src/Functional/System/FrontPageTest.php
index 9261eab3b9ea..0c46b9bd2cd3 100644
--- a/core/modules/system/tests/src/Functional/System/FrontPageTest.php
+++ b/core/modules/system/tests/src/Functional/System/FrontPageTest.php
@@ -69,17 +69,17 @@ public function testDrupalFrontPage() {
 
     // Change the front page to an invalid path.
     $edit = ['site_frontpage' => '/kittens'];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
     $this->assertText("Either the path '" . $edit['site_frontpage'] . "' is invalid or you do not have access to it.");
 
     // Change the front page to a path without a starting slash.
     $edit = ['site_frontpage' => $this->nodePath];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
     $this->assertRaw(new FormattableMarkup("The path '%path' has to start with a slash.", ['%path' => $edit['site_frontpage']]));
 
     // Change the front page to a valid path.
     $edit['site_frontpage'] = '/' . $this->nodePath;
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved.', 'The front page path has been saved.');
 
     $this->drupalGet('');
diff --git a/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php b/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php
index ca2dcf9cf2b2..ea71e4caaca1 100644
--- a/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php
+++ b/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php
@@ -48,8 +48,8 @@ public function testMainContentFallback() {
     $edit = [];
     // Uninstall the block module.
     $edit['uninstall[block]'] = 'block';
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->assertText('The selected modules have been uninstalled.', 'Modules status has been updated.');
     $this->rebuildContainer();
     $this->assertFalse(\Drupal::moduleHandler()->moduleExists('block'), 'Block module uninstall.');
@@ -70,7 +70,7 @@ public function testMainContentFallback() {
     $this->drupalLogin($this->adminUser);
     $edit = [];
     $edit['modules[block][enable]'] = 'block';
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->assertText('Module Block has been enabled.', 'Modules status has been updated.');
     $this->rebuildContainer();
     $this->assertTrue(\Drupal::moduleHandler()->moduleExists('block'), 'Block module re-enabled.');
diff --git a/core/modules/system/tests/src/Functional/System/PageNotFoundTest.php b/core/modules/system/tests/src/Functional/System/PageNotFoundTest.php
index e1b4fbf3dad4..9a3f60b7286a 100644
--- a/core/modules/system/tests/src/Functional/System/PageNotFoundTest.php
+++ b/core/modules/system/tests/src/Functional/System/PageNotFoundTest.php
@@ -54,14 +54,14 @@ public function testPageNotFound() {
     $edit = [
       'site_404' => 'user/' . $this->adminUser->id(),
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
     $this->assertRaw(new FormattableMarkup("The path '%path' has to start with a slash.", ['%path' => $edit['site_404']]));
 
     // Use a custom 404 page.
     $edit = [
       'site_404' => '/user/' . $this->adminUser->id(),
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
 
     $this->drupalGet($this->randomMachineName(10));
     $this->assertText($this->adminUser->getAccountName(), 'Found the custom 404 page');
diff --git a/core/modules/system/tests/src/Functional/System/PageTitleTest.php b/core/modules/system/tests/src/Functional/System/PageTitleTest.php
index 2d66ac8705b3..2a642af217c0 100644
--- a/core/modules/system/tests/src/Functional/System/PageTitleTest.php
+++ b/core/modules/system/tests/src/Functional/System/PageTitleTest.php
@@ -60,7 +60,7 @@ public function testTitleTags() {
       'body[0][value]' => '!SimpleTest! test body' . $this->randomMachineName(200),
     ];
     // Create the node with HTML in the title.
-    $this->drupalPostForm('node/add/page', $edit, t('Save'));
+    $this->drupalPostForm('node/add/page', $edit, 'Save');
 
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $this->assertNotNull($node, 'Node created and found in database');
@@ -85,7 +85,7 @@ public function testTitleXSS() {
       'site_name'    => $title,
       'site_slogan'  => $slogan,
     ];
-    $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
 
     // Place branding block with site name and slogan into header region.
     $this->drupalPlaceBlock('system_branding_block', ['region' => 'header']);
diff --git a/core/modules/system/tests/src/Functional/System/SiteMaintenanceTest.php b/core/modules/system/tests/src/Functional/System/SiteMaintenanceTest.php
index 27eb51a6dbba..b61ec16ca8c6 100644
--- a/core/modules/system/tests/src/Functional/System/SiteMaintenanceTest.php
+++ b/core/modules/system/tests/src/Functional/System/SiteMaintenanceTest.php
@@ -69,7 +69,7 @@ public function testSiteMaintenance() {
     $edit = [
       'maintenance_mode' => 1,
     ];
-    $this->drupalPostForm('admin/config/development/maintenance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/development/maintenance', $edit, 'Save configuration');
 
     $admin_message = t('Operating in maintenance mode. <a href=":url">Go online.</a>', [':url' => Url::fromRoute('system.site_maintenance_mode')->toString()]);
     $user_message = 'Operating in maintenance mode.';
@@ -105,7 +105,7 @@ public function testSiteMaintenance() {
       'name' => $this->user->getAccountName(),
       'pass' => $this->user->pass_raw,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Log in'));
+    $this->drupalPostForm(NULL, $edit, 'Log in');
     $this->assertText($user_message);
 
     // Log in administrative user and configure a custom site offline message.
@@ -118,7 +118,7 @@ public function testSiteMaintenance() {
     $edit = [
       'maintenance_mode_message' => $offline_message,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    $this->drupalPostForm(NULL, $edit, 'Save configuration');
 
     // Logout and verify that custom site offline message is displayed.
     $this->drupalLogout();
@@ -134,13 +134,13 @@ public function testSiteMaintenance() {
     $edit = [
       'name' => $this->user->getAccountName(),
     ];
-    $this->drupalPostForm('user/password', $edit, t('Submit'));
+    $this->drupalPostForm('user/password', $edit, 'Submit');
     $mails = $this->drupalGetMails();
     $start = strpos($mails[0]['body'], 'user/reset/' . $this->user->id());
     $path = substr($mails[0]['body'], $start, 66 + strlen($this->user->id()));
 
     // Log in with temporary login link.
-    $this->drupalPostForm($path, [], t('Log in'));
+    $this->drupalPostForm($path, [], 'Log in');
     $this->assertText($user_message);
 
     // Regression test to check if title displays in Bartik on maintenance page.
diff --git a/core/modules/system/tests/src/Functional/System/ThemeTest.php b/core/modules/system/tests/src/Functional/System/ThemeTest.php
index 9c6b9ea3812f..bcd0e0f56873 100644
--- a/core/modules/system/tests/src/Functional/System/ThemeTest.php
+++ b/core/modules/system/tests/src/Functional/System/ThemeTest.php
@@ -107,7 +107,7 @@ public function testThemeSettings() {
         'default_logo' => FALSE,
         'logo_path' => $input,
       ];
-      $this->drupalPostForm('admin/appearance/settings', $edit, t('Save configuration'));
+      $this->drupalPostForm('admin/appearance/settings', $edit, 'Save configuration');
       $this->assertNoText('The custom logo path is invalid.');
       $this->assertSession()->fieldValueEquals('logo_path', $expected['form']);
 
@@ -179,7 +179,7 @@ public function testThemeSettings() {
         'default_logo' => FALSE,
         'logo_path' => $path,
       ];
-      $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+      $this->drupalPostForm(NULL, $edit, 'Save configuration');
       $this->assertText('The custom logo path is invalid.');
     }
 
@@ -189,7 +189,7 @@ public function testThemeSettings() {
       'logo_path' => '',
       'files[logo_upload]' => \Drupal::service('file_system')->realpath($file->uri),
     ];
-    $this->drupalPostForm('admin/appearance/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance/settings', $edit, 'Save configuration');
 
     $uploaded_filename = 'public://' . $this->getSession()->getPage()->findField('logo_path')->getValue();
 
@@ -244,7 +244,7 @@ public function testThemeSettingsLogo() {
       'default_logo' => FALSE,
       'logo_path' => 'core/misc/druplicon.png',
     ];
-    $this->drupalPostForm('admin/appearance/settings/bartik', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance/settings/bartik', $edit, 'Save configuration');
     $this->assertSession()->fieldValueEquals('default_logo', FALSE);
     $this->assertSession()->fieldValueEquals('logo_path', 'core/misc/druplicon.png');
 
@@ -272,7 +272,7 @@ public function testThemeSettingsRenderCacheClear() {
     $this->drupalLogin($this->adminUser);
     // Save Bartik's theme settings which should invalidate the 'rendered' cache
     // tag in \Drupal\system\EventSubscriber\ConfigCacheTag.
-    $this->drupalPostForm('admin/appearance/settings/bartik', [], t('Save configuration'));
+    $this->drupalPostForm('admin/appearance/settings/bartik', [], 'Save configuration');
     $this->drupalLogout();
     $this->drupalGet('');
     $this->assertSession()->responseHeaderEquals('X-Drupal-Cache', 'MISS');
@@ -289,7 +289,7 @@ public function testAdministrationTheme() {
       'admin_theme' => 'seven',
       'use_admin_theme' => TRUE,
     ];
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
 
     // Check that the administration theme is used on an administration page.
     $this->drupalGet('admin/config');
@@ -311,7 +311,7 @@ public function testAdministrationTheme() {
     $edit = [
       'use_admin_theme' => FALSE,
     ];
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
 
     // Check that the administration theme is used on an administration page.
     $this->drupalGet('admin/config');
@@ -335,7 +335,7 @@ public function testAdministrationTheme() {
       'admin_theme' => '',
       'use_admin_theme' => FALSE,
     ];
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
 
     // Check that the site default theme used on administration page.
     $this->drupalGet('admin');
@@ -409,7 +409,7 @@ public function testUninstallingThemes() {
       'admin_theme' => 'seven',
       'use_admin_theme' => TRUE,
     ];
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
     $this->drupalGet('admin/appearance');
     $this->clickLink(t('Set as default'));
 
@@ -428,7 +428,7 @@ public function testUninstallingThemes() {
       'admin_theme' => 'stark',
       'use_admin_theme' => TRUE,
     ];
-    $this->drupalPostForm('admin/appearance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance', $edit, 'Save configuration');
 
     // Check that seven can be uninstalled now.
     $this->assertRaw('Uninstall Seven theme');
@@ -495,7 +495,7 @@ public function testThemeSettingsNoLogoNoFavicon() {
     // Visit this theme's settings page.
     $this->drupalGet('admin/appearance/settings/test_theme_settings_features');
     $edit = [];
-    $this->drupalPostForm('admin/appearance/settings/test_theme_settings_features', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/appearance/settings/test_theme_settings_features', $edit, 'Save configuration');
     $this->assertText('The configuration options have been saved.');
   }
 
diff --git a/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php b/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
index 63686aaebd86..5d85ab704bfc 100644
--- a/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
@@ -209,7 +209,7 @@ protected function installLanguages() {
         ];
 
         // Install the language in Drupal.
-        $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+        $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
         $this->assertRaw('"edit-languages-' . $langcode . '-weight"');
 
         // Import the custom .po contents for the language.
@@ -220,7 +220,7 @@ protected function installLanguages() {
           'langcode' => $langcode,
           'customized' => TRUE,
         ];
-        $this->drupalPostForm('admin/config/regional/translate/import', $options, t('Import'));
+        $this->drupalPostForm('admin/config/regional/translate/import', $options, 'Import');
         $file_system->unlink($filename);
       }
     }
diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
index 3efbaa57bc3f..835a3110b152 100644
--- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
+++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
@@ -486,7 +486,7 @@ protected function enableExtension($extension_type, $extension_machine_name, $ex
       $edit = [
         "modules[$extension_machine_name][enable]" => $extension_machine_name,
       ];
-      $this->drupalPostForm('admin/modules', $edit, t('Install'));
+      $this->drupalPostForm('admin/modules', $edit, 'Install');
     }
     elseif ($extension_type === 'theme') {
       $this->drupalGet('admin/appearance');
diff --git a/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php b/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php
index 16d277aa37d8..1f75d5de3a88 100644
--- a/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php
@@ -70,7 +70,7 @@ public function testTaxonomyEarlyDateNode() {
     $edit['created[0][value][time]'] = $date->format('H:i:s');
     $edit['body[0][value]'] = $this->randomMachineName();
     $edit['field_tags[target_id]'] = $this->randomMachineName();
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     // Checks that the node has been saved.
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $this->assertEqual($node->getCreatedTime(), $date->getTimestamp(), 'Legacy node was saved with the right date.');
diff --git a/core/modules/taxonomy/tests/src/Functional/RssTest.php b/core/modules/taxonomy/tests/src/Functional/RssTest.php
index 0a09eded4047..a11b81f3c944 100644
--- a/core/modules/taxonomy/tests/src/Functional/RssTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/RssTest.php
@@ -88,7 +88,7 @@ public function testTaxonomyRss() {
     $edit = [
       "display_modes_custom[rss]" => '1',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Change the format to 'RSS category'.
     $this->drupalGet("admin/structure/types/manage/article/display/rss");
@@ -96,13 +96,13 @@ public function testTaxonomyRss() {
       "fields[taxonomy_" . $this->vocabulary->id() . "][type]" => 'entity_reference_rss_category',
       "fields[taxonomy_" . $this->vocabulary->id() . "][region]" => 'content',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Post an article.
     $edit = [];
     $edit['title[0][value]'] = $this->randomMachineName();
     $edit[$this->fieldName . '[]'] = $term1->id();
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
 
     // Check that the term is displayed when the RSS feed is viewed.
     $this->drupalGet('rss.xml');
diff --git a/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php b/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php
index 83bbf9b44428..0a42740487c7 100644
--- a/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TaxonomyImageTest.php
@@ -92,8 +92,8 @@ public function testTaxonomyImageAccess() {
     $image = array_pop($files);
     $edit['name[0][value]'] = $this->randomMachineName();
     $edit['files[field_test_0]'] = \Drupal::service('file_system')->realpath($image->uri);
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add', $edit, t('Save'));
-    $this->drupalPostForm(NULL, ['field_test[0][alt]' => $this->randomMachineName()], t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add', $edit, 'Save');
+    $this->drupalPostForm(NULL, ['field_test[0][alt]' => $this->randomMachineName()], 'Save');
     $terms = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties(['name' => $edit['name[0][value]']]);
     $term = reset($terms);
     $this->assertText('Created new term ' . $term->getName() . '.');
diff --git a/core/modules/taxonomy/tests/src/Functional/TaxonomyTermIndentationTest.php b/core/modules/taxonomy/tests/src/Functional/TaxonomyTermIndentationTest.php
index 281c26f8d1a7..ccb63a4afbfc 100644
--- a/core/modules/taxonomy/tests/src/Functional/TaxonomyTermIndentationTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TaxonomyTermIndentationTest.php
@@ -67,7 +67,7 @@ public function testTermIndentation() {
       'terms[tid:' . $term2->id() . ':0][weight]' => 1,
     ];
     // Submit the edited form and check for HTML indentation element presence.
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertSession()->responseMatches('|<div class="js-indentation indentation">&nbsp;</div>|');
 
     // Check explicitly that term 2's parent is term 1.
@@ -90,7 +90,7 @@ public function testTermIndentation() {
     $edit = [
       'terms[tid:' . $term2->id() . ':0][weight]' => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     // All terms back at the root level, no indentation should be present.
     $this->assertSession()->responseNotMatches('|<div class="js-indentation indentation">&nbsp;</div>|');
 
diff --git a/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php b/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
index f652e67d202f..43b97f8e5430 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
@@ -112,7 +112,7 @@ public function testTaxonomyIndex() {
     $edit['body[0][value]'] = $this->randomMachineName();
     $edit["{$this->fieldName1}[]"] = $term_1->id();
     $edit["{$this->fieldName2}[]"] = $term_1->id();
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
 
     // Check that the term is indexed, and only once.
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
@@ -127,7 +127,7 @@ public function testTaxonomyIndex() {
 
     // Update the article to change one term.
     $edit["{$this->fieldName1}[]"] = $term_2->id();
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Check that both terms are indexed.
     $index_count = $connection->select('taxonomy_index')
@@ -147,7 +147,7 @@ public function testTaxonomyIndex() {
 
     // Update the article to change another term.
     $edit["{$this->fieldName2}[]"] = $term_2->id();
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Check that only one term is indexed.
     $index_count = $connection->select('taxonomy_index')
diff --git a/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php b/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php
index c43762c2498c..4663f13d356e 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php
@@ -49,7 +49,7 @@ public function testTermLanguage() {
     $edit = [
       'default_language[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, 'Save');
 
     // Add a term.
     $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add');
@@ -60,7 +60,7 @@ public function testTermLanguage() {
       'name[0][value]' => $this->randomMachineName(),
       'langcode[0][value]' => 'aa',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $terms = taxonomy_term_load_multiple_by_name($edit['name[0][value]']);
     $term = reset($terms);
     $this->assertEqual($term->language()->getId(), $edit['langcode[0][value]'], 'The term contains the correct langcode.');
@@ -71,7 +71,7 @@ public function testTermLanguage() {
 
     // Change the language of the term.
     $edit['langcode[0][value]'] = 'bb';
-    $this->drupalPostForm('taxonomy/term/' . $term->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('taxonomy/term/' . $term->id() . '/edit', $edit, 'Save');
 
     // Check again that on the edit page the language is correct.
     $this->drupalGet('taxonomy/term/' . $term->id() . '/edit');
@@ -85,7 +85,7 @@ public function testDefaultTermLanguage() {
       'default_language[langcode]' => 'bb',
       'default_language[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, 'Save');
     $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add');
     $this->assertTrue($this->assertSession()->optionExists('edit-langcode-0-value', 'bb')->isSelected());
 
@@ -94,7 +94,7 @@ public function testDefaultTermLanguage() {
       'default_language[langcode]' => 'current_interface',
       'default_language[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, 'Save');
     $this->drupalGet('aa/admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add');
     $this->assertTrue($this->assertSession()->optionExists('edit-langcode-0-value', 'aa')->isSelected());
     $this->drupalGet('bb/admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add');
@@ -107,7 +107,7 @@ public function testDefaultTermLanguage() {
       'default_language[langcode]' => LanguageInterface::LANGCODE_SITE_DEFAULT,
       'default_language[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, 'Save');
     $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add');
     $this->assertTrue($this->assertSession()->optionExists('edit-langcode-0-value', 'cc')->isSelected());
   }
@@ -120,7 +120,7 @@ public function testTermTranslatedOnOverviewPage() {
     $edit = [
       'default_language[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id(), $edit, 'Save');
 
     // Add a term.
     $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add');
@@ -129,7 +129,7 @@ public function testTermTranslatedOnOverviewPage() {
       'name[0][value]' => $this->randomMachineName(),
       'langcode[0][value]' => 'aa',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $terms = taxonomy_term_load_multiple_by_name($edit['name[0][value]']);
     $term = reset($terms);
 
diff --git a/core/modules/taxonomy/tests/src/Functional/TermTest.php b/core/modules/taxonomy/tests/src/Functional/TermTest.php
index 3528aed4d7b6..071dd7e8b198 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermTest.php
@@ -109,7 +109,7 @@ public function testTaxonomyTermHierarchy() {
     // Edit $term2, setting $term1 as parent.
     $edit = [];
     $edit['parent[]'] = [$term1->id()];
-    $this->drupalPostForm('taxonomy/term/' . $term2->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('taxonomy/term/' . $term2->id() . '/edit', $edit, 'Save');
 
     // Check the hierarchy.
     $children = $taxonomy_storage->loadChildren($term1->id());
@@ -200,7 +200,7 @@ public function testTaxonomyNode() {
     $edit['title[0][value]'] = $this->randomMachineName();
     $edit['body[0][value]'] = $this->randomMachineName();
     $edit[$this->field->getName() . '[]'] = $term1->id();
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
 
     // Check that the term is displayed when the node is viewed.
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
@@ -209,21 +209,21 @@ public function testTaxonomyNode() {
 
     $this->clickLink(t('Edit'));
     $this->assertText($term1->getName(), 'Term is displayed when editing the node.');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertText($term1->getName(), 'Term is displayed after saving the node with no changes.');
 
     // Edit the node with a different term.
     $edit[$this->field->getName() . '[]'] = $term2->id();
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     $this->drupalGet('node/' . $node->id());
     $this->assertText($term2->getName(), 'Term is displayed when viewing the node.');
 
     // Preview the node.
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Preview'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Preview');
     // Ensure that term is displayed when previewing the node.
     $this->assertSession()->pageTextContainsOnce($term2->getName());
-    $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Preview'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', [], 'Preview');
     // Ensure that term is displayed when previewing the node again.
     $this->assertSession()->pageTextContainsOnce($term2->getName());
   }
@@ -265,7 +265,7 @@ public function testNodeTermCreationAndDeletion() {
     $this->assertRaw('placeholder="Start typing here."');
 
     // Preview and verify the terms appear but are not created.
-    $this->drupalPostForm(NULL, $edit, t('Preview'));
+    $this->drupalPostForm(NULL, $edit, 'Preview');
     foreach ($terms as $term) {
       $this->assertText($term, 'The term appears on the node preview.');
     }
@@ -276,7 +276,7 @@ public function testNodeTermCreationAndDeletion() {
     taxonomy_terms_static_reset();
 
     // Save, creating the terms.
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $this->assertText('Article ' . $edit['title[0][value]'] . ' has been created.', 'The node was created successfully.');
 
     // Verify that the creation message contains a link to a node.
@@ -297,7 +297,7 @@ public function testNodeTermCreationAndDeletion() {
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
     // Test editing the node.
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
     foreach ($terms as $term) {
       $this->assertText($term, 'The term was retained after edit and still appears on the node page.');
     }
@@ -305,11 +305,11 @@ public function testNodeTermCreationAndDeletion() {
     // Delete term 1 from the term edit page.
     $this->drupalGet('taxonomy/term/' . $term_objects['term1']->id() . '/edit');
     $this->clickLink(t('Delete'));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Delete term 2 from the term delete page.
     $this->drupalGet('taxonomy/term/' . $term_objects['term2']->id() . '/delete');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $term_names = [$term_objects['term3']->getName(), $term_objects['term4']->getName()];
 
     $this->drupalGet('node/' . $node->id());
@@ -335,7 +335,7 @@ public function testTermInterface() {
     $edit['parent[]'] = [0];
 
     // Create the term to edit.
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add', $edit, 'Save');
 
     $terms = taxonomy_term_load_multiple_by_name($edit['name[0][value]']);
     $term = reset($terms);
@@ -355,7 +355,7 @@ public function testTermInterface() {
     ];
 
     // Edit the term.
-    $this->drupalPostForm('taxonomy/term/' . $term->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('taxonomy/term/' . $term->id() . '/edit', $edit, 'Save');
 
     // Check that the term is still present at admin UI after edit.
     $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview');
@@ -391,7 +391,7 @@ public function testTermInterface() {
     // Delete the term.
     $this->drupalGet('taxonomy/term/' . $term->id() . '/edit');
     $this->clickLink(t('Delete'));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     // Assert that the term no longer exists.
     $this->drupalGet('taxonomy/term/' . $term->id());
@@ -451,9 +451,9 @@ public function testTermReorder() {
     $this->assertEqual($terms[1]->parents, [$term2->id()], 'Term 3 was made a child of term 2.');
     $this->assertEqual($terms[2]->tid, $term1->id(), 'Term 1 was moved below term 2.');
 
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview', [], t('Reset to alphabetical'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview', [], 'Reset to alphabetical');
     // Submit confirmation form.
-    $this->drupalPostForm(NULL, [], t('Reset to alphabetical'));
+    $this->drupalPostForm(NULL, [], 'Reset to alphabetical');
     // Ensure form redirected back to overview.
     $this->assertSession()->addressEquals('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview');
 
@@ -479,7 +479,7 @@ public function testTermMultipleParentsInterface() {
       'parent[]' => [0, $parent->id()],
     ];
     // Save the new term.
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/add', $edit, 'Save');
 
     // Check that the term was successfully created.
     $terms = taxonomy_term_load_multiple_by_name($edit['name[0][value]']);
@@ -573,13 +573,13 @@ public function testReSavingTags() {
     $edit['title[0][value]'] = $this->randomMachineName(8);
     $edit['body[0][value]'] = $this->randomMachineName(16);
     $edit[$this->field->getName() . '[target_id]'] = $term->getName();
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
 
     // Check that the term is displayed when editing and saving the node with no
     // changes.
     $this->clickLink(t('Edit'));
     $this->assertRaw($term->getName());
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertRaw($term->getName());
   }
 
diff --git a/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php b/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php
index 908ac3100880..58678d6ed48a 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php
@@ -192,7 +192,7 @@ protected function doTestPublishedStatus() {
       foreach ($this->langcodes as $langcode) {
         $options = ['language' => $languages[$langcode]];
         $url = $entity->toUrl('edit-form', $options);
-        $this->drupalPostForm($url, ['status[value]' => $value], t('Save'), $options);
+        $this->drupalPostForm($url, ['status[value]' => $value], 'Save', $options);
       }
       $storage->resetCache([$this->entityId]);
       $entity = $storage->load($this->entityId);
diff --git a/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php b/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
index 33eef034db11..cefd47e09a8a 100644
--- a/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
@@ -79,13 +79,13 @@ public function testTaxonomyTokenReplacement() {
     $edit = [];
     $edit['name[0][value]'] = '<blink>Blinking Text</blink>';
     $edit['parent[]'] = [$term1->id()];
-    $this->drupalPostForm('taxonomy/term/' . $term2->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('taxonomy/term/' . $term2->id() . '/edit', $edit, 'Save');
 
     // Create node with term2.
     $edit = [];
     $node = $this->drupalCreateNode(['type' => 'article']);
     $edit[$this->fieldName . '[]'] = $term2->id();
-    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, 'Save');
 
     // Generate and test sanitized tokens for term1.
     $tests = [];
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
index 33bab40a7b17..052f669cb3c6 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
@@ -226,7 +226,7 @@ public function testExposedFilter() {
     $edit = ['options[value][empty_vocabulary]' => TRUE];
     $this->drupalPostForm('admin/structure/views/nojs/handler/test_taxonomy_term_name/default/filter/vid', $edit, 'Apply');
     $this->drupalPostForm('admin/structure/views/view/test_taxonomy_term_name/edit/default', [], 'Save');
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $preview = $this->xpath("//div[@class='view-content']");
     $this->assertTrue(empty($preview), 'No results.');
   }
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
index bbb2c517386e..a147681ceff0 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
@@ -93,7 +93,7 @@ public function testTaxonomyTermView() {
     $edit['title[0][value]'] = $original_title = $this->randomMachineName();
     $edit['body[0][value]'] = $this->randomMachineName();
     $edit["{$this->fieldName1}[]"] = $term->id();
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
 
     $this->drupalGet('taxonomy/term/' . $term->id());
@@ -113,7 +113,7 @@ public function testTaxonomyTermView() {
 
     $edit['title[0][value]'] = $translated_title = $this->randomMachineName();
 
-    $this->drupalPostForm('node/' . $node->id() . '/translations/add/en/ur', $edit, t('Save (this translation)'));
+    $this->drupalPostForm('node/' . $node->id() . '/translations/add/en/ur', $edit, 'Save (this translation)');
 
     $this->drupalGet('taxonomy/term/' . $term->id());
     $this->assertText($term->label());
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php
index cfbf1f3c997b..92acf7501974 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php
@@ -52,7 +52,7 @@ public function testVocabularyLanguage() {
     $edit['description'] = $this->randomMachineName();
     $edit['langcode'] = 'aa';
     $edit['vid'] = $vid;
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Check the language on the edit page.
     $this->drupalGet('admin/structure/taxonomy/manage/' . $vid);
@@ -61,7 +61,7 @@ public function testVocabularyLanguage() {
     // Change the language and save again.
     $edit['langcode'] = 'bb';
     unset($edit['vid']);
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Check again the language on the edit page.
     $this->drupalGet('admin/structure/taxonomy/manage/' . $vid);
@@ -81,7 +81,7 @@ public function testVocabularyDefaultLanguageForTerms() {
       'default_language[language_alterable]' => TRUE,
     ];
     $vid = $edit['vid'];
-    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, 'Save');
 
     // Check that the vocabulary was actually created.
     $this->drupalGet('admin/structure/taxonomy/manage/' . $edit['vid']);
@@ -101,7 +101,7 @@ public function testVocabularyDefaultLanguageForTerms() {
       'default_language[langcode]' => 'aa',
       'default_language[language_alterable]' => FALSE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $vid, $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $vid, $edit, 'Save');
 
     // And check again the settings and also the interface.
     $language_settings = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', $vid);
@@ -118,7 +118,7 @@ public function testVocabularyDefaultLanguageForTerms() {
       'default_language[langcode]' => 'authors_default',
       'default_language[language_alterable]' => FALSE,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $vid, $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/manage/' . $vid, $edit, 'Save');
 
     // Check that we have the new settings.
     $new_settings = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', $vid);
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php
index 502adcec8750..21d18a0412a5 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php
@@ -242,7 +242,7 @@ public function testVocabularyPermissionsTaxonomyTerm() {
     $edit = [];
     $edit['name[0][value]'] = $this->randomMachineName();
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('Created new term ' . $edit['name[0][value]'] . '.', 'Term created successfully.');
 
     // Verify that the creation message contains a link to a term.
@@ -259,7 +259,7 @@ public function testVocabularyPermissionsTaxonomyTerm() {
     $this->assertText($edit['name[0][value]'], 'Edit taxonomy term form opened successfully.');
 
     $edit['name[0][value]'] = $this->randomMachineName();
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('Updated term ' . $edit['name[0][value]'] . '.', 'Term updated successfully.');
 
     // Delete the vocabulary.
@@ -267,7 +267,7 @@ public function testVocabularyPermissionsTaxonomyTerm() {
     $this->assertRaw(t('Are you sure you want to delete the @entity-type %label?', ['@entity-type' => 'taxonomy term', '%label' => $edit['name[0][value]']]));
 
     // Confirm deletion.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('Deleted term %name.', ['%name' => $edit['name[0][value]']]));
 
     // Test as user with "create" permissions.
@@ -285,7 +285,7 @@ public function testVocabularyPermissionsTaxonomyTerm() {
     $edit = [];
     $edit['name[0][value]'] = $this->randomMachineName();
 
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $assert_session->pageTextContains(t('Created new term @name.', ['@name' => $edit['name[0][value]']]));
 
     $terms = \Drupal::entityTypeManager()
@@ -316,7 +316,7 @@ public function testVocabularyPermissionsTaxonomyTerm() {
     $this->assertText($term->getName(), 'Edit taxonomy term form opened successfully.');
 
     $edit['name[0][value]'] = $this->randomMachineName();
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('Updated term ' . $edit['name[0][value]'] . '.', 'Term updated successfully.');
 
     // Verify that the update message contains a link to a term.
@@ -346,7 +346,7 @@ public function testVocabularyPermissionsTaxonomyTerm() {
     $this->assertRaw(t('Are you sure you want to delete the @entity-type %label?', ['@entity-type' => 'taxonomy term', '%label' => $term->getName()]));
 
     // Confirm deletion.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('Deleted term %name.', ['%name' => $term->getName()]));
 
     // Test as user without proper permissions.
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php
index bb19e6c97a52..56358af64337 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php
@@ -48,7 +48,7 @@ public function testVocabularyLanguage() {
     $edit['langcode'] = 'en';
     $edit['vid'] = $vid;
     $edit['default_language[content_translation]'] = TRUE;
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Check if content translation is enabled on the edit page.
     $this->drupalGet('admin/structure/taxonomy/manage/' . $vid);
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php
index 99cd5da576ab..f0cccef28614 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php
@@ -46,7 +46,7 @@ public function testVocabularyInterface() {
     $edit['name'] = $this->randomMachineName();
     $edit['description'] = $this->randomMachineName();
     $edit['vid'] = $vid;
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertRaw(t('Created new vocabulary %name.', ['%name' => $edit['name']]));
 
     // Edit the vocabulary.
@@ -58,19 +58,19 @@ public function testVocabularyInterface() {
     $edit = [];
     $edit['name'] = $this->randomMachineName();
     $edit['description'] = $this->randomMachineName();
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->drupalGet('admin/structure/taxonomy');
     $this->assertText($edit['name'], 'Vocabulary name found in the vocabulary overview listing.');
     $this->assertText($edit['description'], 'Vocabulary description found in the vocabulary overview listing.');
 
     // Try to submit a vocabulary with a duplicate machine name.
     $edit['vid'] = $vid;
-    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, 'Save');
     $this->assertText('The machine-readable name is already in use. It must be unique.');
 
     // Try to submit an invalid machine name.
     $edit['vid'] = '!&^%';
-    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, 'Save');
     $this->assertText('The machine-readable name must contain only lowercase letters, numbers, and underscores.');
 
     // Ensure that vocabulary titles are escaped properly.
@@ -78,7 +78,7 @@ public function testVocabularyInterface() {
     $edit['name'] = 'Don\'t Panic';
     $edit['description'] = $this->randomMachineName();
     $edit['vid'] = 'don_t_panic';
-    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, 'Save');
 
     $site_name = $this->config('system.site')->get('name');
     $this->assertSession()->titleEquals("Don't Panic | $site_name");
@@ -101,7 +101,7 @@ public function testTaxonomyAdminChangingWeights() {
       $edit['vocabularies[' . $key . '][weight]'] = $weight;
     }
     // Saving the new weights via the interface.
-    $this->drupalPostForm('admin/structure/taxonomy', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy', $edit, 'Save');
 
     // Load the vocabularies from the database.
     $this->container->get('entity_type.manager')->getStorage('taxonomy_vocabulary')->resetCache();
@@ -139,7 +139,7 @@ public function testTaxonomyAdminDeletingVocabulary() {
       'name' => $this->randomMachineName(),
       'vid' => $vid,
     ];
-    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/taxonomy/add', $edit, 'Save');
     $this->assertText('Created new vocabulary', 'New vocabulary was created.');
 
     // Check the created vocabulary.
@@ -154,7 +154,7 @@ public function testTaxonomyAdminDeletingVocabulary() {
     $this->assertText('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.', '[confirm deletion] Inform that all terms will be deleted.');
 
     // Confirm deletion.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('Deleted vocabulary %name.', ['%name' => $vocabulary->label()]));
     $this->container->get('entity_type.manager')->getStorage('taxonomy_vocabulary')->resetCache();
     $this->assertNull(Vocabulary::load($vid), 'Vocabulary not found.');
diff --git a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
index 2d8d7a335f0f..bbee5ff007c8 100644
--- a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
+++ b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
@@ -106,7 +106,7 @@ public function testTelephoneFormatter($input, $expected) {
       'field_telephone[0][value]' => $input,
     ];
 
-    $this->drupalPostForm('node/add/article', $edit, t('Save'));
+    $this->drupalPostForm('node/add/article', $edit, 'Save');
     $this->assertRaw('<a href="tel:' . $expected . '">');
   }
 
diff --git a/core/modules/text/tests/src/Functional/TextFieldTest.php b/core/modules/text/tests/src/Functional/TextFieldTest.php
index 78cfb7a777bf..73f6ebcd6162 100644
--- a/core/modules/text/tests/src/Functional/TextFieldTest.php
+++ b/core/modules/text/tests/src/Functional/TextFieldTest.php
@@ -188,7 +188,7 @@ public function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
     $this->drupalLogin($this->adminUser);
     foreach (filter_formats() as $format) {
       if (!$format->isFallbackFormat()) {
-        $this->drupalPostForm('admin/config/content/formats/manage/' . $format->id() . '/disable', [], t('Disable'));
+        $this->drupalPostForm('admin/config/content/formats/manage/' . $format->id() . '/disable', [], 'Disable');
       }
     }
     $this->drupalLogin($this->webUser);
@@ -204,7 +204,7 @@ public function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
     $edit = [
       "{$field_name}[0][value]" => $value,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     preg_match('|entity_test/manage/(\d+)|', $this->getUrl(), $match);
     $id = $match[1];
     $this->assertText('entity_test ' . $id . ' has been created.', 'Entity was created');
@@ -224,7 +224,7 @@ public function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
       'format' => mb_strtolower($this->randomMachineName()),
       'name' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/content/formats/add', $edit, 'Save configuration');
     filter_formats_reset();
     $format = FilterFormat::load($edit['format']);
     $format_id = $format->id();
@@ -244,7 +244,7 @@ public function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
     $edit = [
       "{$field_name}[0][format]" => $format_id,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('entity_test ' . $id . ' has been updated.', 'Entity was updated');
 
     // Display the entity.
diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
index 4aab63aae850..591938f356e4 100644
--- a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
+++ b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
@@ -117,9 +117,9 @@ public function testModuleStatusChangeSubtreesHashCacheClear() {
     // Uninstall a module.
     $edit = [];
     $edit['uninstall[taxonomy]'] = TRUE;
-    $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
+    $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall');
     // Confirm the uninstall form.
-    $this->drupalPostForm(NULL, [], t('Uninstall'));
+    $this->drupalPostForm(NULL, [], 'Uninstall');
     $this->rebuildContainer();
 
     // Assert that the subtrees hash has been altered because the subtrees
@@ -129,7 +129,7 @@ public function testModuleStatusChangeSubtreesHashCacheClear() {
     // Enable a module.
     $edit = [];
     $edit['modules[taxonomy][enable]'] = TRUE;
-    $this->drupalPostForm('admin/modules', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules', $edit, 'Install');
     $this->rebuildContainer();
 
     // Assert that the subtrees hash has been altered because the subtrees
@@ -147,7 +147,7 @@ public function testMenuLinkUpdateSubtreesHashCacheClear() {
     // Disable the link.
     $edit = [];
     $edit['enabled'] = FALSE;
-    $this->drupalPostForm("admin/structure/menu/link/" . $admin_menu_link_id . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("admin/structure/menu/link/" . $admin_menu_link_id . "/edit", $edit, 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('The menu link has been saved.');
 
@@ -168,7 +168,7 @@ public function testUserRoleUpdateSubtreesHashCacheClear() {
 
     $edit = [];
     $edit[$rid . '[administer taxonomy]'] = FALSE;
-    $this->drupalPostForm('admin/people/permissions', $edit, t('Save permissions'));
+    $this->drupalPostForm('admin/people/permissions', $edit, 'Save permissions');
 
     // Assert that the subtrees hash has been altered because the subtrees
     // structure changed.
@@ -198,7 +198,7 @@ public function testUserRoleUpdateSubtreesHashCacheClear() {
     $rid = $this->drupalCreateRole(['administer content types']);
 
     // Assign the role to the user.
-    $this->drupalPostForm('user/' . $this->adminUser->id() . '/edit', ["roles[$rid]" => $rid], t('Save'));
+    $this->drupalPostForm('user/' . $this->adminUser->id() . '/edit', ["roles[$rid]" => $rid], 'Save');
     $this->assertText('The changes have been saved.');
 
     // Assert that the subtrees hash has been altered because the subtrees
@@ -239,7 +239,7 @@ public function testNonCurrentUserAccountUpdates() {
     $admin_user_2_hash = $this->getSubtreesHash();
 
     // Assign the role to the user.
-    $this->drupalPostForm('user/' . $admin_user_id . '/edit', ["roles[$rid]" => $rid], t('Save'));
+    $this->drupalPostForm('user/' . $admin_user_id . '/edit', ["roles[$rid]" => $rid], 'Save');
     $this->assertText('The changes have been saved.');
 
     // Log in adminUser and assert that the subtrees hash has changed.
@@ -282,7 +282,7 @@ public function testLocaleTranslationSubtreesHashCacheClear() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     t($name, [], ['langcode' => $langcode]);
     // Reset locale cache.
     $this->container->get('string_translation')->reset();
@@ -309,7 +309,7 @@ public function testLocaleTranslationSubtreesHashCacheClear() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     $this->assertNoText('No strings available');
     $this->assertText($name, 'Search found the string as untranslated.');
 
@@ -320,7 +320,7 @@ public function testLocaleTranslationSubtreesHashCacheClear() {
     $edit = [
       $lid => $translation,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
     $this->assertText('The strings have been saved.', 'The strings have been saved.');
     // Verify that the user is redirected to the correct page.
     $this->assertSession()->addressEquals(Url::fromRoute('locale.translate_page'));
diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php
index ad60153c777b..7ec787a9ae20 100644
--- a/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php
+++ b/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php
@@ -56,7 +56,7 @@ public function testToolbarClasses() {
 
     // Add Spanish.
     $edit['predefined_langcode'] = $langcode;
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
 
     // The menu item 'Structure' in the toolbar will be translated.
     $menu_item = 'Structure';
@@ -70,7 +70,7 @@ public function testToolbarClasses() {
       'langcode' => $langcode,
       'translation' => 'untranslated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     // Make sure will be able to translate the menu item.
     $this->assertNoText('No strings available.', 'Search found the menu item as untranslated.');
 
@@ -85,7 +85,7 @@ public function testToolbarClasses() {
     $edit = [
       $lid => $menu_item_translated,
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
+    $this->drupalPostForm('admin/config/regional/translate', $edit, 'Save translations');
 
     // Search for the translated menu item.
     $search = [
@@ -93,7 +93,7 @@ public function testToolbarClasses() {
       'langcode' => $langcode,
       'translation' => 'translated',
     ];
-    $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
+    $this->drupalPostForm('admin/config/regional/translate', $search, 'Filter');
     // Make sure the menu item string was translated.
     $this->assertText($menu_item_translated, 'Search found the menu item as translated: ' . $menu_item_translated . '.');
 
diff --git a/core/modules/tracker/tests/src/Functional/TrackerTest.php b/core/modules/tracker/tests/src/Functional/TrackerTest.php
index da9b64e4438d..abc1d96a09a0 100644
--- a/core/modules/tracker/tests/src/Functional/TrackerTest.php
+++ b/core/modules/tracker/tests/src/Functional/TrackerTest.php
@@ -170,7 +170,7 @@ public function testTrackerUser() {
       'subject[0][value]' => $this->randomMachineName(),
       'comment_body[0][value]' => $this->randomMachineName(20),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $other_published_my_comment->id() . '/comment', $comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $other_published_my_comment->id() . '/comment', $comment, 'Save');
 
     $this->drupalGet('user/' . $this->user->id() . '/activity');
     $this->assertNoText($unpublished->label(), "Unpublished nodes do not show up in the user's tracker listing.");
@@ -221,7 +221,7 @@ public function testTrackerUser() {
       'access user profiles',
     ]);
     $this->drupalLogin($admin_user);
-    $this->drupalPostForm('comment/1/edit', ['status' => CommentInterface::NOT_PUBLISHED], t('Save'));
+    $this->drupalPostForm('comment/1/edit', ['status' => CommentInterface::NOT_PUBLISHED], 'Save');
     $this->drupalGet('user/' . $this->user->id() . '/activity');
     $this->assertNoText($other_published_my_comment->label(), 'Unpublished comments are not counted on the tracker listing.');
 
@@ -267,7 +267,7 @@ public function testTrackerHistoryMetadata() {
       'comment_body[0][value]' => $this->randomMachineName(20),
     ];
     sleep(1);
-    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $comment, 'Save');
     // Reload the node so that comment.module's hook_node_load()
     // implementation can set $node->last_comment_timestamp for the freshly
     // posted comment.
@@ -312,7 +312,7 @@ public function testTrackerOrderingNewComments() {
       'subject[0][value]' => $this->randomMachineName(),
       'comment_body[0][value]' => $this->randomMachineName(20),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $node_one->id() . '/comment', $comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node_one->id() . '/comment', $comment, 'Save');
 
     // If the comment is posted in the same second as the last one then Drupal
     // can't tell the difference, so we wait one second here.
@@ -323,7 +323,7 @@ public function testTrackerOrderingNewComments() {
       'subject[0][value]' => $this->randomMachineName(),
       'comment_body[0][value]' => $this->randomMachineName(20),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $node_two->id() . '/comment', $comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node_two->id() . '/comment', $comment, 'Save');
 
     // We should at this point have in our tracker for otherUser:
     // 1. node_two
@@ -343,7 +343,7 @@ public function testTrackerOrderingNewComments() {
       'subject[0][value]' => $this->randomMachineName(),
       'comment_body[0][value]' => $this->randomMachineName(20),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $node_one->id() . '/comment', $comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node_one->id() . '/comment', $comment, 'Save');
 
     // Switch back to the otherUser and assert that the order has swapped.
     $this->drupalLogin($this->otherUser);
@@ -380,7 +380,7 @@ public function testTrackerCronIndexing() {
       'subject[0][value]' => $this->randomMachineName(),
       'comment_body[0][value]' => $this->randomMachineName(20),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $nodes[3]->id() . '/comment', $comment, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $nodes[3]->id() . '/comment', $comment, 'Save');
 
     // Create an unpublished node.
     $unpublished = $this->drupalCreateNode([
@@ -443,7 +443,7 @@ public function testTrackerAdminUnpublish() {
       'action' => 'node_unpublish_action',
       'node_bulk_form[0]' => $node->id(),
     ];
-    $this->drupalPostForm('admin/content', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('admin/content', $edit, 'Apply to selected items');
 
     $this->drupalGet('activity');
     $this->assertText('No content available.', 'A node is displayed on the tracker listing pages.');
diff --git a/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php b/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php
index 8b6d2c0f9075..f700a4095b88 100644
--- a/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php
+++ b/core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php
@@ -57,12 +57,12 @@ public function testViaAuthorize($url) {
     $edit = [
       'project_url' => $url,
     ];
-    $this->drupalPostForm('admin/modules/install', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules/install', $edit, 'Install');
     $edit = [
       'connection_settings[authorize_filetransfer_default]' => 'system_test',
       'connection_settings[system_test][update_test_username]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm(NULL, $edit, t('Continue'));
+    $this->drupalPostForm(NULL, $edit, 'Continue');
     $this->assertText('Installation was completed successfully.');
 
     // Ensure the module is available to install.
diff --git a/core/modules/update/tests/src/Functional/UpdateUploadTest.php b/core/modules/update/tests/src/Functional/UpdateUploadTest.php
index f30127cfe7b0..aef2b3cc6128 100644
--- a/core/modules/update/tests/src/Functional/UpdateUploadTest.php
+++ b/core/modules/update/tests/src/Functional/UpdateUploadTest.php
@@ -57,7 +57,7 @@ public function testUploadModule() {
       'files[project_upload]' => $invalidArchiveFile->uri,
     ];
     // This also checks that the correct archive extensions are allowed.
-    $this->drupalPostForm('admin/modules/install', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules/install', $edit, 'Install');
     $extensions = \Drupal::service('plugin.manager.archiver')->getExtensions();
     $this->assertSession()->pageTextContains(t('Only files with the following extensions are allowed: @archive_extensions.', ['@archive_extensions' => $extensions]));
     $this->assertSession()->addressEquals('admin/modules/install');
@@ -69,7 +69,7 @@ public function testUploadModule() {
     $edit = [
       'files[project_upload]' => $validArchiveFile,
     ];
-    $this->drupalPostForm('admin/modules/install', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules/install', $edit, 'Install');
     $this->assertText('AAA Update test is already installed.', 'Existing module was extracted and not reinstalled.');
     $this->assertSession()->addressEquals('admin/modules/install');
 
@@ -82,7 +82,7 @@ public function testUploadModule() {
     $edit = [
       'files[project_upload]' => $validArchiveFile,
     ];
-    $this->drupalPostForm('admin/modules/install', $edit, t('Install'));
+    $this->drupalPostForm('admin/modules/install', $edit, 'Install');
     // Check that submitting the form takes the user to authorize.php.
     $this->assertSession()->addressEquals('core/authorize.php');
     $this->assertSession()->titleEquals('Update manager | Drupal');
@@ -113,7 +113,7 @@ public function testUploadModule() {
     $this->assertEqual($info['version'], '8.x-1.0');
 
     // Enable the module.
-    $this->drupalPostForm('admin/modules', ['modules[update_test_new_module][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[update_test_new_module][enable]' => TRUE], 'Install');
 
     // Define the update XML such that the new module downloaded above needs an
     // update from 8.x-1.0 to 8.x-1.1.
@@ -130,8 +130,8 @@ public function testUploadModule() {
     $this->refreshUpdateStatus($xml_mapping);
 
     // Run the updates for the new module.
-    $this->drupalPostForm('admin/reports/updates/update', ['projects[update_test_new_module]' => TRUE], t('Download these updates'));
-    $this->drupalPostForm(NULL, ['maintenance_mode' => FALSE], t('Continue'));
+    $this->drupalPostForm('admin/reports/updates/update', ['projects[update_test_new_module]' => TRUE], 'Download these updates');
+    $this->drupalPostForm(NULL, ['maintenance_mode' => FALSE], 'Continue');
     $this->assertText('Update was completed successfully.');
     $this->assertRaw(t('Installed %project_name successfully', ['%project_name' => 'update_test_new_module']));
 
diff --git a/core/modules/user/tests/src/Functional/AccessRoleUITest.php b/core/modules/user/tests/src/Functional/AccessRoleUITest.php
index 28e9d5e204d8..3f3be52dd352 100644
--- a/core/modules/user/tests/src/Functional/AccessRoleUITest.php
+++ b/core/modules/user/tests/src/Functional/AccessRoleUITest.php
@@ -48,18 +48,18 @@ public function testAccessRoleUI() {
     $entity_type_manager = $this->container->get('entity_type.manager');
     $entity_type_manager->getStorage('user_role')->create(['id' => 'custom_role', 'label' => 'Custom role'])->save();
     $access_url = "admin/structure/views/nojs/display/test_access_role/default/access_options";
-    $this->drupalPostForm($access_url, ['access_options[role][custom_role]' => 1], t('Apply'));
+    $this->drupalPostForm($access_url, ['access_options[role][custom_role]' => 1], 'Apply');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $view = $entity_type_manager->getStorage('view')->load('test_access_role');
 
     $display = $view->getDisplay('default');
     $this->assertEqual($display['display_options']['access']['options']['role'], ['custom_role' => 'custom_role']);
 
     // Test changing access plugin from role to none.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_access_role/default/access', ['access[type]' => 'none'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_access_role/default/access', ['access[type]' => 'none'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
     // Verify that role option is not set.
     $view = $entity_type_manager->getStorage('view')->load('test_access_role');
     $display = $view->getDisplay('default');
diff --git a/core/modules/user/tests/src/Functional/UserAccountLinksTest.php b/core/modules/user/tests/src/Functional/UserAccountLinksTest.php
index dd0c0422ee7c..e7cde09c4715 100644
--- a/core/modules/user/tests/src/Functional/UserAccountLinksTest.php
+++ b/core/modules/user/tests/src/Functional/UserAccountLinksTest.php
@@ -101,7 +101,7 @@ public function testDisabledAccountLink() {
 
     // Disable the 'My account' link.
     $edit['links[menu_plugin_id:user.page][enabled]'] = FALSE;
-    $this->drupalPostForm('admin/structure/menu/manage/account', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/manage/account', $edit, 'Save');
 
     // Get the homepage.
     $this->drupalGet('<front>');
diff --git a/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php b/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php
index 68ef1c917e5b..1b13442d29d8 100644
--- a/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php
+++ b/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php
@@ -135,7 +135,7 @@ public function testActualNegotiation() {
     // Set a preferred language code for the user.
     $edit = [];
     $edit['preferred_admin_langcode'] = 'xx';
-    $this->drupalPostForm($path, $edit, t('Save'));
+    $this->drupalPostForm($path, $edit, 'Save');
 
     // Test negotiation with the URL method first. The admin method will only
     // be used if the URL method did not match.
@@ -155,7 +155,7 @@ public function testActualNegotiation() {
     // Unset the preferred language code for the user.
     $edit = [];
     $edit['preferred_admin_langcode'] = '';
-    $this->drupalPostForm($path, $edit, t('Save'));
+    $this->drupalPostForm($path, $edit, 'Save');
     $this->drupalGet($path);
     $this->assertText('Language negotiation method: language-default');
     $this->drupalGet('xx/' . $path);
@@ -178,7 +178,7 @@ public function setLanguageNegotiation($admin_first = FALSE) {
       'language_interface[weight][language-user-admin]' => ($admin_first ? -12 : -8),
       'language_interface[weight][language-url]' => -10,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
   }
 
   /**
@@ -194,7 +194,7 @@ public function addCustomLanguage() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/UserAdminTest.php b/core/modules/user/tests/src/Functional/UserAdminTest.php
index 32bc8d54de18..25fdc0fa227f 100644
--- a/core/modules/user/tests/src/Functional/UserAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserAdminTest.php
@@ -111,7 +111,7 @@ public function testUserAdmin() {
     $config
       ->set('notify.status_blocked', TRUE)
       ->save();
-    $this->drupalPostForm('admin/people', $edit, t('Apply to selected items'), [
+    $this->drupalPostForm('admin/people', $edit, 'Apply to selected items', [
       // Sort the table by username so that we know reliably which user will be
       // targeted with the blocking action.
       'query' => ['order' => 'name', 'sort' => 'asc'],
@@ -132,7 +132,7 @@ public function testUserAdmin() {
     $editunblock = [];
     $editunblock['action'] = 'user_unblock_user_action';
     $editunblock['user_bulk_form[4]'] = TRUE;
-    $this->drupalPostForm('admin/people', $editunblock, t('Apply to selected items'), [
+    $this->drupalPostForm('admin/people', $editunblock, 'Apply to selected items', [
       // Sort the table by username so that we know reliably which user will be
       // targeted with the blocking action.
       'query' => ['order' => 'name', 'sort' => 'asc'],
@@ -146,11 +146,11 @@ public function testUserAdmin() {
     $user_d = $this->drupalCreateUser([]);
     $user_storage->resetCache([$user_d->id()]);
     $account1 = $user_storage->load($user_d->id());
-    $this->drupalPostForm('user/' . $account1->id() . '/edit', ['status' => 0], t('Save'));
+    $this->drupalPostForm('user/' . $account1->id() . '/edit', ['status' => 0], 'Save');
     $user_storage->resetCache([$user_d->id()]);
     $account1 = $user_storage->load($user_d->id());
     $this->assertTrue($account1->isBlocked(), 'User D blocked');
-    $this->drupalPostForm('user/' . $account1->id() . '/edit', ['status' => TRUE], t('Save'));
+    $this->drupalPostForm('user/' . $account1->id() . '/edit', ['status' => TRUE], 'Save');
     $user_storage->resetCache([$user_d->id()]);
     $account1 = $user_storage->load($user_d->id());
     $this->assertTrue($account1->isActive(), 'User D unblocked');
@@ -190,7 +190,7 @@ public function testNotificationEmailAddress() {
     $edit = [];
     $edit['name'] = $this->randomMachineName();
     $edit['mail'] = $edit['name'] . '@example.com';
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $subject = 'Account details for ' . $edit['name'] . ' at ' . $system->get('name') . ' (pending admin approval)';
     // Ensure that admin notification mail is sent to the configured
     // Notification Email address.
diff --git a/core/modules/user/tests/src/Functional/UserBlocksTest.php b/core/modules/user/tests/src/Functional/UserBlocksTest.php
index 69d47d0c8c05..6c29cfadfd76 100644
--- a/core/modules/user/tests/src/Functional/UserBlocksTest.php
+++ b/core/modules/user/tests/src/Functional/UserBlocksTest.php
@@ -76,7 +76,7 @@ public function testUserLoginBlock() {
     $edit = [];
     $edit['name'] = $user->getAccountName();
     $edit['pass'] = $user->passRaw;
-    $this->drupalPostForm('admin/people/permissions', $edit, t('Log in'));
+    $this->drupalPostForm('admin/people/permissions', $edit, 'Log in');
     $this->assertNoText('User login', 'Logged in.');
 
     // Check that we are still on the same page.
@@ -86,7 +86,7 @@ public function testUserLoginBlock() {
     $this->drupalLogout();
     $this->drupalGet('filter/tips');
     $this->assertSession()->responseHeaderEquals(DynamicPageCacheSubscriber::HEADER, 'MISS');
-    $this->drupalPostForm(NULL, $edit, t('Log in'));
+    $this->drupalPostForm(NULL, $edit, 'Log in');
     $this->assertNoText('User login', 'Logged in.');
     // Verify that we are still on the same page after login for allowed page.
     $this->assertSession()->responseMatches('!<title.*?Compose tips.*?</title>!');
@@ -95,7 +95,7 @@ public function testUserLoginBlock() {
     $this->drupalLogout();
     $this->drupalGet('filter/tips', ['query' => ['foo' => 'bar']]);
     $this->assertSession()->responseHeaderEquals(DynamicPageCacheSubscriber::HEADER, 'HIT');
-    $this->drupalPostForm(NULL, $edit, t('Log in'));
+    $this->drupalPostForm(NULL, $edit, 'Log in');
     $this->assertNoText('User login', 'Logged in.');
     // Verify that we are still on the same page after login for allowed page.
     $this->assertSession()->responseMatches('!<title.*?Compose tips.*?</title>!');
@@ -105,7 +105,7 @@ public function testUserLoginBlock() {
     $this->drupalLogout();
     $this->drupalGet('filter/tips', ['query' => ['foo' => 'baz']]);
     $this->assertSession()->responseHeaderEquals(DynamicPageCacheSubscriber::HEADER, 'HIT');
-    $this->drupalPostForm(NULL, $edit, t('Log in'));
+    $this->drupalPostForm(NULL, $edit, 'Log in');
     $this->assertNoText('User login', 'Logged in.');
     // Verify that we are still on the same page after login for allowed page.
     $this->assertSession()->responseMatches('!<title.*?Compose tips.*?</title>!');
@@ -114,7 +114,7 @@ public function testUserLoginBlock() {
     // Check that the user login block is not vulnerable to information
     // disclosure to third party sites.
     $this->drupalLogout();
-    $this->drupalPostForm('http://example.com/', $edit, t('Log in'), ['external' => FALSE]);
+    $this->drupalPostForm('http://example.com/', $edit, 'Log in', ['external' => FALSE]);
     // Check that we remain on the site after login.
     $this->assertSession()->addressEquals($user->toUrl('canonical'));
 
@@ -124,7 +124,7 @@ public function testUserLoginBlock() {
     $edit = [];
     $edit['name'] = 'foo';
     $edit['pass'] = 'invalid password';
-    $this->drupalPostForm('filter/tips', $edit, t('Log in'));
+    $this->drupalPostForm('filter/tips', $edit, 'Log in');
     $this->assertText('Unrecognized username or password. Forgot your password?');
     $this->drupalGet('filter/tips');
     $this->assertNoText('Unrecognized username or password. Forgot your password?');
diff --git a/core/modules/user/tests/src/Functional/UserCancelTest.php b/core/modules/user/tests/src/Functional/UserCancelTest.php
index bf10b96f42c3..4e070d62c710 100644
--- a/core/modules/user/tests/src/Functional/UserCancelTest.php
+++ b/core/modules/user/tests/src/Functional/UserCancelTest.php
@@ -87,7 +87,7 @@ public function testUserCancelChangePermission() {
     $this->drupalLogin($admin_user);
 
     // Delete regular user.
-    $this->drupalPostForm('user_form_test_cancel/' . $account->id(), [], t('Cancel account'));
+    $this->drupalPostForm('user_form_test_cancel/' . $account->id(), [], 'Cancel account');
 
     // Confirm deletion.
     $this->assertRaw(t('%name has been deleted.', ['%name' => $account->getAccountName()]));
@@ -112,7 +112,7 @@ public function testUserCancelUid1() {
       'action' => 'user_cancel_user_action',
       'user_bulk_form[0]' => TRUE,
     ];
-    $this->drupalPostForm('admin/people', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('admin/people', $edit, 'Apply to selected items');
 
     // Verify that uid 1's account was not cancelled.
     $user_storage->resetCache([1]);
@@ -139,11 +139,11 @@ public function testUserCancelInvalid() {
     $node = $this->drupalCreateNode(['uid' => $account->id()]);
 
     // Attempt to cancel account.
-    $this->drupalPostForm('user/' . $account->id() . '/edit', [], t('Cancel account'));
+    $this->drupalPostForm('user/' . $account->id() . '/edit', [], 'Cancel account');
 
     // Confirm account cancellation.
     $timestamp = time();
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('A confirmation request to cancel your account has been sent to your email address.', 'Account cancellation request mailed message displayed.');
 
     // Attempt bogus account cancellation request confirmation.
@@ -186,7 +186,7 @@ public function testUserBlock() {
 
     // Attempt to cancel account.
     $this->drupalGet('user/' . $account->id() . '/edit');
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('Are you sure you want to cancel your account?', 'Confirmation form to cancel account displayed.');
     $this->assertText('Your account will be blocked and you will no longer be able to log in. All of your content will remain attributed to your username.', 'Informs that all content will be remain as is.');
     $this->assertNoText('Select the method to cancel the account above.', 'Does not allow user to select account cancellation method.');
@@ -194,7 +194,7 @@ public function testUserBlock() {
     // Confirm account cancellation.
     $timestamp = time();
 
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('A confirmation request to cancel your account has been sent to your email address.', 'Account cancellation request mailed message displayed.');
 
     // Confirm account cancellation request.
@@ -246,13 +246,13 @@ public function testUserBlockUnpublish() {
 
     // Attempt to cancel account.
     $this->drupalGet('user/' . $account->id() . '/edit');
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('Are you sure you want to cancel your account?', 'Confirmation form to cancel account displayed.');
     $this->assertText('Your account will be blocked and you will no longer be able to log in. All of your content will be hidden from everyone but administrators.', 'Informs that all content will be unpublished.');
 
     // Confirm account cancellation.
     $timestamp = time();
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('A confirmation request to cancel your account has been sent to your email address.', 'Account cancellation request mailed message displayed.');
 
     // Confirm account cancellation request.
@@ -326,13 +326,13 @@ public function testUserAnonymize() {
 
     // Attempt to cancel account.
     $this->drupalGet('user/' . $account->id() . '/edit');
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('Are you sure you want to cancel your account?', 'Confirmation form to cancel account displayed.');
     $this->assertRaw(t('Your account will be removed and all account information deleted. All of your content will be assigned to the %anonymous-name user.', ['%anonymous-name' => $this->config('user.settings')->get('anonymous')]));
 
     // Confirm account cancellation.
     $timestamp = time();
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('A confirmation request to cancel your account has been sent to your email address.', 'Account cancellation request mailed message displayed.');
 
     // Confirm account cancellation request.
@@ -390,13 +390,13 @@ public function testUserAnonymizeBatch() {
 
     // Attempt to cancel account.
     $this->drupalGet('user/' . $account->id() . '/edit');
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('Are you sure you want to cancel your account?', 'Confirmation form to cancel account displayed.');
     $this->assertRaw(t('Your account will be removed and all account information deleted. All of your content will be assigned to the %anonymous-name user.', ['%anonymous-name' => $this->config('user.settings')->get('anonymous')]));
 
     // Confirm account cancellation.
     $timestamp = time();
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('A confirmation request to cancel your account has been sent to your email address.', 'Account cancellation request mailed message displayed.');
 
     // Confirm account cancellation request.
@@ -443,8 +443,8 @@ public function testUserDelete() {
     $edit['subject[0][value]'] = $this->randomMachineName(8);
     $edit['comment_body[0][value]'] = $this->randomMachineName(16);
 
-    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit, t('Preview'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit, 'Preview');
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertText('Your comment has been posted.');
     $comments = \Drupal::entityTypeManager()->getStorage('comment')->loadByProperties(['subject' => $edit['subject[0][value]']]);
     $comment = reset($comments);
@@ -462,13 +462,13 @@ public function testUserDelete() {
 
     // Attempt to cancel account.
     $this->drupalGet('user/' . $account->id() . '/edit');
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('Are you sure you want to cancel your account?', 'Confirmation form to cancel account displayed.');
     $this->assertText('Your account will be removed and all account information deleted. All of your content will also be deleted.', 'Informs that all content will be deleted.');
 
     // Confirm account cancellation.
     $timestamp = time();
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertText('A confirmation request to cancel your account has been sent to your email address.', 'Account cancellation request mailed message displayed.');
 
     // Confirm account cancellation request.
@@ -504,12 +504,12 @@ public function testUserCancelByAdmin() {
 
     // Delete regular user.
     $this->drupalGet('user/' . $account->id() . '/edit');
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertRaw(t('Are you sure you want to cancel the account %name?', ['%name' => $account->getAccountName()]));
     $this->assertText('Select the method to cancel the account above.', 'Allows to select account cancellation method.');
 
     // Confirm deletion.
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertRaw(t('%name has been deleted.', ['%name' => $account->getAccountName()]));
     $this->assertNull(User::load($account->id()), 'User is not found in the database.');
   }
@@ -532,12 +532,12 @@ public function testUserWithoutEmailCancelByAdmin() {
 
     // Delete regular user without email address.
     $this->drupalGet('user/' . $account->id() . '/edit');
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertRaw(t('Are you sure you want to cancel the account %name?', ['%name' => $account->getAccountName()]));
     $this->assertText('Select the method to cancel the account above.', 'Allows to select account cancellation method.');
 
     // Confirm deletion.
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertRaw(t('%name has been deleted.', ['%name' => $account->getAccountName()]));
     $this->assertNull(User::load($account->id()), 'User is not found in the database.');
   }
@@ -569,14 +569,14 @@ public function testMassUserCancelByAdmin() {
     for ($i = 0; $i <= 4; $i++) {
       $edit['user_bulk_form[' . $i . ']'] = TRUE;
     }
-    $this->drupalPostForm('admin/people', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('admin/people', $edit, 'Apply to selected items');
     $this->assertText('Are you sure you want to cancel these user accounts?', 'Confirmation form to cancel accounts displayed.');
     $this->assertText('When cancelling these accounts', 'Allows to select account cancellation method.');
     $this->assertText('Require email confirmation to cancel account', 'Allows to send confirmation mail.');
     $this->assertText('Notify user when account is canceled', 'Allows to send notification mail.');
 
     // Confirm deletion.
-    $this->drupalPostForm(NULL, [], t('Cancel accounts'));
+    $this->drupalPostForm(NULL, [], 'Cancel accounts');
     $status = TRUE;
     foreach ($users as $account) {
       $status = $status && (strpos($this->getTextContent(), $account->getAccountName() . ' has been deleted.') !== FALSE);
diff --git a/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php b/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php
index c67b578f2829..a725fc691ce2 100644
--- a/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php
+++ b/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php
@@ -41,7 +41,7 @@ public function testUserAdd() {
       'pass[pass2]' => $pass,
       'notify' => TRUE,
     ];
-    $this->drupalPostForm('admin/people/create', $edit, t('Create new account'));
+    $this->drupalPostForm('admin/people/create', $edit, 'Create new account');
 
     $this->assertText('Unable to send email. Contact the site administrator if the problem persists.');
     $this->assertNoText('A welcome message with further instructions has been emailed to the new user ' . $edit['name'] . '.');
diff --git a/core/modules/user/tests/src/Functional/UserCreateTest.php b/core/modules/user/tests/src/Functional/UserCreateTest.php
index fc2384b9e7ca..b0c9992b181a 100644
--- a/core/modules/user/tests/src/Functional/UserCreateTest.php
+++ b/core/modules/user/tests/src/Functional/UserCreateTest.php
@@ -105,7 +105,7 @@ public function testUserAdd() {
         'pass[pass2]' => $pass,
         'notify' => $notify,
       ];
-      $this->drupalPostForm('admin/people/create', $edit, t('Create new account'));
+      $this->drupalPostForm('admin/people/create', $edit, 'Create new account');
 
       if ($notify) {
         $this->assertText('A welcome message with further instructions has been emailed to the new user ' . $edit['name'] . '.', 'User created');
@@ -132,7 +132,7 @@ public function testUserAdd() {
       'pass[pass2]' => 0,
       'notify' => FALSE,
     ];
-    $this->drupalPostForm('admin/people/create', $edit, t('Create new account'));
+    $this->drupalPostForm('admin/people/create', $edit, 'Create new account');
     $this->assertText("Created a new user account for $name. No email has been sent");
     $this->assertNoText('Password field is required');
   }
diff --git a/core/modules/user/tests/src/Functional/UserEditTest.php b/core/modules/user/tests/src/Functional/UserEditTest.php
index b90db34c65e1..4cf8179e438e 100644
--- a/core/modules/user/tests/src/Functional/UserEditTest.php
+++ b/core/modules/user/tests/src/Functional/UserEditTest.php
@@ -28,7 +28,7 @@ public function testUserEdit() {
 
     // Test that error message appears when attempting to use a non-unique user name.
     $edit['name'] = $user2->getAccountName();
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertRaw(t('The username %name is already taken.', ['%name' => $edit['name']]));
 
     // Check that the default value in user name field
@@ -48,35 +48,35 @@ public function testUserEdit() {
     $edit = [];
     $edit['pass[pass1]'] = '';
     $edit['pass[pass2]'] = $this->randomMachineName();
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertText("The specified passwords do not match.", 'Typing mismatched passwords displays an error message.');
 
     $edit['pass[pass1]'] = $this->randomMachineName();
     $edit['pass[pass2]'] = '';
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertText("The specified passwords do not match.", 'Typing mismatched passwords displays an error message.');
 
     // Test that the error message appears when attempting to change the mail or
     // pass without the current password.
     $edit = [];
     $edit['mail'] = $this->randomMachineName() . '@new.example.com';
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertRaw(t("Your current password is missing or incorrect; it's required to change the %name.", ['%name' => t('Email')]));
 
     $edit['current_pass'] = $user1->passRaw;
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertRaw(t("The changes have been saved."));
 
     // Test that the user must enter current password before changing passwords.
     $edit = [];
     $edit['pass[pass1]'] = $new_pass = $this->randomMachineName();
     $edit['pass[pass2]'] = $new_pass;
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertRaw(t("Your current password is missing or incorrect; it's required to change the %name.", ['%name' => t('Password')]));
 
     // Try again with the current password.
     $edit['current_pass'] = $user1->passRaw;
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertRaw(t("The changes have been saved."));
 
     // Make sure the changed timestamp is updated.
@@ -93,11 +93,11 @@ public function testUserEdit() {
     $this->drupalLogin($user1);
 
     $config->set('password_strength', TRUE)->save();
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertRaw(t('Password strength:'));
 
     $config->set('password_strength', FALSE)->save();
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertNoRaw(t('Password strength:'));
 
     // Check that the user status field has the correct value and that it is
@@ -110,13 +110,13 @@ public function testUserEdit() {
     $this->assertSession()->checkboxChecked('edit-status-1');
 
     $edit = ['status' => 0];
-    $this->drupalPostForm('user/' . $user1->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('user/' . $user1->id() . '/edit', $edit, 'Save');
     $this->assertText('The changes have been saved.');
     $this->assertSession()->checkboxChecked('edit-status-0');
     $this->assertSession()->checkboxNotChecked('edit-status-1');
 
     $edit = ['status' => 1];
-    $this->drupalPostForm('user/' . $user1->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('user/' . $user1->id() . '/edit', $edit, 'Save');
     $this->assertText('The changes have been saved.');
     $this->assertSession()->checkboxNotChecked('edit-status-0');
     $this->assertSession()->checkboxChecked('edit-status-1');
@@ -136,7 +136,7 @@ public function testUserWith0Password() {
     $user1 = $this->drupalCreateUser([]);
 
     $edit = ['pass[pass1]' => '0', 'pass[pass2]' => '0'];
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, 'Save');
     $this->assertRaw(t("The changes have been saved."));
   }
 
@@ -152,7 +152,7 @@ public function testUserWithoutEmailEdit() {
     // This user has no email address.
     $user1->mail = '';
     $user1->save();
-    $this->drupalPostForm("user/" . $user1->id() . "/edit", ['mail' => ''], t('Save'));
+    $this->drupalPostForm("user/" . $user1->id() . "/edit", ['mail' => ''], 'Save');
     $this->assertRaw(t("The changes have been saved."));
   }
 
diff --git a/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php b/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php
index 4fe8d0a6baa2..a649ec35c1a4 100644
--- a/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php
+++ b/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php
@@ -29,7 +29,7 @@ public function testUserEditedOwnAccount() {
     // Change own username.
     $edit = [];
     $edit['name'] = $this->randomMachineName();
-    $this->drupalPostForm('user/' . $account->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('user/' . $account->id() . '/edit', $edit, 'Save');
 
     // Log out.
     $this->drupalLogout();
diff --git a/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php b/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php
index 2598f2a3e10d..dcea3333e8a4 100644
--- a/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php
+++ b/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php
@@ -45,7 +45,7 @@ public function testLocalUserCreation() {
     $edit = [
       'language_interface[enabled][language-url]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
     $this->assertText('Language detection configuration saved.', 'Set language negotiation.');
 
     // Check if the language selector is available on admin/people/create and
@@ -63,7 +63,7 @@ public function testLocalUserCreation() {
       'pass[pass2]' => $username,
     ];
 
-    $this->drupalPostForm($langcode . '/admin/people/create', $edit, t('Create new account'));
+    $this->drupalPostForm($langcode . '/admin/people/create', $edit, 'Create new account');
 
     $user = user_load_by_name($username);
     $this->assertEqual($user->getPreferredLangcode(), $langcode, 'New user has correct preferred language set.');
@@ -81,7 +81,7 @@ public function testLocalUserCreation() {
       'mail' => $this->randomMachineName(4) . '@example.com',
     ];
 
-    $this->drupalPostForm($langcode . '/user/register', $edit, t('Create new account'));
+    $this->drupalPostForm($langcode . '/user/register', $edit, 'Create new account');
 
     $user = user_load_by_name($username);
     $this->assertEqual($user->getPreferredLangcode(), $langcode, 'New user has correct preferred language set.');
@@ -102,7 +102,7 @@ public function testLocalUserCreation() {
       'pass[pass2]' => $user->passRaw,
     ];
 
-    $this->drupalPostForm($user_edit, $edit, t('Save'));
+    $this->drupalPostForm($user_edit, $edit, 'Save');
 
     $this->drupalLogin($user);
     $this->drupalGet($user_edit);
diff --git a/core/modules/user/tests/src/Functional/UserLanguageTest.php b/core/modules/user/tests/src/Functional/UserLanguageTest.php
index 6cfbbb5975a7..d16ebaab5ad2 100644
--- a/core/modules/user/tests/src/Functional/UserLanguageTest.php
+++ b/core/modules/user/tests/src/Functional/UserLanguageTest.php
@@ -48,7 +48,7 @@ public function testUserLanguageConfiguration() {
       'label' => $name,
       'direction' => LanguageInterface::DIRECTION_LTR,
     ];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add custom language');
     $this->drupalLogout();
 
     // Log in as normal user and edit account settings.
@@ -63,7 +63,7 @@ public function testUserLanguageConfiguration() {
     $edit = [
       'preferred_langcode' => $langcode,
     ];
-    $this->drupalPostForm($path, $edit, t('Save'));
+    $this->drupalPostForm($path, $edit, 'Save');
     // Ensure form was submitted successfully.
     $this->assertText('The changes have been saved.', 'Changes were saved.');
     // Check if language was changed.
diff --git a/core/modules/user/tests/src/Functional/UserLoginTest.php b/core/modules/user/tests/src/Functional/UserLoginTest.php
index ff4f59dabb38..405470a161ef 100644
--- a/core/modules/user/tests/src/Functional/UserLoginTest.php
+++ b/core/modules/user/tests/src/Functional/UserLoginTest.php
@@ -35,7 +35,7 @@ public function testLoginCacheTagsAndDestination() {
     $user = $this->drupalCreateUser([]);
     $this->drupalGet('user/login', ['query' => ['destination' => 'foo']]);
     $edit = ['name' => $user->getAccountName(), 'pass' => $user->passRaw];
-    $this->drupalPostForm(NULL, $edit, t('Log in'));
+    $this->drupalPostForm(NULL, $edit, 'Log in');
     $this->assertSession()->addressEquals('foo');
   }
 
@@ -171,7 +171,7 @@ public function assertFailedLogin($account, $flood_trigger = NULL) {
       'name' => $account->getAccountName(),
       'pass' => $account->passRaw,
     ];
-    $this->drupalPostForm('user/login', $edit, t('Log in'));
+    $this->drupalPostForm('user/login', $edit, 'Log in');
     if (isset($flood_trigger)) {
       $this->assertSession()->statusCodeEquals(403);
       $this->assertSession()->fieldNotExists('pass');
diff --git a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
index adb59712d5ce..d6a9af5cd349 100644
--- a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
+++ b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
@@ -82,13 +82,13 @@ public function testUserPasswordReset() {
     // Try to reset the password for an invalid account.
     $this->drupalGet('user/password');
     $edit = ['name' => $this->randomMachineName()];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $this->assertNoValidPasswordReset($edit['name']);
 
     // Reset the password by username via the password reset page.
     $this->drupalGet('user/password');
     $edit = ['name' => $this->account->getAccountName()];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $this->assertValidPasswordReset($edit['name']);
 
     $resetURL = $this->getResetURL();
@@ -108,24 +108,24 @@ public function testUserPasswordReset() {
     $this->assertSession()->titleEquals('Reset password | Drupal');
 
     // Check successful login.
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
     $this->assertSession()->linkExists('Log out');
     $this->assertSession()->titleEquals($this->account->getAccountName() . ' | Drupal');
 
     // Change the forgotten password.
     $password = \Drupal::service('password_generator')->generate();
     $edit = ['pass[pass1]' => $password, 'pass[pass2]' => $password];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('The changes have been saved.', 'Forgotten password changed.');
 
     // Verify that the password reset session has been destroyed.
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText("Your current password is missing or incorrect; it's required to change the Password.", 'Password needed to make profile changes.');
 
     // Log out, and try to log in again using the same one-time link.
     $this->drupalLogout();
     $this->drupalGet($resetURL);
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
     $this->assertText('You have tried to use a one-time login link that has either been used or is no longer valid. Please request a new one using the form below.', 'One-time link is no longer valid.');
 
     // Request a new password again, this time using the email address.
@@ -133,7 +133,7 @@ public function testUserPasswordReset() {
     $before = count($this->drupalGetMails(['id' => 'user_password_reset']));
     $this->drupalGet('user/password');
     $edit = ['name' => $this->account->getEmail()];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $this->assertValidPasswordReset($edit['name']);
     $this->assertCount($before + 1, $this->drupalGetMails(['id' => 'user_password_reset']), 'Email sent when requesting password reset using email address.');
 
@@ -141,7 +141,7 @@ public function testUserPasswordReset() {
     // not cause an error.
     $resetURL = $this->getResetURL();
     $this->drupalGet($resetURL);
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
     $this->drupalGet('user/' . $this->account->id() . '/edit');
     $this->assertNoText('Expected user_string to be a string, NULL given');
     $this->drupalLogout();
@@ -151,7 +151,7 @@ public function testUserPasswordReset() {
     $bogus_timestamp = REQUEST_TIME - $timeout - 60;
     $_uid = $this->account->id();
     $this->drupalGet("user/reset/$_uid/$bogus_timestamp/" . user_pass_rehash($this->account, $bogus_timestamp));
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
     $this->assertText('You have tried to use a one-time login link that has expired. Please request a new one using the form below.', 'Expired password reset request rejected.');
 
     // Create a user, block the account, and verify that a login link is denied.
@@ -166,26 +166,26 @@ public function testUserPasswordReset() {
     // Count email messages before to compare with after.
     $before = count($this->drupalGetMails(['id' => 'user_password_reset']));
     $edit = ['name' => $blocked_account->getAccountName()];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $this->assertRaw(t('%name is blocked or has not been activated yet.', ['%name' => $blocked_account->getAccountName()]));
     $this->assertCount($before, $this->drupalGetMails(['id' => 'user_password_reset']), 'No email was sent when requesting password reset for a blocked account');
 
     // Verify a password reset link is invalidated when the user's email address changes.
     $this->drupalGet('user/password');
     $edit = ['name' => $this->account->getAccountName()];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $old_email_reset_link = $this->getResetURL();
     $this->account->setEmail("1" . $this->account->getEmail());
     $this->account->save();
     $this->drupalGet($old_email_reset_link);
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
     $this->assertText('You have tried to use a one-time login link that has either been used or is no longer valid. Please request a new one using the form below.', 'One-time link is no longer valid.');
 
     // Verify a password reset link will automatically log a user when /login is
     // appended.
     $this->drupalGet('user/password');
     $edit = ['name' => $this->account->getAccountName()];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $reset_url = $this->getResetURL();
     $this->drupalGet($reset_url . '/login');
     $this->assertSession()->linkExists('Log out');
@@ -225,7 +225,7 @@ public function testUserPasswordResetLoggedIn() {
     $another_account = $this->drupalCreateUser();
     $this->drupalLogin($another_account);
     $this->drupalGet('user/password');
-    $this->drupalPostForm(NULL, [], t('Submit'));
+    $this->drupalPostForm(NULL, [], 'Submit');
 
     // Click the reset URL while logged and change our password.
     $resetURL = $this->getResetURL();
@@ -246,17 +246,17 @@ public function testUserPasswordResetLoggedIn() {
 
     // Reset the password by username via the password reset page.
     $this->drupalGet('user/password');
-    $this->drupalPostForm(NULL, [], t('Submit'));
+    $this->drupalPostForm(NULL, [], 'Submit');
 
     // Click the reset URL while logged and change our password.
     $resetURL = $this->getResetURL();
     $this->drupalGet($resetURL);
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
 
     // Change the password.
     $password = \Drupal::service('password_generator')->generate();
     $edit = ['pass[pass1]' => $password, 'pass[pass2]' => $password];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('The changes have been saved.', 'Password changed.');
 
     // Logged in users should not be able to access the user.reset.login or the
@@ -277,7 +277,7 @@ public function testUserResetPasswordTextboxFilled() {
       'name' => $this->randomMachineName(),
       'pass' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('user/login', $edit, t('Log in'));
+    $this->drupalPostForm('user/login', $edit, 'Log in');
     $this->assertRaw(t('Unrecognized username or password. <a href=":password">Forgot your password?</a>',
       [':password' => Url::fromRoute('user.pass', [], ['query' => ['name' => $edit['name']]])->toString()]));
     unset($edit['pass']);
@@ -301,14 +301,14 @@ public function testUserResetPasswordUserFloodControl() {
     // Try 3 requests that should not trigger flood control.
     for ($i = 0; $i < 3; $i++) {
       $this->drupalGet('user/password');
-      $this->drupalPostForm(NULL, $edit, t('Submit'));
+      $this->drupalPostForm(NULL, $edit, 'Submit');
       $this->assertValidPasswordReset($edit['name']);
       $this->assertNoPasswordUserFlood();
     }
 
     // The next request should trigger flood control.
     $this->drupalGet('user/password');
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $this->assertPasswordUserFlood();
   }
 
@@ -324,7 +324,7 @@ public function testUserResetPasswordIpFloodControl() {
     for ($i = 0; $i < 3; $i++) {
       $this->drupalGet('user/password');
       $edit = ['name' => $this->randomMachineName()];
-      $this->drupalPostForm(NULL, $edit, t('Submit'));
+      $this->drupalPostForm(NULL, $edit, 'Submit');
       // Because we're testing with a random name, the password reset will not be valid.
       $this->assertNoValidPasswordReset($edit['name']);
       $this->assertNoPasswordIpFlood();
@@ -333,7 +333,7 @@ public function testUserResetPasswordIpFloodControl() {
     // The next request should trigger flood control.
     $this->drupalGet('user/password');
     $edit = ['name' => $this->randomMachineName()];
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $this->assertPasswordIpFlood();
   }
 
@@ -350,7 +350,7 @@ public function testUserResetPasswordUserFloodControlIsCleared() {
     // Try 3 requests that should not trigger flood control.
     for ($i = 0; $i < 3; $i++) {
       $this->drupalGet('user/password');
-      $this->drupalPostForm(NULL, $edit, t('Submit'));
+      $this->drupalPostForm(NULL, $edit, 'Submit');
       $this->assertValidPasswordReset($edit['name']);
       $this->assertNoPasswordUserFlood();
     }
@@ -365,7 +365,7 @@ public function testUserResetPasswordUserFloodControlIsCleared() {
     // The next request should *not* trigger flood control, since a successful
     // password reset should have cleared flood events for this user.
     $this->drupalGet('user/password');
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
     $this->assertValidPasswordReset($edit['name']);
     $this->assertNoPasswordUserFlood();
   }
@@ -452,7 +452,7 @@ public function testResetImpersonation() {
     $reset_url = user_pass_reset_url($user1);
     $attack_reset_url = str_replace("user/reset/{$user1->id()}", "user/reset/{$user2->id()}", $reset_url);
     $this->drupalGet($attack_reset_url);
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
     $this->assertNoText($user2->getAccountName(), 'The invalid password reset page does not show the user name.');
     $this->assertSession()->addressEquals('user/password');
     $this->assertText('You have tried to use a one-time login link that has either been used or is no longer valid. Please request a new one using the form below.');
diff --git a/core/modules/user/tests/src/Functional/UserPermissionsTest.php b/core/modules/user/tests/src/Functional/UserPermissionsTest.php
index 9b7973499efc..0532c834a62c 100644
--- a/core/modules/user/tests/src/Functional/UserPermissionsTest.php
+++ b/core/modules/user/tests/src/Functional/UserPermissionsTest.php
@@ -72,7 +72,7 @@ public function testUserPermissionChanges() {
     $this->assertFalse($account->hasPermission('administer users'), 'User does not have "administer users" permission.');
     $edit = [];
     $edit[$rid . '[administer users]'] = TRUE;
-    $this->drupalPostForm('admin/people/permissions', $edit, t('Save permissions'));
+    $this->drupalPostForm('admin/people/permissions', $edit, 'Save permissions');
     $this->assertText('The changes have been saved.', 'Successful save message displayed.');
     $storage->resetCache();
     $this->assertTrue($account->hasPermission('administer users'), 'User now has "administer users" permission.');
@@ -85,7 +85,7 @@ public function testUserPermissionChanges() {
     $this->assertTrue($account->hasPermission('access user profiles'), 'User has "access user profiles" permission.');
     $edit = [];
     $edit[$rid . '[access user profiles]'] = FALSE;
-    $this->drupalPostForm('admin/people/permissions', $edit, t('Save permissions'));
+    $this->drupalPostForm('admin/people/permissions', $edit, 'Save permissions');
     $this->assertText('The changes have been saved.', 'Successful save message displayed.');
     $storage->resetCache();
     $this->assertFalse($account->hasPermission('access user profiles'), 'User no longer has "access user profiles" permission.');
@@ -116,7 +116,7 @@ public function testAdministratorRole() {
     // Set the user's role to be the administrator role.
     $edit = [];
     $edit['user_admin_role'] = $this->rid;
-    $this->drupalPostForm('admin/config/people/accounts', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/people/accounts', $edit, 'Save configuration');
 
     \Drupal::entityTypeManager()->getStorage('user_role')->resetCache();
     $this->assertTrue(Role::load($this->rid)->isAdmin());
@@ -130,7 +130,7 @@ public function testAdministratorRole() {
     // Ensure that selecting '- None -' removes the admin role.
     $edit = [];
     $edit['user_admin_role'] = '';
-    $this->drupalPostForm('admin/config/people/accounts', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/people/accounts', $edit, 'Save configuration');
 
     \Drupal::entityTypeManager()->getStorage('user_role')->resetCache();
     \Drupal::configFactory()->reset();
diff --git a/core/modules/user/tests/src/Functional/UserPictureTest.php b/core/modules/user/tests/src/Functional/UserPictureTest.php
index 7f1f38e716a7..a13623944e05 100644
--- a/core/modules/user/tests/src/Functional/UserPictureTest.php
+++ b/core/modules/user/tests/src/Functional/UserPictureTest.php
@@ -76,8 +76,8 @@ public function testCreateDeletePicture() {
 
     // Delete the picture.
     $edit = [];
-    $this->drupalPostForm('user/' . $this->webUser->id() . '/edit', $edit, t('Remove'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('user/' . $this->webUser->id() . '/edit', $edit, 'Remove');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Call file_cron() to clean up the file. Make sure the timestamp
     // of the file is older than the system.file.temporary_maximum_age
@@ -132,7 +132,7 @@ public function testPictureOnNodeComment() {
     $edit = [
       'comment_body[0][value]' => $this->randomString(),
     ];
-    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit, t('Save'));
+    $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit, 'Save');
     $elements = $this->cssSelect('.comment__meta .field--name-user-picture img[alt="' . $alt_text . '"][src="' . $image_url . '"]');
     $this->assertCount(1, $elements, 'User picture with alt text found on the comment.');
 
@@ -151,7 +151,7 @@ public function testPictureOnNodeComment() {
    */
   public function saveUserPicture($image) {
     $edit = ['files[user_picture_0]' => \Drupal::service('file_system')->realpath($image->uri)];
-    $this->drupalPostForm('user/' . $this->webUser->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('user/' . $this->webUser->id() . '/edit', $edit, 'Save');
 
     // Load actual user data from database.
     $user_storage = $this->container->get('entity_type.manager')->getStorage('user');
diff --git a/core/modules/user/tests/src/Functional/UserRegistrationTest.php b/core/modules/user/tests/src/Functional/UserRegistrationTest.php
index 6800b353e937..469346d9fd25 100644
--- a/core/modules/user/tests/src/Functional/UserRegistrationTest.php
+++ b/core/modules/user/tests/src/Functional/UserRegistrationTest.php
@@ -45,7 +45,7 @@ public function testRegistrationWithEmailVerification() {
     $edit = [];
     $edit['name'] = $name = $this->randomMachineName();
     $edit['mail'] = $mail = $edit['name'] . '@example.com';
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertText('A welcome message with further instructions has been sent to your email address.', 'User registered successfully.');
 
     /** @var EntityStorageInterface $storage */
@@ -62,7 +62,7 @@ public function testRegistrationWithEmailVerification() {
     $edit = [];
     $edit['name'] = $name = $this->randomMachineName();
     $edit['mail'] = $mail = $edit['name'] . '@example.com';
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->container->get('entity_type.manager')->getStorage('user')->resetCache();
     $accounts = $storage->loadByProperties(['name' => $name, 'mail' => $mail]);
     $new_user = reset($accounts);
@@ -85,13 +85,13 @@ public function testRegistrationWithoutEmailVerification() {
     // Try entering a mismatching password.
     $edit['pass[pass1]'] = '99999.0';
     $edit['pass[pass2]'] = '99999';
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertText('The specified passwords do not match.', 'Typing mismatched passwords displays an error message.');
 
     // Enter a correct password.
     $edit['pass[pass1]'] = $new_pass = $this->randomMachineName();
     $edit['pass[pass2]'] = $new_pass;
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->container->get('entity_type.manager')->getStorage('user')->resetCache();
     $accounts = $this->container->get('entity_type.manager')->getStorage('user')
       ->loadByProperties(['name' => $name, 'mail' => $mail]);
@@ -107,7 +107,7 @@ public function testRegistrationWithoutEmailVerification() {
     $edit['mail'] = $mail = $edit['name'] . '@example.com';
     $edit['pass[pass1]'] = $pass = $this->randomMachineName();
     $edit['pass[pass2]'] = $pass;
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertText('Thank you for applying for an account. Your account is currently pending approval by the site administrator.', 'Users are notified of pending approval');
 
     // Try to log in before administrator approval.
@@ -115,7 +115,7 @@ public function testRegistrationWithoutEmailVerification() {
       'name' => $name,
       'pass' => $pass,
     ];
-    $this->drupalPostForm('user/login', $auth, t('Log in'));
+    $this->drupalPostForm('user/login', $auth, 'Log in');
     $this->assertText('The username ' . $name . ' has not been activated or is blocked.', 'User cannot log in yet.');
 
     // Activate the new account.
@@ -127,11 +127,11 @@ public function testRegistrationWithoutEmailVerification() {
     $edit = [
       'status' => 1,
     ];
-    $this->drupalPostForm('user/' . $new_user->id() . '/edit', $edit, t('Save'));
+    $this->drupalPostForm('user/' . $new_user->id() . '/edit', $edit, 'Save');
     $this->drupalLogout();
 
     // Log in after administrator approval.
-    $this->drupalPostForm('user/login', $auth, t('Log in'));
+    $this->drupalPostForm('user/login', $auth, 'Log in');
     $this->assertText('Member for', 'User can log in after administrator approval.');
   }
 
@@ -151,13 +151,13 @@ public function testRegistrationEmailDuplicates() {
     $edit['mail'] = $duplicate_user->getEmail();
 
     // Attempt to create a new account using an existing email address.
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertText('The email address ' . $duplicate_user->getEmail() . ' is already taken.', 'Supplying an exact duplicate email address displays an error message');
 
     // Attempt to bypass duplicate email registration validation by adding spaces.
     $edit['mail'] = '   ' . $duplicate_user->getEmail() . '   ';
 
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertText('The email address ' . $duplicate_user->getEmail() . ' is already taken.', 'Supplying a duplicate email address with added whitespace displays an error message');
   }
 
@@ -210,7 +210,7 @@ public function testUuidFormState() {
     $edit['pass[pass2]'] = $edit['pass[pass1]'] = $this->randomMachineName();
 
     // Create one account.
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertSession()->statusCodeEquals(200);
 
     $user_storage = \Drupal::entityTypeManager()->getStorage('user');
@@ -223,7 +223,7 @@ public function testUuidFormState() {
     $edit['mail'] = $edit['name'] . '@example.com';
     $edit['pass[pass2]'] = $edit['pass[pass1]'] = $this->randomMachineName();
 
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertSession()->statusCodeEquals(200);
 
     $this->assertNotEmpty($user_storage->loadByProperties(['name' => $edit['name']]));
@@ -252,7 +252,7 @@ public function testRegistrationDefaultValues() {
     $edit['mail'] = $mail = $edit['name'] . '@example.com';
     $edit['pass[pass1]'] = $new_pass = $this->randomMachineName();
     $edit['pass[pass2]'] = $new_pass;
-    $this->drupalPostForm(NULL, $edit, t('Create new account'));
+    $this->drupalPostForm(NULL, $edit, 'Create new account');
 
     // Check user fields.
     $accounts = $this->container->get('entity_type.manager')->getStorage('user')
@@ -278,11 +278,11 @@ public function testUniqueFields() {
     $account = $this->drupalCreateUser();
 
     $edit = ['mail' => 'test@example.com', 'name' => $account->getAccountName()];
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertRaw(new FormattableMarkup('The username %value is already taken.', ['%value' => $account->getAccountName()]));
 
     $edit = ['mail' => $account->getEmail(), 'name' => $this->randomString()];
-    $this->drupalPostForm('user/register', $edit, t('Create new account'));
+    $this->drupalPostForm('user/register', $edit, 'Create new account');
     $this->assertRaw(new FormattableMarkup('The email address %value is already taken.', ['%value' => $account->getEmail()]));
   }
 
@@ -336,19 +336,19 @@ public function testRegistrationWithUserFields() {
     $edit['mail'] = $mail = $edit['name'] . '@example.com';
     // Missing input in required field.
     $edit['test_user_field[0][value]'] = '';
-    $this->drupalPostForm(NULL, $edit, t('Create new account'));
+    $this->drupalPostForm(NULL, $edit, 'Create new account');
     $this->assertRegistrationFormCacheTagsWithUserFields();
     $this->assertRaw(t('@name field is required.', ['@name' => $field->label()]));
     // Invalid input.
     $edit['test_user_field[0][value]'] = '-1';
-    $this->drupalPostForm(NULL, $edit, t('Create new account'));
+    $this->drupalPostForm(NULL, $edit, 'Create new account');
     $this->assertRegistrationFormCacheTagsWithUserFields();
     $this->assertRaw(t('%name does not accept the value -1.', ['%name' => $field->label()]));
 
     // Submit with valid data.
     $value = rand(1, 255);
     $edit['test_user_field[0][value]'] = $value;
-    $this->drupalPostForm(NULL, $edit, t('Create new account'));
+    $this->drupalPostForm(NULL, $edit, 'Create new account');
     // Check user fields.
     $accounts = $this->container->get('entity_type.manager')->getStorage('user')
       ->loadByProperties(['name' => $name, 'mail' => $mail]);
@@ -364,14 +364,14 @@ public function testRegistrationWithUserFields() {
     $value = rand(1, 255);
     $edit = [];
     $edit['test_user_field[0][value]'] = $value;
-    $this->drupalPostForm(NULL, $edit, t('Add another item'));
-    $this->drupalPostForm(NULL, $edit, t('Add another item'));
+    $this->drupalPostForm(NULL, $edit, 'Add another item');
+    $this->drupalPostForm(NULL, $edit, 'Add another item');
     // Submit with three values.
     $edit['test_user_field[1][value]'] = $value + 1;
     $edit['test_user_field[2][value]'] = $value + 2;
     $edit['name'] = $name = $this->randomMachineName();
     $edit['mail'] = $mail = $edit['name'] . '@example.com';
-    $this->drupalPostForm(NULL, $edit, t('Create new account'));
+    $this->drupalPostForm(NULL, $edit, 'Create new account');
     // Check user fields.
     $accounts = $this->container->get('entity_type.manager')->getStorage('user')
       ->loadByProperties(['name' => $name, 'mail' => $mail]);
diff --git a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
index b71e2030200c..6fa02b7997dc 100644
--- a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
@@ -63,7 +63,7 @@ public function testRoleAdministration() {
     // correctly distinguish between role names and IDs.)
     $role_name = '123';
     $edit = ['label' => $role_name, 'id' => $role_name];
-    $this->drupalPostForm('admin/people/roles/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/people/roles/add', $edit, 'Save');
     $this->assertRaw(t('Role %label has been added.', ['%label' => 123]));
     $role = Role::load($role_name);
     $this->assertIsObject($role);
@@ -72,13 +72,13 @@ public function testRoleAdministration() {
     $this->assertEqual($role->language()->getId(), $default_langcode);
 
     // Try adding a duplicate role.
-    $this->drupalPostForm('admin/people/roles/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/people/roles/add', $edit, 'Save');
     $this->assertRaw(t('The machine-readable name is already in use. It must be unique.'));
 
     // Test renaming a role.
     $role_name = '456';
     $edit = ['label' => $role_name];
-    $this->drupalPostForm("admin/people/roles/manage/{$role->id()}", $edit, t('Save'));
+    $this->drupalPostForm("admin/people/roles/manage/{$role->id()}", $edit, 'Save');
     $this->assertRaw(t('Role %label has been updated.', ['%label' => $role_name]));
     \Drupal::entityTypeManager()->getStorage('user_role')->resetCache([$role->id()]);
     $new_role = Role::load($role->id());
@@ -87,7 +87,7 @@ public function testRoleAdministration() {
     // Test deleting a role.
     $this->drupalGet("admin/people/roles/manage/{$role->id()}");
     $this->clickLink(t('Delete'));
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('The role %label has been deleted.', ['%label' => $role_name]));
     $this->assertSession()->linkByHrefNotExists("admin/people/roles/manage/{$role->id()}", 'Role edit link removed.');
     \Drupal::entityTypeManager()->getStorage('user_role')->resetCache([$role->id()]);
@@ -121,7 +121,7 @@ public function testRoleWeightOrdering() {
       $saved_rids[] = $role->id();
       $weight--;
     }
-    $this->drupalPostForm('admin/people/roles', $edit, t('Save'));
+    $this->drupalPostForm('admin/people/roles', $edit, 'Save');
     $this->assertText('The role settings have been updated.', 'The role settings form submitted successfully.');
 
     // Load up the user roles with the new weights.
diff --git a/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php b/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
index 9b6fca3eabf7..c7f6b4552f53 100644
--- a/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
+++ b/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
@@ -34,13 +34,13 @@ public function testAssignAndRemoveRole() {
     $account = $this->drupalCreateUser();
 
     // Assign the role to the user.
-    $this->drupalPostForm('user/' . $account->id() . '/edit', ["roles[$rid]" => $rid], t('Save'));
+    $this->drupalPostForm('user/' . $account->id() . '/edit', ["roles[$rid]" => $rid], 'Save');
     $this->assertText('The changes have been saved.');
     $this->assertSession()->checkboxChecked('edit-roles-' . $rid);
     $this->userLoadAndCheckRoleAssigned($account, $rid);
 
     // Remove the role from the user.
-    $this->drupalPostForm('user/' . $account->id() . '/edit', ["roles[$rid]" => FALSE], t('Save'));
+    $this->drupalPostForm('user/' . $account->id() . '/edit', ["roles[$rid]" => FALSE], 'Save');
     $this->assertText('The changes have been saved.');
     $this->assertSession()->checkboxNotChecked('edit-roles-' . $rid);
     $this->userLoadAndCheckRoleAssigned($account, $rid, FALSE);
@@ -60,7 +60,7 @@ public function testCreateUserWithRole() {
       'pass[pass2]' => $pass,
       "roles[$rid]" => $rid,
     ];
-    $this->drupalPostForm('admin/people/create', $edit, t('Create new account'));
+    $this->drupalPostForm('admin/people/create', $edit, 'Create new account');
     $this->assertText('Created a new user account for ' . $edit['name'] . '.');
     // Get the newly added user.
     $account = user_load_by_name($edit['name']);
@@ -70,7 +70,7 @@ public function testCreateUserWithRole() {
     $this->userLoadAndCheckRoleAssigned($account, $rid);
 
     // Remove the role again.
-    $this->drupalPostForm('user/' . $account->id() . '/edit', ["roles[$rid]" => FALSE], t('Save'));
+    $this->drupalPostForm('user/' . $account->id() . '/edit', ["roles[$rid]" => FALSE], 'Save');
     $this->assertText('The changes have been saved.');
     $this->assertSession()->checkboxNotChecked('edit-roles-' . $rid);
     $this->userLoadAndCheckRoleAssigned($account, $rid, FALSE);
diff --git a/core/modules/user/tests/src/Functional/UserSearchTest.php b/core/modules/user/tests/src/Functional/UserSearchTest.php
index d2635a7d4b2c..e16b357c6c6f 100644
--- a/core/modules/user/tests/src/Functional/UserSearchTest.php
+++ b/core/modules/user/tests/src/Functional/UserSearchTest.php
@@ -35,32 +35,32 @@ public function testUserSearch() {
     $this->drupalLogin($user1);
     $keys = $user1->getEmail();
     $edit = ['keys' => $keys];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText('Your search yielded no results.', 'Search by email did not work for non-admin user');
     $this->assertText('no results', 'Search by email gave no-match message');
 
     // Verify that a non-matching query gives an appropriate message.
     $keys = 'nomatch';
     $edit = ['keys' => $keys];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText('no results', 'Non-matching search gave appropriate message');
 
     // Verify that a user with search permission can search for users by name.
     $keys = $user1->getAccountName();
     $edit = ['keys' => $keys];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertSession()->linkExists($keys, 0, 'Search by username worked for non-admin user');
 
     // Verify that searching by sub-string works too.
     $subkey = substr($keys, 1, 5);
     $edit = ['keys' => $subkey];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertSession()->linkExists($keys, 0, 'Search by username substring worked for non-admin user');
 
     // Verify that wildcard search works.
     $subkey = substr($keys, 0, 2) . '*' . substr($keys, 4, 2);
     $edit = ['keys' => $subkey];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertSession()->linkExists($keys, 0, 'Search with wildcard worked for non-admin user');
 
     // Verify that a user with 'administer users' permission can search by
@@ -73,27 +73,27 @@ public function testUserSearch() {
     $this->drupalLogin($user2);
     $keys = $user2->getEmail();
     $edit = ['keys' => $keys];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText($keys, 'Search by email works for administrative user');
     $this->assertText($user2->getAccountName(), 'Search by email resulted in username on page for administrative user');
 
     // Verify that a substring works too for email.
     $subkey = substr($keys, 1, 5);
     $edit = ['keys' => $subkey];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText($keys, 'Search by email substring works for administrative user');
     $this->assertText($user2->getAccountName(), 'Search by email substring resulted in username on page for administrative user');
 
     // Verify that wildcard search works for email
     $subkey = substr($keys, 0, 2) . '*' . substr($keys, 4, 2);
     $edit = ['keys' => $subkey];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText($user2->getAccountName(), 'Search for email wildcard resulted in username on page for administrative user');
 
     // Verify that if they search by user name, they see email address too.
     $keys = $user1->getAccountName();
     $edit = ['keys' => $keys];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText($keys, 'Search by username works for admin user');
     $this->assertText($user1->getEmail(), 'Search by username for admin shows email address too');
 
@@ -105,14 +105,14 @@ public function testUserSearch() {
     // Verify that users with "administer users" permissions can see blocked
     // accounts in search results.
     $edit = ['keys' => $blocked_user->getAccountName()];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText($blocked_user->getAccountName(), 'Blocked users are listed on the user search results for users with the "administer users" permission.');
 
     // Verify that users without "administer users" permissions do not see
     // blocked accounts in search results.
     $this->drupalLogin($user1);
     $edit = ['keys' => $blocked_user->getAccountName()];
-    $this->drupalPostForm('search/user', $edit, t('Search'));
+    $this->drupalPostForm('search/user', $edit, 'Search');
     $this->assertText('Your search yielded no results.', 'Blocked users are hidden from the user search results.');
 
     // Ensure that a user without access to user profiles cannot access the
diff --git a/core/modules/user/tests/src/Functional/UserSubAdminTest.php b/core/modules/user/tests/src/Functional/UserSubAdminTest.php
index 4e467f9e4557..22826b57783a 100644
--- a/core/modules/user/tests/src/Functional/UserSubAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserSubAdminTest.php
@@ -55,7 +55,7 @@ public function testSubAdmin() {
     $this->assertSession()->responseContains('Disable the account and keep its content. This action cannot be undone.');
 
     // Test that cancel confirmation gives an admin style message.
-    $this->drupalPostForm(NULL, [], t('Cancel account'));
+    $this->drupalPostForm(NULL, [], 'Cancel account');
     $this->assertSession()->pageTextContains($cancel_user->getAccountName() . ' has been disabled.');
 
     // Repeat with permission to select account cancellation method.
diff --git a/core/modules/user/tests/src/Functional/UserTimeZoneTest.php b/core/modules/user/tests/src/Functional/UserTimeZoneTest.php
index 9ab8ffce614e..e3f1fda0aa1f 100644
--- a/core/modules/user/tests/src/Functional/UserTimeZoneTest.php
+++ b/core/modules/user/tests/src/Functional/UserTimeZoneTest.php
@@ -71,7 +71,7 @@ public function testUserTimeZone() {
     $edit = [];
     $edit['mail'] = $web_user->getEmail();
     $edit['timezone'] = 'America/Santiago';
-    $this->drupalPostForm("user/" . $web_user->id() . "/edit", $edit, t('Save'));
+    $this->drupalPostForm("user/" . $web_user->id() . "/edit", $edit, 'Save');
     $this->assertText('The changes have been saved.', 'Time zone changed to Santiago time.');
 
     // Confirm date format and time zone.
diff --git a/core/modules/user/tests/src/Functional/UserTranslationUITest.php b/core/modules/user/tests/src/Functional/UserTranslationUITest.php
index 9b8d9ae9159a..b104b5ba94d3 100644
--- a/core/modules/user/tests/src/Functional/UserTranslationUITest.php
+++ b/core/modules/user/tests/src/Functional/UserTranslationUITest.php
@@ -102,7 +102,7 @@ public function testTranslatedUserDeletion() {
       'edit-form',
       ['language' => $this->container->get('language_manager')->getLanguage('en')]
     );
-    $this->drupalPostForm($url, [], t('Cancel account'));
+    $this->drupalPostForm($url, [], 'Cancel account');
     $this->assertSession()->statusCodeEquals(200);
   }
 
diff --git a/core/modules/user/tests/src/Functional/Views/BulkFormAccessTest.php b/core/modules/user/tests/src/Functional/Views/BulkFormAccessTest.php
index ec6378157e34..323d872b6602 100644
--- a/core/modules/user/tests/src/Functional/Views/BulkFormAccessTest.php
+++ b/core/modules/user/tests/src/Functional/Views/BulkFormAccessTest.php
@@ -56,7 +56,7 @@ public function testUserEditAccess() {
       'user_bulk_form[' . ($no_edit_user->id() - 1) . ']' => TRUE,
       'action' => 'user_block_user_action',
     ];
-    $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-user-bulk-form', $edit, 'Apply to selected items');
     $this->assertSession()->statusCodeEquals(200);
 
     $this->assertRaw(new FormattableMarkup('No access to execute %action on the @entity_type_label %entity_label.', [
@@ -77,7 +77,7 @@ public function testUserEditAccess() {
       'user_bulk_form[' . ($normal_user->id() - 1) . ']' => TRUE,
       'action' => 'user_block_user_action',
     ];
-    $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-user-bulk-form', $edit, 'Apply to selected items');
 
     $normal_user = User::load($normal_user->id());
     $this->assertTrue($normal_user->isBlocked(), 'The user is blocked.');
@@ -89,7 +89,7 @@ public function testUserEditAccess() {
       'user_bulk_form[' . ($normal_user->id() - 1) . ']' => TRUE,
       'action' => 'user_unblock_user_action',
     ];
-    $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-user-bulk-form', $edit, 'Apply to selected items');
 
     // Re-load the normal user and ensure it is still blocked.
     $normal_user = User::load($normal_user->id());
@@ -120,11 +120,11 @@ public function testUserDeleteAccess() {
       'user_bulk_form[' . ($account2->id() - 1) . ']' => TRUE,
       'action' => 'user_cancel_user_action',
     ];
-    $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-user-bulk-form', $edit, 'Apply to selected items');
     $edit = [
       'user_cancel_method' => 'user_cancel_delete',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Cancel accounts'));
+    $this->drupalPostForm(NULL, $edit, 'Cancel accounts');
 
     // Ensure the account "no_delete" still exists.
     $account = User::load($account->id());
diff --git a/core/modules/user/tests/src/Functional/Views/BulkFormTest.php b/core/modules/user/tests/src/Functional/Views/BulkFormTest.php
index 9edd0a84e3ca..66862c211490 100644
--- a/core/modules/user/tests/src/Functional/Views/BulkFormTest.php
+++ b/core/modules/user/tests/src/Functional/Views/BulkFormTest.php
@@ -51,7 +51,7 @@ public function testBulkForm() {
     $edit = [
       'action' => 'user_block_user_action',
     ];
-    $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply to selected items'));
+    $this->drupalPostForm('test-user-bulk-form', $edit, 'Apply to selected items');
     $this->assertText('No users selected.');
 
     // Assign a role to a user.
@@ -65,7 +65,7 @@ public function testBulkForm() {
       'user_bulk_form[1]' => TRUE,
       'action' => 'user_add_role_action.' . $role,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     // Re-load the user and check their roles.
     $user_storage->resetCache([$account->id()]);
     $account = $user_storage->load($account->id());
@@ -75,7 +75,7 @@ public function testBulkForm() {
       'user_bulk_form[1]' => TRUE,
       'action' => 'user_remove_role_action.' . $role,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     // Re-load the user and check their roles.
     $user_storage->resetCache([$account->id()]);
     $account = $user_storage->load($account->id());
@@ -88,7 +88,7 @@ public function testBulkForm() {
       'user_bulk_form[1]' => TRUE,
       'action' => 'user_block_user_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     // Re-load the user and check their status.
     $user_storage->resetCache([$account->id()]);
     $account = $user_storage->load($account->id());
@@ -109,7 +109,7 @@ public function testBulkForm() {
       'user_bulk_form[0]' => TRUE,
       'action' => 'user_block_user_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $anonymous_account = $user_storage->load(0);
     $this->assertTrue($anonymous_account->isBlocked(), 'Ensure the anonymous user got blocked.');
 
@@ -124,13 +124,13 @@ public function testBulkForm() {
       'options[include_exclude]' => 'exclude',
       "options[selected_actions][$action_id]" => $action_id,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_user_bulk_form/default/field/user_bulk_form', $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_user_bulk_form/default/field/user_bulk_form', $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->drupalGet('test-user-bulk-form');
     $this->assertSession()->optionNotExists('edit-action', $action_id);
     $edit['options[include_exclude]'] = 'include';
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_user_bulk_form/default/field/user_bulk_form', $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_user_bulk_form/default/field/user_bulk_form', $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->drupalGet('test-user-bulk-form');
     $this->assertSession()->optionExists('edit-action', $action_id);
   }
diff --git a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
index 65a9d8305ba8..74e3847d67f6 100644
--- a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
+++ b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
@@ -105,7 +105,7 @@ public function testAdminUserInterface() {
     $edit = [
       'options[value]' => implode(', ', $users),
     ];
-    $this->drupalPostForm($path, $edit, t('Apply'));
+    $this->drupalPostForm($path, $edit, 'Apply');
     $this->assertRaw(t('There are no entities matching "%value".', ['%value' => implode(', ', $users)]));
 
     // Pass in an invalid username and a valid username.
@@ -116,7 +116,7 @@ public function testAdminUserInterface() {
       'options[value]' => implode(', ', $users),
     ];
     $users = [$users[0]];
-    $this->drupalPostForm($path, $edit, t('Apply'));
+    $this->drupalPostForm($path, $edit, 'Apply');
     $this->assertRaw(t('There are no entities matching "%value".', ['%value' => implode(', ', $users)]));
 
     // Pass in just valid usernames.
@@ -125,7 +125,7 @@ public function testAdminUserInterface() {
     $edit = [
       'options[value]' => implode(', ', $users),
     ];
-    $this->drupalPostForm($path, $edit, t('Apply'));
+    $this->drupalPostForm($path, $edit, 'Apply');
     $this->assertNoRaw(t('There are no entities matching "%value".', ['%value' => implode(', ', $users)]));
   }
 
diff --git a/core/modules/user/tests/src/FunctionalJavascript/UserPasswordResetTest.php b/core/modules/user/tests/src/FunctionalJavascript/UserPasswordResetTest.php
index 9fceb27e1820..7ca1b61cd199 100644
--- a/core/modules/user/tests/src/FunctionalJavascript/UserPasswordResetTest.php
+++ b/core/modules/user/tests/src/FunctionalJavascript/UserPasswordResetTest.php
@@ -86,13 +86,13 @@ public function testUserPasswordResetWithAdditionalAjaxForm() {
 
     // Reset the password by username via the password reset page.
     $edit['name'] = $this->account->getAccountName();
-    $this->drupalPostForm(NULL, $edit, t('Submit'));
+    $this->drupalPostForm(NULL, $edit, 'Submit');
 
     $resetURL = $this->getResetURL();
     $this->drupalGet($resetURL);
 
     // Login
-    $this->drupalPostForm(NULL, [], t('Log in'));
+    $this->drupalPostForm(NULL, [], 'Log in');
 
     // Generate file.
     $image_file = current($this->drupalGetTestFiles('image'));
@@ -105,10 +105,10 @@ public function testUserPasswordResetWithAdditionalAjaxForm() {
     // Change the forgotten password.
     $password = \Drupal::service('password_generator')->generate();
     $edit = ['pass[pass1]' => $password, 'pass[pass2]' => $password];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     // Verify that the password reset session has been destroyed.
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
     // Password needed to make profile changes.
     $this->assertSession()->pageTextContains("Your current password is missing or incorrect; it's required to change the Password.");
   }
diff --git a/core/modules/views/tests/src/Functional/BulkFormTest.php b/core/modules/views/tests/src/Functional/BulkFormTest.php
index b01e94b091e7..bc87fb700f3b 100644
--- a/core/modules/views/tests/src/Functional/BulkFormTest.php
+++ b/core/modules/views/tests/src/Functional/BulkFormTest.php
@@ -79,7 +79,7 @@ public function testBulkForm() {
 
     // Set all nodes to sticky and check that.
     $edit += ['action' => 'node_make_sticky_action'];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
 
     foreach ($nodes as $node) {
       $changed_node = $node_storage->load($node->id());
@@ -93,7 +93,7 @@ public function testBulkForm() {
     $this->assertTrue($node->isPublished(), 'The node is published.');
 
     $edit = ['node_bulk_form[0]' => TRUE, 'action' => 'node_unpublish_action'];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
 
     $this->assertText('Unpublish content was applied to 1 item.');
 
@@ -153,12 +153,12 @@ public function testBulkForm() {
       $edit["node_bulk_form[$i]"] = TRUE;
     }
     $edit += ['action' => 'node_delete_action'];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     // Make sure we don't show an action message while we are still on the
     // confirmation page.
     $errors = $this->xpath('//div[contains(@class, "messages--status")]');
     $this->assertEmpty($errors, 'No action message shown.');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertText('Deleted 5 content items.');
     // Check if we got redirected to the original page.
     $this->assertSession()->addressEquals('test_bulk_form');
@@ -174,7 +174,7 @@ public function testBulkForm() {
       $checkbox->getAttribute('name') => TRUE,
       'action' => 'node_delete_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     // Make sure we just return to the bulk view with no warnings.
     $this->assertSession()->addressEquals('test_bulk_form');
     $errors = $this->xpath('//div[contains(@class, "messages--status")]');
@@ -191,12 +191,12 @@ public function testBulkForm() {
       'node_bulk_form[1]' => TRUE,
       'action' => 'node_delete_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     // Make sure we don't show an action message while we are still on the
     // confirmation page.
     $errors = $this->xpath('//div[contains(@class, "messages--status")]');
     $this->assertEmpty($errors, 'No action message shown.');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertText('Deleted 1 content item.');
 
     // Test that the bulk form works when multiple nodes are selected
@@ -211,7 +211,7 @@ public function testBulkForm() {
       'node_bulk_form[0]' => TRUE,
       'action' => 'node_delete_action',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));
+    $this->drupalPostForm(NULL, $edit, 'Apply to selected items');
     $this->assertText('No content selected.');
   }
 
diff --git a/core/modules/views/tests/src/Functional/Handler/AreaTest.php b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
index 133119a59a31..5dd5315c2c8b 100644
--- a/core/modules/views/tests/src/Functional/Handler/AreaTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
@@ -69,12 +69,12 @@ public function testUI() {
       $edit_path = 'admin/structure/views/nojs/handler/test_example_area/default/' . $type . '/test_example';
 
       // First setup an empty label.
-      $this->drupalPostForm($edit_path, [], t('Apply'));
+      $this->drupalPostForm($edit_path, [], 'Apply');
       $this->assertText('Test Example area');
 
       // Then setup a no empty label.
       $labels[$type] = $this->randomMachineName();
-      $this->drupalPostForm($edit_path, ['options[admin_label]' => $labels[$type]], t('Apply'));
+      $this->drupalPostForm($edit_path, ['options[admin_label]' => $labels[$type]], 'Apply');
       // Make sure that the new label appears on the site.
       $this->assertText($labels[$type]);
 
diff --git a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php
index 52f3cd7280e0..ca4382019285 100644
--- a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php
@@ -195,7 +195,7 @@ protected function _testUiValidation() {
     $edit = [];
     // Generate a definitive wrong value, which should be checked by validation.
     $edit['options[value][value]'] = $this->randomString() . '-------';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertText('Invalid date format.', 'Make sure that validation is run and the invalidate date format is identified.');
   }
 
@@ -205,8 +205,8 @@ protected function _testUiValidation() {
   protected function _testFilterDateUI() {
     $this->drupalLogin($this->drupalCreateUser(['administer views']));
     $this->drupalGet('admin/structure/views/nojs/handler/test_filter_date_between/default/filter/created');
-    $this->drupalPostForm(NULL, [], t('Expose filter'));
-    $this->drupalPostForm(NULL, [], t('Grouped filters'));
+    $this->drupalPostForm(NULL, [], 'Expose filter');
+    $this->drupalPostForm(NULL, [], 'Grouped filters');
 
     $edit = [];
     $edit['options[group_info][group_items][1][title]'] = 'simple-offset';
@@ -223,7 +223,7 @@ protected function _testFilterDateUI() {
     $edit['options[group_info][group_items][3][value][min]'] = $this->dateFormatter->format(150000, 'custom', 'Y-m-d H:i:s');
     $edit['options[group_info][group_items][3][value][max]'] = $this->dateFormatter->format(250000, 'custom', 'Y-m-d H:i:s');
 
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_filter_date_between/default/filter/created');
     foreach ($edit as $name => $value) {
@@ -234,14 +234,14 @@ protected function _testFilterDateUI() {
       }
     }
 
-    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between', [], 'Save');
     $this->assertConfigSchemaByName('views.view.test_filter_date_between');
 
     // Test that the exposed filter works as expected.
     $path = 'test_filter_date_between-path';
     $this->drupalPostForm('admin/structure/views/view/test_filter_date_between/edit', [], 'Add Page');
     $this->drupalPostForm('admin/structure/views/nojs/display/test_filter_date_between/page_1/path', ['path' => $path], 'Apply');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $this->drupalGet($path);
     $this->drupalPostForm(NULL, [], 'Apply');
@@ -262,13 +262,13 @@ protected function _testFilterDateUI() {
 
     // Change the filter to a single filter to test the schema when the operator
     // is not exposed.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_date_between/default/filter/created', [], t('Single filter'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_date_between/default/filter/created', [], 'Single filter');
     $edit = [];
     $edit['options[operator]'] = '>';
     $edit['options[value][type]'] = 'date';
     $edit['options[value][value]'] = $this->dateFormatter->format(350000, 'custom', 'Y-m-d H:i:s');
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between', [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between', [], 'Save');
     $this->assertConfigSchemaByName('views.view.test_filter_date_between');
 
     // Test that the filter works as expected.
@@ -290,10 +290,10 @@ protected function _testFilterDateUI() {
    */
   protected function _testFilterDatetimeUI() {
     $this->drupalLogin($this->drupalCreateUser(['administer views']));
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_filter_date_between/default/filter', ['name[node__field_date.field_date_value]' => 'node__field_date.field_date_value'], t('Add and configure filter criteria'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_filter_date_between/default/filter', ['name[node__field_date.field_date_value]' => 'node__field_date.field_date_value'], 'Add and configure filter criteria');
 
-    $this->drupalPostForm(NULL, [], t('Expose filter'));
-    $this->drupalPostForm(NULL, [], t('Grouped filters'));
+    $this->drupalPostForm(NULL, [], 'Expose filter');
+    $this->drupalPostForm(NULL, [], 'Grouped filters');
 
     $edit = [];
     $edit['options[group_info][group_items][1][title]'] = 'simple-offset';
@@ -310,9 +310,9 @@ protected function _testFilterDatetimeUI() {
     $edit['options[group_info][group_items][3][value][min]'] = $this->dateFormatter->format(150000, 'custom', 'Y-m-d H:i:s');
     $edit['options[group_info][group_items][3][value][max]'] = $this->dateFormatter->format(250000, 'custom', 'Y-m-d H:i:s');
 
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
 
-    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between', [], 'Save');
     $this->assertConfigSchemaByName('views.view.test_filter_date_between');
   }
 
@@ -321,14 +321,14 @@ protected function _testFilterDatetimeUI() {
    */
   public function testExposedFilter() {
     $this->drupalLogin($this->drupalCreateUser(['administer views']));
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_date_between/default/filter/created', [], t('Expose filter'));
-    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between/edit', [], t('Add Page'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_date_between/default/filter/created', [], 'Expose filter');
+    $this->drupalPostForm('admin/structure/views/view/test_filter_date_between/edit', [], 'Add Page');
     $edit = [
       'path' => 'exposed-date-filter',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_filter_date_between/page_1/path', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_filter_date_between/page_1/path', $edit, 'Apply');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $this->drupalGet('exposed-date-filter');
     $this->assertSession()->fieldExists('created');
diff --git a/core/modules/views/tests/src/Functional/Handler/HandlerTest.php b/core/modules/views/tests/src/Functional/Handler/HandlerTest.php
index 0306be339cc3..70e7f17f0cef 100644
--- a/core/modules/views/tests/src/Functional/Handler/HandlerTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/HandlerTest.php
@@ -278,18 +278,18 @@ public function testRelationshipUI() {
     $this->assertEqual($options, $expected_options);
 
     // Remove the relationship and make sure no relationship option appears.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_handler_relationships/default/relationship/nid', [], t('Remove'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_handler_relationships/default/relationship/nid', [], 'Remove');
     $this->drupalGet($handler_options_path);
     $this->assertSession()->fieldNotExists($relationship_name);
 
     // Create a view of comments with node relationship.
     View::create(['base_table' => 'comment_field_data', 'id' => 'test_get_entity_type'])->save();
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_get_entity_type/default/relationship', ['name[comment_field_data.node]' => 'comment_field_data.node'], t('Add and configure relationships'));
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_get_entity_type/default/relationship', ['name[comment_field_data.node]' => 'comment_field_data.node'], 'Add and configure relationships');
+    $this->drupalPostForm(NULL, [], 'Apply');
     // Add a content type filter.
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_get_entity_type/default/filter', ['name[node_field_data.type]' => 'node_field_data.type'], t('Add and configure filter criteria'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_get_entity_type/default/filter', ['name[node_field_data.type]' => 'node_field_data.type'], 'Add and configure filter criteria');
     $this->assertTrue($this->assertSession()->optionExists('edit-options-relationship', 'node')->isSelected());
-    $this->drupalPostForm(NULL, ['options[value][page]' => 'page'], t('Apply'));
+    $this->drupalPostForm(NULL, ['options[value][page]' => 'page'], 'Apply');
     // Check content type filter options.
     $this->drupalGet('admin/structure/views/nojs/handler/test_get_entity_type/default/filter/type');
     $this->assertTrue($this->assertSession()->optionExists('edit-options-relationship', 'node')->isSelected());
diff --git a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
index 92d0a7c27909..668af7276d10 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
@@ -101,7 +101,7 @@ public function testArgumentDefaultNoOptions() {
     $edit = [
       'options[default_argument_type]' => $argument_type,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_argument_default_current_user/default/argument/uid', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_argument_default_current_user/default/argument/uid', $edit, 'Apply');
 
     // Note, the undefined index error has two spaces after it.
     $error = [
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
index 5843e989ed31..591ba981e96d 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
@@ -135,8 +135,8 @@ public function testEntityReferenceDisplay() {
     $this->assertSession()->linkByHrefNotExists('admin/structure/views/nojs/display/test_display_entity_reference/entity_reference_1/title');
 
     // Add the new field to the fields.
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/field', ['name[entity_test__' . $this->fieldName . '.' . $this->fieldName . ']' => TRUE], t('Add and configure fields'));
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/field', ['name[entity_test__' . $this->fieldName . '.' . $this->fieldName . ']' => TRUE], 'Add and configure fields');
+    $this->drupalPostForm(NULL, [], 'Apply');
 
     // Test that the right fields are shown on the display settings form.
     $this->drupalGet('admin/structure/views/nojs/display/test_display_entity_reference/entity_reference_1/style_options');
@@ -144,8 +144,8 @@ public function testEntityReferenceDisplay() {
     $this->assertText('Test entity: ' . $this->field->label());
 
     // Add the new field to the search fields.
-    $this->drupalPostForm(NULL, ['style_options[search_fields][' . $this->fieldName . ']' => $this->fieldName], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, ['style_options[search_fields][' . $this->fieldName . ']' => $this->fieldName], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView('test_display_entity_reference');
     $view->setDisplay('entity_reference_1');
@@ -208,15 +208,15 @@ public function testEntityReferenceDisplay() {
     $view->destroy();
 
     // Add a relationship and a field using that relationship.
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/relationship', ['name[entity_test.user_id]' => TRUE], t('Add and configure relationships'));
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/relationship', ['name[entity_test.user_id]' => TRUE], 'Add and configure relationships');
+    $this->drupalPostForm(NULL, [], 'Apply');
 
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/field', ['name[users_field_data.uid]' => TRUE], t('Add and configure fields'));
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/field', ['name[users_field_data.uid]' => TRUE], 'Add and configure fields');
+    $this->drupalPostForm(NULL, [], 'Apply');
 
     // Add the new field to the search fields.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_display_entity_reference/entity_reference_1/style_options', ['style_options[search_fields][uid]' => 'uid'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_display_entity_reference/entity_reference_1/style_options', ['style_options[search_fields][uid]' => 'uid'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Test that the search still works with the related field.
     $view = Views::getView('test_display_entity_reference');
@@ -237,10 +237,10 @@ public function testEntityReferenceDisplay() {
     $this->assertCount(2, $view->result, 'Search returned two rows');
     $view->destroy();
 
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/relationship', ['name[entity_test__field_test_entity_ref_entity_ref.field_test_entity_ref_entity_ref]' => TRUE], t('Add and configure relationships'));
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/relationship', ['name[entity_test__field_test_entity_ref_entity_ref.field_test_entity_ref_entity_ref]' => TRUE], 'Add and configure relationships');
+    $this->drupalPostForm(NULL, [], 'Apply');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Test that the search still works with the related field.
     $view = Views::getView('test_display_entity_reference');
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php
index e692a3976c28..68484709c4cc 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php
@@ -76,7 +76,7 @@ protected function setUp($import_test_views = TRUE): void {
       'settings[node][page][translatable]' => TRUE,
       'settings[node][page][settings][language][language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     // Rebuild the container so that the new languages are picked up by services
     // that hold a list of languages.
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php
index 152303df037b..c647f4ef312c 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php
@@ -125,7 +125,7 @@ public function testPageDisplayMenu() {
     // Update the menu link.
     $this->drupalPostForm("admin/structure/menu/link/views_view:views.test_page_display_menu.page_3/edit", [
       'title' => 'New title',
-    ], t('Save'));
+    ], 'Save');
 
     $this->drupalGet('<front>');
     $menu_link = $this->cssSelect('nav.block-menu ul.menu a');
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
index 8b4ed31b1f7f..e6c1aa80da26 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
@@ -132,7 +132,7 @@ public function testDisplayPlugin() {
     $this->clickLink('Test option title');
 
     $test_option = $this->randomString();
-    $this->drupalPostForm(NULL, ['test_option' => $test_option], t('Apply'));
+    $this->drupalPostForm(NULL, ['test_option' => $test_option], 'Apply');
 
     // Check the new value has been saved by checking the UI summary text.
     $this->drupalGet('admin/structure/views/view/test_view/edit/display_test_1');
diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
index 425e54fb9ab1..0195172af8b8 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
@@ -161,7 +161,7 @@ public function testExposedIsAllOfFilter() {
 
     // Select one option and ensure we still have results.
     $tid = $this->terms[0]->id();
-    $this->drupalPostForm(NULL, ["tid[$tid]" => $tid], t('Apply'));
+    $this->drupalPostForm(NULL, ["tid[$tid]" => $tid], 'Apply');
 
     // Ensure only nodes tagged with $tid are displayed.
     $rows = $this->xpath("//div[contains(@class, 'views-row')]");
diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
index ac8c7aa28da9..7da45595b950 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
@@ -402,7 +402,7 @@ public function testFormErrorWithExposedForm() {
     $this->assertRaw(t('Apply'));
     $this->assertRaw('<div class="views-row">');
 
-    $this->drupalPostForm(NULL, [], t('Submit'));
+    $this->drupalPostForm(NULL, [], 'Submit');
     $this->assertSession()->statusCodeEquals(200);
     $form = $this->cssSelect('form.views-exposed-form');
     $this->assertNotEmpty($form, 'The exposed form element was found.');
diff --git a/core/modules/views/tests/src/Functional/Plugin/FilterTest.php b/core/modules/views/tests/src/Functional/Plugin/FilterTest.php
index df0df3f24332..de77ffd42589 100644
--- a/core/modules/views/tests/src/Functional/Plugin/FilterTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/FilterTest.php
@@ -156,16 +156,16 @@ public function testFilterQuery() {
    */
   public function testInOperatorSelectAllOptions() {
     $row['row[type]'] = 'fields';
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_filter_in_operator_ui/default/row', $row, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_filter_in_operator_ui/default/row', $row, 'Apply');
     $field['name[node_field_data.nid]'] = TRUE;
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_filter_in_operator_ui/default/field', $field, t('Add and configure fields'));
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/field/nid', [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_filter_in_operator_ui/default/field', $field, 'Add and configure fields');
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/field/nid', [], 'Apply');
     $edit['options[value][all]'] = TRUE;
     $edit['options[value][article]'] = TRUE;
     $edit['options[value][page]'] = TRUE;
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/filter/type', $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_filter_in_operator_ui/edit/default', [], t('Save'));
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/filter/type', $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_filter_in_operator_ui/edit/default', [], 'Save');
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $this->assertNoText('An illegal choice has been detected.');
   }
 
@@ -191,8 +191,8 @@ public function testLimitExposedOperators() {
     $edit = [];
     $edit['options[operator]'] = '>';
     $edit['options[expose][operator_list][]'] = ['>', '>=', 'between'];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/filter/nid', $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_filter_in_operator_ui/edit/default', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/filter/nid', $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_filter_in_operator_ui/edit/default', [], 'Save');
 
     $this->drupalGet('test_filter_in_operator_ui');
     $this->assertSession()->statusCodeEquals(200);
@@ -210,7 +210,7 @@ public function testLimitExposedOperators() {
     $edit = [];
     $edit['options[operator]'] = '=';
     $edit['options[expose][operator_list][]'] = ['<', '>'];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/filter/nid', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_filter_in_operator_ui/default/filter/nid', $edit, 'Apply');
     $this->assertText('You selected the "Is equal to" operator as the default value but is not included in the list of limited operators.');
   }
 
diff --git a/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php b/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
index deacd5f911cf..935e25209d9b 100644
--- a/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
@@ -67,8 +67,8 @@ public function testNumericFormatPlural() {
 
     // Assert that changing the settings will change configuration properly.
     $edit = ['options[format_plural_values][0]' => '1 time', 'options[format_plural_values][1]' => '@count times'];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $config = $this->config('views.view.numeric_test');
     $field_config_prefix = 'display.default.display_options.fields.count.';
@@ -87,7 +87,7 @@ public function testNumericFormatPlural() {
 
     // Add Slovenian and set its plural formula to test multiple plural forms.
     $edit = ['predefined_langcode' => 'sl'];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $formula = 'nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);';
     $header = new PoHeader();
     list($nplurals, $formula) = $header->parsePluralForms($formula);
@@ -111,8 +111,8 @@ public function testNumericFormatPlural() {
       'options[format_plural_values][2]' => '@count time2',
       'options[format_plural_values][3]' => '@count time3',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
     $config = $this->config('views.view.numeric_test');
     $field_config_prefix = 'display.default.display_options.fields.count.';
     $this->assertEqual($config->get($field_config_prefix . 'format_plural'), TRUE);
diff --git a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
index 3abe753a7f9c..52577f0a1448 100644
--- a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
@@ -64,7 +64,7 @@ public function testStorePagerSettings() {
     $edit = [
       'pager[type]' => 'some',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, 'Apply');
 
     $items_per_page = $this->assertSession()->fieldExists("pager_options[items_per_page]");
     $this->assertSession()->fieldValueEquals("pager_options[items_per_page]", 10);
@@ -79,7 +79,7 @@ public function testStorePagerSettings() {
     $edit = [
       'pager[type]' => 'none',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, 'Apply');
 
     $offset = $this->assertSession()->fieldExists("pager_options[offset]");
     $this->assertSession()->fieldValueEquals("pager_options[offset]", 0);
@@ -89,7 +89,7 @@ public function testStorePagerSettings() {
     $edit = [
       'pager[type]' => 'full',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, 'Apply');
 
     $items_per_page = $this->assertSession()->fieldExists("pager_options[items_per_page]");
     $this->assertSession()->fieldValueEquals("pager_options[items_per_page]", 10);
@@ -119,14 +119,14 @@ public function testStorePagerSettings() {
     $edit = [
       'pager_options[items_per_page]' => 20,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager_options', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager_options', $edit, 'Apply');
     $this->assertText('20 items');
 
     // Change type and check whether the type is new type is stored.
     $edit = [
       'pager[type]' => 'mini',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/pager', $edit, 'Apply');
     $this->drupalGet('admin/structure/views/view/test_view/edit');
     $this->assertText('Mini', 'Changed pager plugin, should change some text');
 
@@ -141,36 +141,36 @@ public function testStorePagerSettings() {
     $edit = [
       'pager[type]' => 'full',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/default/pager', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/default/pager', $edit, 'Apply');
     $this->drupalGet('admin/structure/views/view/test_store_pager_settings/edit');
     $this->assertText('Full');
 
     $edit = [
       'pager_options[items_per_page]' => 20,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/default/pager_options', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/default/pager_options', $edit, 'Apply');
     $this->assertText('20 items');
 
     // add new display and test the settings again, by override it.
     $edit = [];
     // Add a display and override the pager settings.
-    $this->drupalPostForm('admin/structure/views/view/test_store_pager_settings/edit', $edit, t('Add Page'));
+    $this->drupalPostForm('admin/structure/views/view/test_store_pager_settings/edit', $edit, 'Add Page');
     $edit = [
       'override[dropdown]' => 'page_1',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/page_1/pager', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/page_1/pager', $edit, 'Apply');
 
     $edit = [
       'pager[type]' => 'mini',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/page_1/pager', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/page_1/pager', $edit, 'Apply');
     $this->drupalGet('admin/structure/views/view/test_store_pager_settings/edit/page_1');
     $this->assertText('Mini', 'Changed pager plugin, should change some text');
 
     $edit = [
       'pager_options[items_per_page]' => 10,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/default/pager_options', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/default/pager_options', $edit, 'Apply');
     $this->assertText('10 items', 'The default value has been changed.');
     $this->drupalGet('admin/structure/views/view/test_store_pager_settings/edit/page_1');
     $this->assertText('20 items', 'The original value remains unchanged.');
@@ -453,7 +453,7 @@ public function testPagerConfigTranslation() {
       'translation[config_names][views.view.content][display][default][display_options][pager][options][tags][next]' => 'Volgende ›',
       'translation[config_names][views.view.content][display][default][display_options][pager][options][tags][last]' => 'Laatste »',
     ];
-    $this->drupalPostForm('admin/structure/views/view/content/translate/nl/edit', $edit, t('Save translation'));
+    $this->drupalPostForm('admin/structure/views/view/content/translate/nl/edit', $edit, 'Save translation');
 
     // We create 11 nodes, this will give us 3 pages.
     $this->drupalCreateContentType(['type' => 'page']);
diff --git a/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php b/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php
index c84c857e0edc..fb6b722ea67f 100644
--- a/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php
@@ -83,8 +83,8 @@ public function testSummaryView() {
     $edit = [
       'options[summary][options][default_summary][base_path]' => 'test-summary',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Test that the links still work.
     $this->drupalGet('test-summary');
@@ -98,8 +98,8 @@ public function testSummaryView() {
       'options[summary][options][unformatted_summary][override]' => '1',
       'options[summary][options][unformatted_summary][items_per_page]' => '3',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_summary/page_1/argument/type');
     $this->drupalGet('test-summary');
@@ -125,8 +125,8 @@ public function testSummaryView() {
     $edit = [
       'options[summary][options][unformatted_summary][base_path]' => 'test-summary',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Test that the links still work.
     $this->drupalGet('test-summary');
@@ -139,8 +139,8 @@ public function testSummaryView() {
     $edit = [
       'options[summary][options][unformatted_summary][base_path]' => 'unknown-path',
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_summary/page_1/argument/type', $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->drupalGet('test-summary');
     $this->assertSession()->linkByHrefExists('/');
   }
diff --git a/core/modules/views/tests/src/Functional/SearchMultilingualTest.php b/core/modules/views/tests/src/Functional/SearchMultilingualTest.php
index c73c242b57c6..059e9ee85691 100644
--- a/core/modules/views/tests/src/Functional/SearchMultilingualTest.php
+++ b/core/modules/views/tests/src/Functional/SearchMultilingualTest.php
@@ -63,14 +63,14 @@ public function testMultilingualSearchFilter() {
     $edit = [
       'language_configuration[language_alterable]' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/types/manage/' . $type->id(), $edit, t('Save content type'));
+    $this->drupalPostForm('admin/structure/types/manage/' . $type->id(), $edit, 'Save content type');
     $edit = [
       'entity_types[node]' => TRUE,
       'settings[node][' . $type->id() . '][translatable]' => TRUE,
       'settings[node][' . $type->id() . '][fields][title]' => TRUE,
       'settings[node][' . $type->id() . '][fields][body]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     // Add a node in English, with title "sandwich".
     $values = [
diff --git a/core/modules/views/tests/src/Functional/UserBatchActionTest.php b/core/modules/views/tests/src/Functional/UserBatchActionTest.php
index ba5b576b6125..de6946f0c431 100644
--- a/core/modules/views/tests/src/Functional/UserBatchActionTest.php
+++ b/core/modules/views/tests/src/Functional/UserBatchActionTest.php
@@ -40,7 +40,7 @@ public function testUserAction() {
         'user_bulk_form[0]' => TRUE,
         'action' => 'user_batch_action_test_action',
       ];
-      $this->drupalPostForm(NULL, $edit, t('Apply'));
+      $this->drupalPostForm(NULL, $edit, 'Apply');
       $this->assertSession()->pageTextContains('One item has been processed.');
       $this->assertSession()->pageTextContains($theme . ' theme used');
     }
diff --git a/core/modules/views/tests/src/Functional/Wizard/BasicTest.php b/core/modules/views/tests/src/Functional/Wizard/BasicTest.php
index 4ba7c698fb0c..243dd6703c08 100644
--- a/core/modules/views/tests/src/Functional/Wizard/BasicTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/BasicTest.php
@@ -39,7 +39,7 @@ public function testViewsWizardAndListing() {
     $view1['id'] = strtolower($this->randomMachineName(16));
     $view1['description'] = $this->randomMachineName(16);
     $view1['page[create]'] = FALSE;
-    $this->drupalPostForm('admin/structure/views/add', $view1, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view1, 'Save and edit');
     $this->assertSession()->statusCodeEquals(200);
     $this->drupalGet('admin/structure/views');
     $this->assertText($view1['label']);
@@ -69,7 +69,7 @@ public function testViewsWizardAndListing() {
     $view2['page[path]'] = $this->randomMachineName(16);
     $view2['page[feed]'] = 1;
     $view2['page[feed_properties][path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view2, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view2, 'Save and edit');
     $this->drupalGet($view2['page[path]']);
     $this->assertSession()->statusCodeEquals(200);
 
@@ -120,7 +120,7 @@ public function testViewsWizardAndListing() {
     $view3['page[path]'] = $this->randomMachineName(16);
     $view3['block[create]'] = 1;
     $view3['block[title]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view3, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view3, 'Save and edit');
     $this->drupalGet($view3['page[path]']);
     $this->assertSession()->statusCodeEquals(200);
 
@@ -165,7 +165,7 @@ public function testViewsWizardAndListing() {
     $view4['show[type]'] = 'page';
     $view4['rest_export[create]'] = 1;
     $view4['rest_export[path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view4, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view4, 'Save and edit');
     $this->assertRaw(t('The view %view has been saved.', ['%view' => $view4['label']]));
 
     // Check that the REST export path works. JSON will work, as all core
@@ -188,7 +188,7 @@ public function testViewsWizardAndListing() {
     $leading_slash_view['page[create]'] = 1;
     $leading_slash_view['page[title]'] = $this->randomMachineName(16);
     $leading_slash_view['page[path]'] = '/' . $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $leading_slash_view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $leading_slash_view, 'Save and edit');
     $this->assertEquals($leading_slash_view['page[path]'], $this->cssSelect('#views-page-1-path')[0]->getText());
   }
 
@@ -205,7 +205,7 @@ public function testWizardDefaultValues() {
     $view['id'] = $random_id;
     $view['description'] = $this->randomMachineName(16);
     $view['page[create]'] = FALSE;
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     // Make sure the plugin types that should not have empty options don't have.
     // Test against all values is unit tested.
diff --git a/core/modules/views/tests/src/Functional/Wizard/EntityTestRevisionTest.php b/core/modules/views/tests/src/Functional/Wizard/EntityTestRevisionTest.php
index bfd1ad933e4b..6ad835176657 100644
--- a/core/modules/views/tests/src/Functional/Wizard/EntityTestRevisionTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/EntityTestRevisionTest.php
@@ -26,14 +26,14 @@ public function testRevisionsViewWithNoTypeOnBaseTable() {
     $type = [
       'show[wizard_key]' => 'standard:entity_test_rev_revision',
     ];
-    $this->drupalPostForm('admin/structure/views/add', $type, t('Update "Show" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $type, 'Update "Show" choice');
     $view = [];
     $view['label'] = $this->randomMachineName(16);
     $view['id'] = strtolower($this->randomMachineName(16));
     $view['description'] = $this->randomMachineName(16);
     $view['page[create]'] = FALSE;
     $view['show[type]'] = 'entity_test_rev';
-    $this->drupalPostForm(NULL, $view, t('Save and edit'));
+    $this->drupalPostForm(NULL, $view, 'Save and edit');
 
     $view_storage_controller = \Drupal::entityTypeManager()->getStorage('view');
     /** @var \Drupal\views\Entity\View $view */
diff --git a/core/modules/views/tests/src/Functional/Wizard/ItemsPerPageTest.php b/core/modules/views/tests/src/Functional/Wizard/ItemsPerPageTest.php
index a5971ad3ea36..8262474da5dd 100644
--- a/core/modules/views/tests/src/Functional/Wizard/ItemsPerPageTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/ItemsPerPageTest.php
@@ -54,7 +54,7 @@ public function testItemsPerPage() {
     $view['block[create]'] = 1;
     $view['block[title]'] = $this->randomMachineName(16);
     $view['block[items_per_page]'] = 3;
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
     $this->drupalGet($view['page[path]']);
     $this->assertSession()->statusCodeEquals(200);
 
diff --git a/core/modules/views/tests/src/Functional/Wizard/MenuTest.php b/core/modules/views/tests/src/Functional/Wizard/MenuTest.php
index 09a012aefa42..c18b81066a4b 100644
--- a/core/modules/views/tests/src/Functional/Wizard/MenuTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/MenuTest.php
@@ -34,7 +34,7 @@ public function testMenus() {
     $view['page[link]'] = 1;
     $view['page[link_properties][menu_name]'] = 'main';
     $view['page[link_properties][title]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     // Make sure there is a link to the view from the front page (where we
     // expect the main menu to display).
diff --git a/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php b/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php
index 6f2454623133..2f80183b343e 100644
--- a/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php
@@ -28,7 +28,7 @@ public function testViewAddWithNodeTitles() {
     $view['page[create]'] = FALSE;
     $view['show[wizard_key]'] = 'node';
     $view['page[style][row_plugin]'] = 'titles';
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     $view_storage_controller = \Drupal::entityTypeManager()->getStorage('view');
     /** @var \Drupal\views\Entity\View $view */
diff --git a/core/modules/views/tests/src/Functional/Wizard/PagerTest.php b/core/modules/views/tests/src/Functional/Wizard/PagerTest.php
index 92bc0035ed0e..1d6e44d2926d 100644
--- a/core/modules/views/tests/src/Functional/Wizard/PagerTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/PagerTest.php
@@ -60,7 +60,7 @@ protected function createViewAtPath($path, $pager = TRUE) {
     $view['page[title]'] = $this->randomMachineName(16);
     $view['page[path]'] = $path;
     $view['page[pager]'] = $pager;
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Wizard/SortingTest.php b/core/modules/views/tests/src/Functional/Wizard/SortingTest.php
index bebf5ea53424..62b87df09b30 100644
--- a/core/modules/views/tests/src/Functional/Wizard/SortingTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/SortingTest.php
@@ -40,7 +40,7 @@ public function testSorting() {
     $view1['page[create]'] = 1;
     $view1['page[title]'] = $this->randomMachineName(16);
     $view1['page[path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view1, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view1, 'Save and edit');
     $this->drupalGet($view1['page[path]']);
     $this->assertSession()->statusCodeEquals(200);
 
@@ -66,7 +66,7 @@ public function testSorting() {
     $view2['page[create]'] = 1;
     $view2['page[title]'] = $this->randomMachineName(16);
     $view2['page[path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view2, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view2, 'Save and edit');
     $this->drupalGet($view2['page[path]']);
     $this->assertSession()->statusCodeEquals(200);
 
diff --git a/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php b/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php
index bcf42f274b7e..99b3f3590930 100644
--- a/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php
@@ -130,14 +130,14 @@ public function testTaggedWith() {
     $edit = [];
     $edit['title[0][value]'] = $node_tag1_title = $this->randomMachineName();
     $edit[$this->tagFieldName . '[target_id]'] = 'tag1';
-    $this->drupalPostForm($node_add_path, $edit, t('Save'));
+    $this->drupalPostForm($node_add_path, $edit, 'Save');
     $edit = [];
     $edit['title[0][value]'] = $node_tag1_tag2_title = $this->randomMachineName();
     $edit[$this->tagFieldName . '[target_id]'] = 'tag1, tag2';
-    $this->drupalPostForm($node_add_path, $edit, t('Save'));
+    $this->drupalPostForm($node_add_path, $edit, 'Save');
     $edit = [];
     $edit['title[0][value]'] = $node_no_tags_title = $this->randomMachineName();
-    $this->drupalPostForm($node_add_path, $edit, t('Save'));
+    $this->drupalPostForm($node_add_path, $edit, 'Save');
 
     // Create a view that filters by taxonomy term "tag1". It should show only
     // the two nodes from above that are tagged with "tag1".
@@ -145,7 +145,7 @@ public function testTaggedWith() {
     // First select the node type and update the form so the correct tag field
     // is used.
     $view1['show[type]'] = $this->nodeTypeWithTags->id();
-    $this->drupalPostForm('admin/structure/views/add', $view1, t('Update "of type" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $view1, 'Update "of type" choice');
     // Now resubmit the entire form to the same URL.
     $view1['label'] = $this->randomMachineName(16);
     $view1['id'] = strtolower($this->randomMachineName(16));
@@ -154,7 +154,7 @@ public function testTaggedWith() {
     $view1['page[create]'] = 1;
     $view1['page[title]'] = $this->randomMachineName(16);
     $view1['page[path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm(NULL, $view1, t('Save and edit'));
+    $this->drupalPostForm(NULL, $view1, 'Save and edit');
     // Visit the page and check that the nodes we expect are present and the
     // ones we don't expect are absent.
     $this->drupalGet($view1['page[path]']);
@@ -167,7 +167,7 @@ public function testTaggedWith() {
     // the one node from above that is tagged with "tag2".
     $view2 = [];
     $view2['show[type]'] = $this->nodeTypeWithTags->id();
-    $this->drupalPostForm('admin/structure/views/add', $view2, t('Update "of type" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $view2, 'Update "of type" choice');
     $this->assertSession()->statusCodeEquals(200);
     $view2['label'] = $this->randomMachineName(16);
     $view2['id'] = strtolower($this->randomMachineName(16));
@@ -176,7 +176,7 @@ public function testTaggedWith() {
     $view2['page[create]'] = 1;
     $view2['page[title]'] = $this->randomMachineName(16);
     $view2['page[path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm(NULL, $view2, t('Save and edit'));
+    $this->drupalPostForm(NULL, $view2, 'Save and edit');
     $this->assertSession()->statusCodeEquals(200);
     $this->drupalGet($view2['page[path]']);
     $this->assertNoText($node_tag1_title);
@@ -196,10 +196,10 @@ public function testTaggedWithByNodeType() {
     $this->drupalGet('admin/structure/views/add');
     $this->assertSession()->fieldExists("show[tagged_with]");
     $view['show[type]'] = $this->nodeTypeWithTags->id();
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Update "of type" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Update "of type" choice');
     $this->assertSession()->fieldExists("show[tagged_with]");
     $view['show[type]'] = $this->nodeTypeWithoutTags->id();
-    $this->drupalPostForm(NULL, $view, t('Update "of type" choice (2)'));
+    $this->drupalPostForm(NULL, $view, 'Update "of type" choice (2)');
     $this->assertSession()->fieldNotExists("show[tagged_with]");
 
     // If we add an instance of the tagging field to the second node type, the
@@ -226,10 +226,10 @@ public function testTaggedWithByNodeType() {
       ->save();
 
     $view['show[type]'] = $this->nodeTypeWithTags->id();
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Update "of type" choice'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Update "of type" choice');
     $this->assertSession()->fieldExists("show[tagged_with]");
     $view['show[type]'] = $this->nodeTypeWithoutTags->id();
-    $this->drupalPostForm(NULL, $view, t('Update "of type" choice (2)'));
+    $this->drupalPostForm(NULL, $view, 'Update "of type" choice (2)');
     $this->assertSession()->fieldExists("show[tagged_with]");
   }
 
diff --git a/core/modules/views_ui/tests/src/Functional/AnalyzeTest.php b/core/modules/views_ui/tests/src/Functional/AnalyzeTest.php
index 143ebd097312..3d85b9525ae7 100644
--- a/core/modules/views_ui/tests/src/Functional/AnalyzeTest.php
+++ b/core/modules/views_ui/tests/src/Functional/AnalyzeTest.php
@@ -47,7 +47,7 @@ public function testAnalyzeBasic() {
     }
 
     // This redirects the user back to the main views edit page.
-    $this->drupalPostForm(NULL, [], t('Ok'));
+    $this->drupalPostForm(NULL, [], 'Ok');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php b/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php
index b5bfe30474a3..7fd16b2aebbf 100644
--- a/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php
@@ -55,8 +55,8 @@ protected function saveArgumentHandlerWithValidationOptions($specify_validation)
       'options[validate][type]' => 'entity---node',
       'options[specify_validation]' => $specify_validation,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_argument/default/argument/id', $options, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_argument', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_argument/default/argument/id', $options, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_argument', [], 'Save');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php b/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php
index 7d86b522a73a..65959cf97f25 100644
--- a/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php
@@ -33,7 +33,7 @@ public function testCacheData() {
 
     $this->drupalGet('admin/structure/views/view/test_view/edit');
     // Make sure we have 'changes' to the view.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], 'Apply');
     $this->assertText('You have unsaved changes.');
     $this->assertEqual($temp_store->getMetadata('test_view')->getOwnerId(), $views_admin_user_uid, 'View cache has been saved.');
 
@@ -44,13 +44,13 @@ public function testCacheData() {
     $this->assertEqual($temp_store->getMetadata('test_view')->getOwnerId(), $views_admin_user_uid, 'The view is locked.');
 
     // Cancel the view edit and make sure the cache is deleted.
-    $this->drupalPostForm(NULL, [], t('Cancel'));
+    $this->drupalPostForm(NULL, [], 'Cancel');
     $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'Shared tempstore data has been removed.');
     // Test we are redirected to the view listing page.
     $this->assertSession()->addressEquals('admin/structure/views');
 
     // Log in with another user and make sure the view is locked and break.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], 'Apply');
     $this->drupalLogin($this->adminUser);
 
     $this->drupalGet('admin/structure/views/view/test_view/edit');
@@ -61,17 +61,17 @@ public function testCacheData() {
     $this->assertSession()->linkByHrefExists('admin/structure/views/view/test_view/break-lock');
     // Break the lock.
     $this->clickLink(t('break this lock'));
-    $this->drupalPostForm(NULL, [], t('Break lock'));
+    $this->drupalPostForm(NULL, [], 'Break lock');
     // Test that save and cancel buttons are shown.
     $this->assertSession()->buttonExists('Save');
     $this->assertSession()->buttonExists('Cancel');
     // Test we can save the view.
-    $this->drupalPostForm('admin/structure/views/view/test_view/edit', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/view/test_view/edit', [], 'Save');
     $this->assertRaw(t('The view %view has been saved.', ['%view' => 'Test view']));
 
     // Test that a deleted view has no tempstore data.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_view/delete', [], t('Delete'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_view/delete', [], 'Delete');
     // No view tempstore data should be returned for this view after deletion.
     $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'View tempstore data has been removed after deletion.');
   }
diff --git a/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php b/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php
index 12d6e875a29b..b9acabe17e44 100644
--- a/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php
@@ -61,15 +61,15 @@ public function testDefaultViews() {
     // displayed.
     $new_title = $this->randomMachineName(16);
     $edit = ['title' => $new_title];
-    $this->drupalPostForm('admin/structure/views/nojs/display/glossary/page_1/title', $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/glossary/edit/page_1', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/glossary/page_1/title', $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/glossary/edit/page_1', [], 'Save');
     $this->drupalGet('glossary');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText($new_title);
 
     // Save another view in the UI.
-    $this->drupalPostForm('admin/structure/views/nojs/display/archive/page_1/title', [], t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/archive/edit/page_1', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/archive/page_1/title', [], 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/archive/edit/page_1', [], 'Save');
 
     // Check there is an enable link. i.e. The view has not been enabled after
     // editing.
@@ -83,7 +83,7 @@ public function testDefaultViews() {
     // $this->drupalGet('admin/structure/views');
     // $this->assertSession()->linkExists('Revert');
     // $this->assertSession()->linkByHrefExists($revert_href);
-    // $this->drupalPostForm($revert_href, array(), t('Revert'));
+    // $this->drupalPostForm($revert_href, array(), 'Revert');
     // $this->drupalGet('glossary');
     // $this->assertNoText($new_title);
 
@@ -94,14 +94,14 @@ public function testDefaultViews() {
       'id' => 'duplicate_of_glossary',
     ];
     $this->assertSession()->titleEquals('Duplicate of Glossary | Drupal');
-    $this->drupalPostForm(NULL, $edit, t('Duplicate'));
+    $this->drupalPostForm(NULL, $edit, 'Duplicate');
     $this->assertSession()->addressEquals('admin/structure/views/view/duplicate_of_glossary');
 
     // Duplicate a view and set a custom name.
     $this->drupalGet('admin/structure/views');
     $this->clickViewsOperationLink('Duplicate', '/glossary');
     $random_name = strtolower($this->randomMachineName());
-    $this->drupalPostForm(NULL, ['id' => $random_name], t('Duplicate'));
+    $this->drupalPostForm(NULL, ['id' => $random_name], 'Duplicate');
     $this->assertSession()->addressEquals("admin/structure/views/view/$random_name");
 
     // Now disable the view, and make sure it stops appearing on the main view
@@ -134,7 +134,7 @@ public function testDefaultViews() {
     $this->drupalGet('admin/structure/views');
     $this->clickViewsOperationLink('Delete', '/glossary/');
     // Submit the confirmation form.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     // Ensure the view is no longer listed.
     $this->assertSession()->addressEquals('admin/structure/views');
     $this->assertSession()->linkByHrefNotExists($edit_href);
@@ -147,7 +147,7 @@ public function testDefaultViews() {
     $this->drupalGet('admin/structure/views');
     $this->clickViewsOperationLink('Delete', 'duplicate_of_glossary');
     // Submit the confirmation form.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
 
     $this->drupalGet('glossary');
     $this->assertSession()->statusCodeEquals(200);
@@ -155,7 +155,7 @@ public function testDefaultViews() {
     $this->drupalGet('admin/structure/views');
     $this->clickViewsOperationLink('Delete', $random_name);
     // Submit the confirmation form.
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->drupalGet('glossary');
     $this->assertSession()->statusCodeEquals(404);
     $this->assertText('Page not found');
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php b/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php
index a1bf2c43a55b..63bd1bc06d11 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php
@@ -41,22 +41,22 @@ public function testAttachmentUI() {
     $this->assertSession()->checkboxNotChecked("edit-displays-page-1");
 
     // Save the attachments and test the value on the view.
-    $this->drupalPostForm($attachment_display_url, ['displays[page_1]' => 1], t('Apply'));
+    $this->drupalPostForm($attachment_display_url, ['displays[page_1]' => 1], 'Apply');
     // Options summary should be escaped.
     $this->assertSession()->assertEscaped('<em>Page</em>');
     $this->assertNoRaw('<em>Page</em>');
     $result = $this->xpath('//a[@id = :id]', [':id' => 'views-attachment-1-displays']);
     $this->assertEqual($result[0]->getAttribute('title'), t('Page'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView('test_attachment_ui');
     $view->initDisplay();
     $this->assertEqual(array_keys(array_filter($view->displayHandlers->get('attachment_1')->getOption('displays'))), ['page_1'], 'The attached displays got saved as expected');
 
-    $this->drupalPostForm($attachment_display_url, ['displays[default]' => 1, 'displays[page_1]' => 1], t('Apply'));
+    $this->drupalPostForm($attachment_display_url, ['displays[default]' => 1, 'displays[page_1]' => 1], 'Apply');
     $result = $this->xpath('//a[@id = :id]', [':id' => 'views-attachment-1-displays']);
     $this->assertEqual($result[0]->getAttribute('title'), t('Multiple displays'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView('test_attachment_ui');
     $view->initDisplay();
@@ -78,8 +78,8 @@ public function testRemoveAttachedDisplay() {
     $this->assertText('Not defined', 'The right text appears if there is no attachment selection yet.');
 
     // Attach the Attachment to the Page display.
-    $this->drupalPostForm($attachment_display_url, ['displays[page_1]' => 1], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($attachment_display_url, ['displays[page_1]' => 1], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Open the Page display and mark it as deleted.
     $this->drupalGet($path_prefix . '/page_1');
@@ -88,7 +88,7 @@ public function testRemoveAttachedDisplay() {
 
     // Open the attachment display and save it.
     $this->drupalGet($path_prefix . '/attachment_1');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Check that there is no warning for the removed page display.
     $this->assertNoText("Plugin ID &#039;page_1&#039; was not found.");
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php b/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
index 55eba76a1e8d..ac185e0c1c06 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
@@ -50,8 +50,8 @@ public function testAddDisplay() {
     $this->assertSession()->linkNotExists('Master*', 'Make sure the master display is not marked as changed.');
     $this->assertSession()->linkExists('Page*', 0, 'Make sure the added display is marked as changed.');
 
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/path", ['path' => 'test/path'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/path", ['path' => 'test/path'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
   }
 
   /**
@@ -84,7 +84,7 @@ public function testRemoveDisplay() {
 
     // Now delete again and save the view.
     $this->drupalPostForm($path_prefix . '/page_1', [], 'Delete Page');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $this->assertSession()->linkByHrefNotExists($path_prefix . '/page_1', 'Make sure there is no display tab for the deleted display.');
 
@@ -94,7 +94,7 @@ public function testRemoveDisplay() {
     $path_prefix = 'admin/structure/views/view/' . $view['id'] . '/edit';
     $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/display_id", ['display_id' => $machine_name], 'Apply');
     $this->drupalPostForm(NULL, [], 'Delete Page');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->linkByHrefNotExists($path_prefix . '/new_machine_name', 'Make sure there is no display tab for the deleted display.');
   }
@@ -125,8 +125,8 @@ public function testDuplicateDisplay() {
     // Set the title and override the css classes.
     $random_title = $this->randomMachineName();
     $random_css = $this->randomMachineName();
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_2/title", ['title' => $random_title], t('Apply'));
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_2/css_class", ['override[dropdown]' => 'page_2', 'css_class' => $random_css], t('Apply'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_2/title", ['title' => $random_title], 'Apply');
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_2/css_class", ['override[dropdown]' => 'page_2', 'css_class' => $random_css], 'Apply');
 
     // Duplicate as a different display type.
     $this->drupalPostForm(NULL, [], 'Duplicate as Block');
@@ -135,7 +135,7 @@ public function testDuplicateDisplay() {
     $this->assertText('Block settings');
     $this->assertNoText('Page settings');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $view = Views::getView($view['id']);
     $view->initDisplay();
 
@@ -155,7 +155,7 @@ public function testDuplicateDisplay() {
     $view_id = $view->id();
     $this->drupalPostForm("admin/structure/views/nojs/display/$view_id/page_2/display_id", ['display_id' => 'page_new'], 'Apply');
     $this->drupalPostForm(NULL, [], 'Duplicate as Block');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $view = Views::getView($view_id);
     $view->initDisplay();
     $this->assertNotNull($view->displayHandlers->get('page_new'), 'The original display is saved with a changed id');
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php b/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php
index 5c2c5dd11065..2899e48f8d07 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php
@@ -37,9 +37,9 @@ public function testDisplayExtenderUI() {
     $this->assertSession()->linkByHrefExists($display_option_url, 0, 'Make sure the option defined by the test display extender appears in the UI.');
 
     $random_text = $this->randomMachineName();
-    $this->drupalPostForm($display_option_url, ['test_extender_test_option' => $random_text], t('Apply'));
+    $this->drupalPostForm($display_option_url, ['test_extender_test_option' => $random_text], 'Apply');
     $this->assertSession()->linkExists($random_text);
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $view = Views::getView($view->storage->id());
     $view->initDisplay();
     $display_extender_options = $view->display_handler->getOption('display_extenders');
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php b/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php
index f5de2f003ba3..619e2e241a5f 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php
@@ -71,7 +71,7 @@ protected function checkFeedViewUi($view_name) {
     $this->assertEqual($options, ['default', 'page'], 'Make sure all displays appears as expected.');
 
     // Post and save this and check the output.
-    $this->drupalPostForm('admin/structure/views/nojs/display/' . $view_name . '/feed_1/displays', ['displays[page]' => 'page'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/' . $view_name . '/feed_1/displays', ['displays[page]' => 'page'], 'Apply');
     // Options summary should be escaped.
     $this->assertSession()->assertEscaped('<em>Page</em>');
     $this->assertNoRaw('<em>Page</em>');
@@ -80,7 +80,7 @@ protected function checkFeedViewUi($view_name) {
     $this->assertSession()->elementTextContains('xpath', '//*[@id="views-feed-1-displays"]', 'Page');
 
     // Add the default display, so there should now be multiple displays.
-    $this->drupalPostForm('admin/structure/views/nojs/display/' . $view_name . '/feed_1/displays', ['displays[default]' => 'default'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/' . $view_name . '/feed_1/displays', ['displays[default]' => 'default'], 'Apply');
     $this->drupalGet('admin/structure/views/view/' . $view_name . '/edit/feed_1');
     $this->assertSession()->elementTextContains('xpath', '//*[@id="views-feed-1-displays"]', 'Multiple displays');
   }
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
index 2dd1fab88c79..5fc8e6c73bd1 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
@@ -65,7 +65,7 @@ protected function doBasicPathUITest() {
     //   longer use Url::fromUri(), and this path will be able to contain ':'.
     $random_path = str_replace(':', '', $random_path);
 
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => $random_path], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => $random_path], 'Apply');
     $this->assertText('/' . $random_path, 'The custom path appears in the summary.');
     $display_link_text = t('View @display', ['@display' => 'Page']);
     $this->assertSession()->linkExists($display_link_text, 0, 'view page link found on the page.');
@@ -79,12 +79,12 @@ protected function doBasicPathUITest() {
   public function doPathXssFilterTest() {
     $this->drupalGet('admin/structure/views/view/test_view');
     $this->drupalPostForm(NULL, [], 'Add Page');
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_2/path', ['path' => '<object>malformed_path</object>'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_2/path', ['path' => '<object>malformed_path</object>'], 'Apply');
     $this->drupalPostForm(NULL, [], 'Add Page');
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_3/path', ['path' => '<script>alert("hello");</script>'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_3/path', ['path' => '<script>alert("hello");</script>'], 'Apply');
     $this->drupalPostForm(NULL, [], 'Add Page');
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_4/path', ['path' => '<script>alert("hello I have placeholders %");</script>'], t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_view', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_4/path', ['path' => '<script>alert("hello I have placeholders %");</script>'], 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_view', [], 'Save');
     $this->drupalGet('admin/structure/views');
     // The anchor text should be escaped.
     $this->assertSession()->assertEscaped('/<object>malformed_path</object>');
@@ -101,11 +101,11 @@ public function doPathXssFilterTest() {
   protected function doAdvancedPathsValidationTest() {
     $url = 'admin/structure/views/nojs/display/test_view/page_1/path';
 
-    $this->drupalPostForm($url, ['path' => '%/magrathea'], t('Apply'));
+    $this->drupalPostForm($url, ['path' => '%/magrathea'], 'Apply');
     $this->assertSession()->addressEquals($url);
     $this->assertText('"%" may not be used for the first segment of a path.');
 
-    $this->drupalPostForm($url, ['path' => 'user/%1/example'], t('Apply'));
+    $this->drupalPostForm($url, ['path' => 'user/%1/example'], 'Apply');
     $this->assertSession()->addressEquals($url);
     $this->assertText("Numeric placeholders may not be used. Please use plain placeholders (%).");
   }
@@ -115,9 +115,9 @@ protected function doAdvancedPathsValidationTest() {
    */
   public function testDeleteWithNoPath() {
     $this->drupalGet('admin/structure/views/view/test_view');
-    $this->drupalPostForm(NULL, [], t('Add Page'));
-    $this->drupalPostForm(NULL, [], t('Delete Page'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Add Page');
+    $this->drupalPostForm(NULL, [], 'Delete Page');
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertRaw(t('The view %view has been saved.', ['%view' => 'Test view']));
   }
 
@@ -132,29 +132,29 @@ public function testMenuOptions() {
     $this->drupalPostForm(NULL, [], 'Add Page');
 
     // Add an invalid path (only fragment).
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => '#foo'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => '#foo'], 'Apply');
     $this->assertText('Path is empty');
 
     // Add an invalid path with a query.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => 'foo?bar'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => 'foo?bar'], 'Apply');
     $this->assertText('No query allowed.');
 
     // Add an invalid path with just a query.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => '?bar'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => '?bar'], 'Apply');
     $this->assertText('Path is empty');
 
     // Provide a random, valid path string.
     $random_string = $this->randomMachineName();
 
     // Save a path.
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => $random_string], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => $random_string], 'Apply');
     $this->drupalGet('admin/structure/views/view/test_view');
 
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/menu', ['menu[type]' => 'default tab', 'menu[title]' => 'Test tab title'], t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/menu', ['menu[type]' => 'default tab', 'menu[title]' => 'Test tab title'], 'Apply');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->addressEquals('admin/structure/views/nojs/display/test_view/page_1/tab_options');
 
-    $this->drupalPostForm(NULL, ['tab_options[type]' => 'tab', 'tab_options[title]' => $this->randomString()], t('Apply'));
+    $this->drupalPostForm(NULL, ['tab_options[type]' => 'tab', 'tab_options[title]' => $this->randomString()], 'Apply');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->addressEquals('admin/structure/views/view/test_view/edit/page_1');
 
@@ -215,7 +215,7 @@ public function testDefaultMenuTabRegression() {
       'link[0][uri]' => '/admin/foo',
       'menu_parent' => 'admin:system.admin',
     ];
-    $this->drupalPostForm('admin/structure/menu/manage/admin/add', $edit, t('Save'));
+    $this->drupalPostForm('admin/structure/menu/manage/admin/add', $edit, 'Save');
 
     $menu_items = \Drupal::entityTypeManager()->getStorage('menu_link_content')->getQuery()
       ->sort('id', 'DESC')
@@ -232,7 +232,7 @@ public function testDefaultMenuTabRegression() {
     $edit['page[create]'] = TRUE;
     $edit['page[path]'] = 'admin/foo';
 
-    $this->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $edit, 'Save and edit');
 
     $parameters = new MenuTreeParameters();
     $parameters->addCondition('id', $menu_link_content->getPluginId());
@@ -245,16 +245,16 @@ public function testDefaultMenuTabRegression() {
     $this->drupalPostForm(NULL, [
       'menu[type]' => 'default tab',
       'menu[title]' => 'Menu title',
-    ], t('Apply'));
+    ], 'Apply');
 
     $this->assertText('Default tab options');
 
     $this->drupalPostForm(NULL, [
       'tab_options[type]' => 'normal',
       'tab_options[title]' => 'Parent title',
-    ], t('Apply'));
+    ], 'Apply');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     // Assert that saving the view will not cause an exception.
     $this->assertSession()->statusCodeEquals(200);
   }
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayTest.php b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
index f4a663087d59..ad4efe6e0649 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
@@ -40,7 +40,7 @@ public function testAddDisplay() {
     $this->assertNoText('Block');
     $this->assertNoText('Block 2');
 
-    $this->drupalPostForm(NULL, [], t('Add @display', ['@display' => 'Block']));
+    $this->drupalPostForm(NULL, [], 'Add Block');
     $this->assertText('Block');
     $this->assertNoText('Block 2');
   }
@@ -67,8 +67,8 @@ public function testReorderDisplay() {
       'displays[page_1][weight]' => 2,
       'displays[block_1][weight]' => 1,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView($view['id']);
     $displays = $view->storage->get('display');
@@ -162,21 +162,21 @@ public function testLinkDisplay() {
     $this->assertSession()->checkboxChecked('edit-link-display-0');
 
     // Test the default radio option on the link display form.
-    $this->drupalPostForm($link_display_path, ['link_display' => 'page_1'], t('Apply'));
+    $this->drupalPostForm($link_display_path, ['link_display' => 'page_1'], 'Apply');
     // The form redirects to the master display.
     $this->drupalGet($path);
 
     $result = $this->xpath("//a[contains(@href, :path)]", [':path' => $link_display_path]);
     $this->assertEqual($result[0]->getHtml(), 'Page', 'Make sure that the link option summary shows the right linked display.');
 
-    $this->drupalPostForm($link_display_path, ['link_display' => 'custom_url', 'link_url' => 'a-custom-url'], t('Apply'));
+    $this->drupalPostForm($link_display_path, ['link_display' => 'custom_url', 'link_url' => 'a-custom-url'], 'Apply');
     // The form redirects to the master display.
     $this->drupalGet($path);
 
     $this->assertSession()->linkExists('Custom URL', 0, 'The link option has custom URL as summary.');
 
     // Test the default link_url value for new display
-    $this->drupalPostForm(NULL, [], t('Add Block'));
+    $this->drupalPostForm(NULL, [], 'Add Block');
     $this->assertSession()->addressEquals('admin/structure/views/view/test_display/edit/block_2');
     $this->clickLink(t('Custom URL'));
     $this->assertSession()->fieldValueEquals('link_url', 'a-custom-url');
@@ -240,7 +240,7 @@ public function testActionLinks() {
     $display_title = "'<test>'";
     $this->drupalGet('admin/structure/views/view/test_display');
     $display_title_path = 'admin/structure/views/nojs/display/test_display/block_1/display_title';
-    $this->drupalPostForm($display_title_path, ['display_title' => $display_title], t('Apply'));
+    $this->drupalPostForm($display_title_path, ['display_title' => $display_title], 'Apply');
 
     // Ensure that the title is escaped as expected.
     $this->assertSession()->assertEscaped($display_title);
@@ -271,8 +271,8 @@ public function testHideDisplayOverride() {
     $this->assertText('All displays');
 
     // Remove a display and test if the override option is hidden.
-    $this->drupalPostForm('admin/structure/views/view/test_display/edit/block_1', [], t('Delete @display', ['@display' => 'Block']));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/view/test_display/edit/block_1', [], 'Delete Block');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_display/page_1/field/title');
     $this->assertNoText('All displays');
@@ -284,7 +284,7 @@ public function testHideDisplayOverride() {
 
     // Test that the override option is shown if the current display is
     // overridden so that the option to revert is available.
-    $this->drupalPostForm(NULL, ['override[dropdown]' => 'page_1'], t('Apply'));
+    $this->drupalPostForm(NULL, ['override[dropdown]' => 'page_1'], 'Apply');
     \Drupal::configFactory()->getEditable('views.settings')->set('ui.show.master_display', FALSE)->save();
     $this->drupalGet('admin/structure/views/nojs/handler/test_display/page_1/field/title');
     $this->assertText('Revert to default');
diff --git a/core/modules/views_ui/tests/src/Functional/DuplicateTest.php b/core/modules/views_ui/tests/src/Functional/DuplicateTest.php
index 6399c8e98b38..14ebed2d3871 100644
--- a/core/modules/views_ui/tests/src/Functional/DuplicateTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DuplicateTest.php
@@ -36,7 +36,7 @@ public function testDuplicateView() {
     $view['id'] = strtolower($this->randomMachineName(128));
 
     // Duplicate view.
-    $this->drupalPostForm('admin/structure/views/view/' . $random_view['id'] . '/duplicate', $view, t('Duplicate'));
+    $this->drupalPostForm('admin/structure/views/view/' . $random_view['id'] . '/duplicate', $view, 'Duplicate');
 
     // Assert that the page url is correct.
     $this->assertSession()->addressEquals('admin/structure/views/view/' . $view['id']);
diff --git a/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php b/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
index 86bbfd998165..9e5e42c68886 100644
--- a/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
@@ -79,7 +79,7 @@ public function testExposedAdminUi() {
     $this->assertSession()->checkboxNotChecked('edit-options-value-article');
 
     // Click the Expose filter button.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', $edit, t('Expose filter'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', $edit, 'Expose filter');
     // Check the label of the expose button.
     $this->helperButtonHasLabel('edit-options-expose-button-button', 'Hide filter');
 
@@ -92,12 +92,12 @@ public function testExposedAdminUi() {
     // Check the validations of the filter handler.
     $edit = [];
     $edit['options[expose][identifier]'] = '';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertText('The identifier is required if the filter is exposed.');
 
     $edit = [];
     $edit['options[expose][identifier]'] = 'value';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertText('This identifier is not allowed.');
 
     // Now check the sort criteria.
@@ -107,7 +107,7 @@ public function testExposedAdminUi() {
 
     // Un-expose the filter.
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
-    $this->drupalPostForm(NULL, [], t('Hide filter'));
+    $this->drupalPostForm(NULL, [], 'Hide filter');
 
     // After Un-exposing the filter, Operator and Value should be shown again.
     $this->assertSession()->fieldValueEquals('edit-options-operator-in', 'in');
@@ -117,7 +117,7 @@ public function testExposedAdminUi() {
 
     // Click the Expose sort button.
     $edit = [];
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/sort/created', $edit, t('Expose sort'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/sort/created', $edit, 'Expose sort');
     // Check the label of the expose button.
     $this->helperButtonHasLabel('edit-options-expose-button-button', 'Hide sort');
     $this->assertSession()->fieldValueEquals('edit-options-expose-label', 'Authored on');
@@ -125,17 +125,17 @@ public function testExposedAdminUi() {
     // Test adding a new exposed sort criteria.
     $view_id = $this->randomView()['id'];
     $this->drupalGet("admin/structure/views/nojs/add-handler/$view_id/default/sort");
-    $this->drupalPostForm(NULL, ['name[node_field_data.created]' => 1], t('Add and configure @handler', ['@handler' => t('sort criteria')]));
+    $this->drupalPostForm(NULL, ['name[node_field_data.created]' => 1], 'Add and configure sort criteria');
     $this->assertSession()->fieldValueEquals('options[order]', 'ASC');
     // Change the order and expose the sort.
-    $this->drupalPostForm(NULL, ['options[order]' => 'DESC'], t('Apply'));
-    $this->drupalPostForm("admin/structure/views/nojs/handler/$view_id/default/sort/created", [], t('Expose sort'));
+    $this->drupalPostForm(NULL, ['options[order]' => 'DESC'], 'Apply');
+    $this->drupalPostForm("admin/structure/views/nojs/handler/$view_id/default/sort/created", [], 'Expose sort');
     $this->assertSession()->fieldValueEquals('options[order]', 'DESC');
     $this->assertSession()->fieldValueEquals('options[expose][label]', 'Authored on');
     // Change the label and save the view.
     $edit = ['options[expose][label]' => $this->randomString()];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
     // Check that the values were saved.
     $display = View::load($view_id)->getDisplay('default');
     $this->assertTrue($display['display_options']['sorts']['created']['exposed']);
@@ -152,13 +152,13 @@ public function testGroupedFilterAdminUi() {
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
 
     // Click the Expose filter button.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', $edit, t('Expose filter'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', $edit, 'Expose filter');
     // Check the label of the grouped filters button.
     $this->helperButtonHasLabel('edit-options-group-button-button', 'Grouped filters');
 
     // Click the Grouped Filters button.
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
-    $this->drupalPostForm(NULL, [], t('Grouped filters'));
+    $this->drupalPostForm(NULL, [], 'Grouped filters');
 
     // After click on 'Grouped Filters', the standard operator and value should
     // not be displayed.
@@ -176,7 +176,7 @@ public function testGroupedFilterAdminUi() {
     $edit = [];
     $edit["options[group_info][group_items][1][title]"] = 'Is Article';
     $edit["options[group_info][group_items][1][value][article]"] = 'article';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertSession()->addressEquals('admin/structure/views/view/test_exposed_admin_ui/edit/default');
     $this->assertNoGroupedFilterErrors();
 
@@ -190,7 +190,7 @@ public function testGroupedFilterAdminUi() {
     $edit["options[group_info][group_items][3][title]"] = 'Is Page and Article';
     $edit["options[group_info][group_items][3][value][article]"] = 'article';
     $edit["options[group_info][group_items][3][value][page]"] = 'page';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertSession()->addressEquals('admin/structure/views/view/test_exposed_admin_ui/edit/default');
     $this->assertNoGroupedFilterErrors();
 
@@ -199,19 +199,19 @@ public function testGroupedFilterAdminUi() {
     $edit = [];
     $edit["options[group_info][group_items][1][title]"] = 'No body';
     $edit["options[group_info][group_items][1][operator]"] = 'empty';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertSession()->addressEquals('admin/structure/views/view/test_exposed_admin_ui/edit/default');
     $this->assertNoGroupedFilterErrors();
 
     // Ensure the string "0" can be used as a value for numeric filters.
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_exposed_admin_ui/default/filter', ['name[node_field_data.nid]' => TRUE], t('Add and configure @handler', ['@handler' => t('filter criteria')]));
-    $this->drupalPostForm(NULL, [], t('Expose filter'));
-    $this->drupalPostForm(NULL, [], t('Grouped filters'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_exposed_admin_ui/default/filter', ['name[node_field_data.nid]' => TRUE], 'Add and configure filter criteria');
+    $this->drupalPostForm(NULL, [], 'Expose filter');
+    $this->drupalPostForm(NULL, [], 'Grouped filters');
     $edit = [];
     $edit['options[group_info][group_items][1][title]'] = 'Testing zero';
     $edit['options[group_info][group_items][1][operator]'] = '>';
     $edit['options[group_info][group_items][1][value][value]'] = '0';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertSession()->addressEquals('admin/structure/views/view/test_exposed_admin_ui/edit/default');
     $this->assertNoGroupedFilterErrors();
 
@@ -221,7 +221,7 @@ public function testGroupedFilterAdminUi() {
     $edit['options[group_info][group_items][1][operator]'] = 'between';
     $edit['options[group_info][group_items][1][value][min]'] = '0';
     $edit['options[group_info][group_items][1][value][max]'] = '10';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertSession()->addressEquals('admin/structure/views/view/test_exposed_admin_ui/edit/default');
     $this->assertNoGroupedFilterErrors();
   }
@@ -232,16 +232,16 @@ public function testGroupedFilterAdminUiErrors() {
     $edit = [];
     $edit["options[group_info][group_items][1][title]"] = '';
     $edit["options[group_info][group_items][1][operator]"] = 'empty';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertText($this->groupFormUiErrors['missing_title_empty_operator']);
 
     // Specify a title without a value.
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], t('Expose filter'));
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], t('Grouped filters'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], 'Expose filter');
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], 'Grouped filters');
     $edit = [];
     $edit["options[group_info][group_items][1][title]"] = 'Is Article';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertText($this->groupFormUiErrors['missing_value']);
 
     // Specify a value without a title.
@@ -249,7 +249,7 @@ public function testGroupedFilterAdminUiErrors() {
     $edit = [];
     $edit["options[group_info][group_items][1][title]"] = '';
     $edit["options[group_info][group_items][1][value][article]"] = 'article';
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertText($this->groupFormUiErrors['missing_title']);
   }
 
@@ -278,9 +278,9 @@ protected function assertNoGroupedFilterErrors($message = '', $group = 'Other')
   */
   public function testExposedGroupedFilter() {
     // Click the Expose filter button.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], t('Expose filter'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], 'Expose filter');
     // Select 'Grouped filters' radio button.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], t('Grouped filters'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', [], 'Grouped filters');
     // Add 3 groupings.
     $edit = [
       'options[group_button][radios][radios]' => 1,
@@ -292,16 +292,16 @@ public function testExposedGroupedFilter() {
       'options[group_info][group_items][3][value][page]' => 'page',
     ];
     // Apply the filter settings.
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     // Check that the view is saved without errors.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     // Click the Expose filter button.
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_exposed_admin_ui/default/filter', ['name[node_field_data.status]' => 1], t('Add and configure filter criteria'));
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/status', [], t('Expose filter'));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_exposed_admin_ui/default/filter', ['name[node_field_data.status]' => 1], 'Add and configure filter criteria');
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/status', [], 'Expose filter');
     // Select 'Grouped filters' radio button.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/status', [], t('Grouped filters'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/status', [], 'Grouped filters');
     // Add 3 groupings.
     $edit = [
       'options[group_button][radios][radios]' => 1,
@@ -313,9 +313,9 @@ public function testExposedGroupedFilter() {
       'options[group_info][group_items][3][value]' => 0,
     ];
     // Apply the filter settings.
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     // Check that the view is saved without errors.
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/status');
diff --git a/core/modules/views_ui/tests/src/Functional/FieldUITest.php b/core/modules/views_ui/tests/src/Functional/FieldUITest.php
index 4183deb51197..265987f89372 100644
--- a/core/modules/views_ui/tests/src/Functional/FieldUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/FieldUITest.php
@@ -36,7 +36,7 @@ public function testFieldUI() {
 
     // Hides the field and check whether the hidden label is appended.
     $edit_handler_url = 'admin/structure/views/nojs/handler/test_view/default/field/name';
-    $this->drupalPostForm($edit_handler_url, ['options[exclude]' => TRUE], t('Apply'));
+    $this->drupalPostForm($edit_handler_url, ['options[exclude]' => TRUE], 'Apply');
 
     $this->assertText('Views test: Name [' . t('hidden') . ']');
 
@@ -70,7 +70,7 @@ public function testFieldUI() {
     $edit = [
       'group_by' => TRUE,
     ];
-    $this->drupalPostForm('/admin/structure/views/nojs/display/test_view/default/group_by', $edit, t('Apply'));
+    $this->drupalPostForm('/admin/structure/views/nojs/display/test_view/default/group_by', $edit, 'Apply');
 
     $this->assertSession()->linkByHrefExists($edit_groupby_url, 0, 'Aggregation link found.');
 
@@ -95,7 +95,7 @@ public function testFieldLabel() {
     $view['page[style][style_plugin]'] = 'default';
     $view['page[title]'] = $this->randomMachineName(16);
     $view['page[path]'] = $view['id'];
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     $view = Views::getView($view['id']);
     $view->initHandlers();
diff --git a/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php b/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
index 712c40e25510..efc144ed19cf 100644
--- a/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
+++ b/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
@@ -26,7 +26,7 @@ class FilterBooleanWebTest extends UITestBase {
    * Tests the filter boolean UI.
    */
   public function testFilterBooleanUI() {
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_view/default/filter', ['name[views_test_data.status]' => TRUE], t('Add and configure @handler', ['@handler' => t('filter criteria')]));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_view/default/filter', ['name[views_test_data.status]' => TRUE], 'Add and configure filter criteria');
 
     // Check the field widget label. 'title' should be used as a fallback.
     $result = $this->cssSelect('#edit-options-value--wrapper legend span');
@@ -37,8 +37,8 @@ public function testFilterBooleanUI() {
     $this->assertSession()->elementExists('css', '.views-left-30 .form-item-options-operator');
     $this->assertSession()->elementExists('css', '.views-right-70 .form-item-options-value');
 
-    $this->drupalPostForm(NULL, [], t('Expose filter'));
-    $this->drupalPostForm(NULL, [], t('Grouped filters'));
+    $this->drupalPostForm(NULL, [], 'Expose filter');
+    $this->drupalPostForm(NULL, [], 'Grouped filters');
 
     $edit = [];
     $edit['options[group_info][group_items][1][title]'] = 'Published';
@@ -51,7 +51,7 @@ public function testFilterBooleanUI() {
     $edit['options[group_info][group_items][3][operator]'] = '!=';
     $edit['options[group_info][group_items][3][value]'] = 1;
 
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_view/default/filter/status');
 
@@ -69,7 +69,7 @@ public function testFilterBooleanUI() {
     $edit = [];
     $edit['options[group_info][default_group]'] = 2;
     $edit['options[group_info][group_items][3][remove]'] = 1;
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->drupalGet('admin/structure/views/nojs/handler/test_view/default/filter/status');
     $this->assertSession()->fieldValueEquals('options[group_info][default_group]', 2);
     $this->assertSession()->fieldNotExists('options[group_info][group_items][3][remove]');
diff --git a/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php b/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php
index 44e3d404e389..10e6a2708779 100644
--- a/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php
+++ b/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php
@@ -33,12 +33,12 @@ public function testFilterNumericUI() {
     $path = 'test_view-path';
     $this->drupalPostForm('admin/structure/views/view/test_view/edit', [], 'Add Page');
     $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', ['path' => $path], 'Apply');
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
-    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_view/default/filter', ['name[views_test_data.age]' => TRUE], t('Add and configure @handler', ['@handler' => t('filter criteria')]));
+    $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_view/default/filter', ['name[views_test_data.age]' => TRUE], 'Add and configure filter criteria');
 
-    $this->drupalPostForm(NULL, [], t('Expose filter'));
-    $this->drupalPostForm(NULL, [], t('Grouped filters'));
+    $this->drupalPostForm(NULL, [], 'Expose filter');
+    $this->drupalPostForm(NULL, [], 'Grouped filters');
 
     $edit = [];
     $edit['options[group_info][group_items][1][title]'] = 'Old';
@@ -52,14 +52,14 @@ public function testFilterNumericUI() {
     $edit['options[group_info][group_items][3][value][min]'] = 26;
     $edit['options[group_info][group_items][3][value][max]'] = 28;
 
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_view/default/filter/age');
     foreach ($edit as $name => $value) {
       $this->assertSession()->fieldValueEquals($name, $value);
     }
 
-    $this->drupalPostForm('admin/structure/views/view/test_view', [], t('Save'));
+    $this->drupalPostForm('admin/structure/views/view/test_view', [], 'Save');
     $this->assertConfigSchemaByName('views.view.test_view');
 
     // Test that the exposed filter works as expected.
@@ -78,11 +78,11 @@ public function testFilterNumericUI() {
 
     // Change the filter to a single filter to test the schema when the operator
     // is not exposed.
-    $this->drupalPostForm('admin/structure/views/nojs/handler/test_view/default/filter/age', [], t('Single filter'));
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_view/default/filter/age', [], 'Single filter');
     $edit = [];
     $edit['options[value][value]'] = 25;
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_view', [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_view', [], 'Save');
     $this->assertConfigSchemaByName('views.view.test_view');
 
     // Test that the filter works as expected.
@@ -92,7 +92,7 @@ public function testFilterNumericUI() {
     $this->assertNoText('Ringo');
     $this->assertNoText('George');
     $this->assertNoText('Meredith');
-    $this->drupalPostForm(NULL, ['age' => '26'], t('Apply'));
+    $this->drupalPostForm(NULL, ['age' => '26'], 'Apply');
     $this->assertNoText('John');
     $this->assertText('Paul');
     $this->assertNoText('Ringo');
@@ -108,11 +108,11 @@ public function testFilterNumericUI() {
     $edit['options[operator]'] = 'between';
     $edit['options[value][min]'] = 26;
     $edit['options[value][max]'] = 28;
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_view', [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_view', [], 'Save');
     $this->assertConfigSchemaByName('views.view.test_view');
 
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
     // Check the field (wrapper) label.
     $this->assertSession()->elementTextContains('css', 'fieldset#edit-age-wrapper legend', 'Age between');
     // Check the min/max labels.
@@ -130,11 +130,11 @@ public function testFilterNumericUI() {
     $edit['options[expose][description]'] = 'Description of the exposed filter';
     $edit['options[operator]'] = '>';
     $edit['options[value][value]'] = 1000;
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
-    $this->drupalPostForm('admin/structure/views/view/test_view', [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
+    $this->drupalPostForm('admin/structure/views/view/test_view', [], 'Save');
     $this->assertConfigSchemaByName('views.view.test_view');
 
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
 
     // Make sure the label is visible and that there's no fieldset wrapper.
     $label = $this->xpath('//label[contains(@for, "edit-age") and contains(text(), "Age greater than")]');
diff --git a/core/modules/views_ui/tests/src/Functional/FilterUITest.php b/core/modules/views_ui/tests/src/Functional/FilterUITest.php
index 74a3a1644574..b6b99e88ccf2 100644
--- a/core/modules/views_ui/tests/src/Functional/FilterUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/FilterUITest.php
@@ -56,7 +56,7 @@ public function testFilterInOperatorUi() {
     $edit = [
       'options[expose][reduce]' => TRUE,
     ];
-    $this->drupalPostForm($path, $edit, t('Apply'));
+    $this->drupalPostForm($path, $edit, 'Apply');
 
     // Verifies that the option was saved as expected.
     $this->drupalGet($path);
@@ -82,17 +82,17 @@ public function testFiltersUI() {
     $this->assertNoRaw('<span>Group 3</span>');
 
     // Create 2 new groups.
-    $this->drupalPostForm(NULL, [], t('Create new filter group'));
-    $this->drupalPostForm(NULL, [], t('Create new filter group'));
+    $this->drupalPostForm(NULL, [], 'Create new filter group');
+    $this->drupalPostForm(NULL, [], 'Create new filter group');
 
     // Remove the new group 3.
-    $this->drupalPostForm(NULL, [], t('Remove group 3'));
+    $this->drupalPostForm(NULL, [], 'Remove group 3');
 
     // Verify that the group 4 is now named as 3.
     $this->assertRaw('<span>Group 3</span>');
 
     // Remove the group 3 again.
-    $this->drupalPostForm(NULL, [], t('Remove group 3'));
+    $this->drupalPostForm(NULL, [], 'Remove group 3');
 
     // Group 3 now does not exist.
     $this->assertNoRaw('<span>Group 3</span>');
@@ -113,14 +113,14 @@ public function testFilterIdentifier() {
     $edit = [
       'options[expose][identifier]' => '',
     ];
-    $this->drupalPostForm($path, $edit, t('Apply'));
+    $this->drupalPostForm($path, $edit, 'Apply');
     $this->assertText('The identifier is required if the filter is exposed.');
 
     // Set the identifier to 'value'.
     $edit = [
       'options[expose][identifier]' => 'value',
     ];
-    $this->drupalPostForm($path, $edit, t('Apply'));
+    $this->drupalPostForm($path, $edit, 'Apply');
     $this->assertText('This identifier is not allowed.');
 
     // Try a few restricted values for the identifier.
@@ -128,7 +128,7 @@ public function testFilterIdentifier() {
       $edit = [
         'options[expose][identifier]' => $identifier,
       ];
-      $this->drupalPostForm($path, $edit, t('Apply'));
+      $this->drupalPostForm($path, $edit, 'Apply');
       $this->assertText('This identifier has illegal characters.');
     }
   }
diff --git a/core/modules/views_ui/tests/src/Functional/GroupByTest.php b/core/modules/views_ui/tests/src/Functional/GroupByTest.php
index 7d707cce0603..2f59fbc4b8dd 100644
--- a/core/modules/views_ui/tests/src/Functional/GroupByTest.php
+++ b/core/modules/views_ui/tests/src/Functional/GroupByTest.php
@@ -36,15 +36,15 @@ public function testGroupBySave() {
     $edit = [
       'group_by' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/views/nojs/display/test_views_groupby_save/default/group_by', $edit, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/display/test_views_groupby_save/default/group_by', $edit, 'Apply');
 
     $this->assertSession()->linkByHrefExists($edit_groupby_url, 0, 'Aggregation link found.');
 
     // Change the groupby type in the UI.
-    $this->drupalPostForm($edit_groupby_url, ['options[group_type]' => 'count'], t('Apply'));
+    $this->drupalPostForm($edit_groupby_url, ['options[group_type]' => 'count'], 'Apply');
     $this->assertSession()->linkExists('COUNT(Views test: ID)', 0, 'The count setting is displayed in the UI');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = $this->container->get('entity_type.manager')->getStorage('view')->load('test_views_groupby_save');
     $display = $view->getDisplay('default');
diff --git a/core/modules/views_ui/tests/src/Functional/HandlerTest.php b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
index af5b16303d09..ad9cc76f1079 100644
--- a/core/modules/views_ui/tests/src/Functional/HandlerTest.php
+++ b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
@@ -103,17 +103,17 @@ public function testUICRUD() {
 
       // Area handler types need to use a different handler.
       if (in_array($type, ['header', 'footer', 'empty'])) {
-        $this->drupalPostForm($add_handler_url, ['name[views.area]' => TRUE], t('Add and configure @handler', ['@handler' => $type_info['ltitle']]));
+        $this->drupalPostForm($add_handler_url, ['name[views.area]' => TRUE], 'Add and configure ' . $type_info['ltitle']);
         $id = 'area';
         $edit_handler_url = "admin/structure/views/nojs/handler/test_view_empty/default/$type/$id";
       }
       elseif ($type == 'relationship') {
-        $this->drupalPostForm($add_handler_url, ['name[views_test_data.uid]' => TRUE], t('Add and configure @handler', ['@handler' => $type_info['ltitle']]));
+        $this->drupalPostForm($add_handler_url, ['name[views_test_data.uid]' => TRUE], 'Add and configure ' . $type_info['ltitle']);
         $id = 'uid';
         $edit_handler_url = "admin/structure/views/nojs/handler/test_view_empty/default/$type/$id";
       }
       else {
-        $this->drupalPostForm($add_handler_url, ['name[views_test_data.job]' => TRUE], t('Add and configure @handler', ['@handler' => $type_info['ltitle']]));
+        $this->drupalPostForm($add_handler_url, ['name[views_test_data.job]' => TRUE], 'Add and configure ' . $type_info['ltitle']);
         $id = 'job';
         $edit_handler_url = "admin/structure/views/nojs/handler/test_view_empty/default/$type/$id";
       }
@@ -121,7 +121,7 @@ public function testUICRUD() {
       // Verify that the user got redirected to the handler edit form.
       $this->assertSession()->addressEquals($edit_handler_url);
       $random_label = $this->randomMachineName();
-      $this->drupalPostForm(NULL, ['options[admin_label]' => $random_label], t('Apply'));
+      $this->drupalPostForm(NULL, ['options[admin_label]' => $random_label], 'Apply');
 
       // Verify that the user got redirected to the views edit form.
       $this->assertSession()->addressEquals('admin/structure/views/view/test_view_empty/edit/default');
@@ -131,16 +131,16 @@ public function testUICRUD() {
       $this->assertTrue(isset($links[0]), 'The handler edit link has the right label');
 
       // Save the view and have a look whether the handler was added as expected.
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $view = $this->container->get('entity_type.manager')->getStorage('view')->load('test_view_empty');
       $display = $view->getDisplay('default');
       $this->assertTrue(isset($display['display_options'][$type_info['plural']][$id]), 'Ensure the field was added to the view itself.');
 
       // Remove the item and check that it's removed
-      $this->drupalPostForm($edit_handler_url, [], t('Remove'));
+      $this->drupalPostForm($edit_handler_url, [], 'Remove');
       $this->assertSession()->linkByHrefNotExists($edit_handler_url, 0, 'The handler edit link does not appears in the UI after removing.');
 
-      $this->drupalPostForm(NULL, [], t('Save'));
+      $this->drupalPostForm(NULL, [], 'Save');
       $view = $this->container->get('entity_type.manager')->getStorage('view')->load('test_view_empty');
       $display = $view->getDisplay('default');
       $this->assertFalse(isset($display['display_options'][$type_info['plural']][$id]), 'Ensure the field was removed from the view itself.');
@@ -149,20 +149,20 @@ public function testUICRUD() {
     // Test adding a field of the user table using the uid relationship.
     $type_info = $handler_types['relationship'];
     $add_handler_url = "admin/structure/views/nojs/add-handler/test_view_empty/default/relationship";
-    $this->drupalPostForm($add_handler_url, ['name[views_test_data.uid]' => TRUE], t('Add and configure @handler', ['@handler' => $type_info['ltitle']]));
+    $this->drupalPostForm($add_handler_url, ['name[views_test_data.uid]' => TRUE], 'Add and configure ' . $type_info['ltitle']);
 
     $add_handler_url = "admin/structure/views/nojs/add-handler/test_view_empty/default/field";
     $type_info = $handler_types['field'];
-    $this->drupalPostForm($add_handler_url, ['name[users_field_data.name]' => TRUE], t('Add and configure @handler', ['@handler' => $type_info['ltitle']]));
+    $this->drupalPostForm($add_handler_url, ['name[users_field_data.name]' => TRUE], 'Add and configure ' . $type_info['ltitle']);
     $id = 'name';
     $edit_handler_url = "admin/structure/views/nojs/handler/test_view_empty/default/field/$id";
 
     // Verify that the user got redirected to the handler edit form.
     $this->assertSession()->addressEquals($edit_handler_url);
     $this->assertSession()->fieldValueEquals('options[relationship]', 'uid');
-    $this->drupalPostForm(NULL, [], t('Apply'));
+    $this->drupalPostForm(NULL, [], 'Apply');
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $view = $this->container->get('entity_type.manager')->getStorage('view')->load('test_view_empty');
     $display = $view->getDisplay('default');
     $this->assertTrue(isset($display['display_options'][$type_info['plural']][$id]), 'Ensure the field was added to the view itself.');
diff --git a/core/modules/views_ui/tests/src/Functional/NewViewConfigSchemaTest.php b/core/modules/views_ui/tests/src/Functional/NewViewConfigSchemaTest.php
index 47bf1856f561..b353a2869b14 100644
--- a/core/modules/views_ui/tests/src/Functional/NewViewConfigSchemaTest.php
+++ b/core/modules/views_ui/tests/src/Functional/NewViewConfigSchemaTest.php
@@ -55,7 +55,7 @@ public function testNewViews() {
       $edit['id'] = strtolower($this->randomMachineName());
       $edit['show[wizard_key]'] = $wizard_key;
       $edit['description'] = $this->randomString();
-      $this->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit'));
+      $this->drupalPostForm('admin/structure/views/add', $edit, 'Save and edit');
     }
   }
 
diff --git a/core/modules/views_ui/tests/src/Functional/OverrideDisplaysTest.php b/core/modules/views_ui/tests/src/Functional/OverrideDisplaysTest.php
index 26345f2c75a4..b8bc37dd4be5 100644
--- a/core/modules/views_ui/tests/src/Functional/OverrideDisplaysTest.php
+++ b/core/modules/views_ui/tests/src/Functional/OverrideDisplaysTest.php
@@ -32,7 +32,7 @@ public function testOverrideDisplays() {
     $view['page[path]'] = $this->randomMachineName(16);
     $view['block[create]'] = 1;
     $view_path = $view['page[path]'];
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     // Configure its title. Since the page and block both started off with the
     // same (empty) title in the views wizard, we expect the wizard to have set
@@ -41,8 +41,8 @@ public function testOverrideDisplays() {
     $edit = [];
     $edit['title'] = $original_title = $this->randomMachineName(16);
     $edit['override[dropdown]'] = 'default';
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/title", $edit, t('Apply'));
-    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/page_1", [], t('Save'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/title", $edit, 'Apply');
+    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/page_1", [], 'Save');
 
     // Add a node that will appear in the view, so that the block will actually
     // be displayed.
@@ -71,8 +71,8 @@ public function testOverrideDisplays() {
     $edit = [];
     $edit['title'] = $new_title = $this->randomMachineName(16);
     $edit['override[dropdown]'] = 'page_1';
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/title", $edit, t('Apply'));
-    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/page_1", [], t('Save'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/title", $edit, 'Apply');
+    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/page_1", [], 'Save');
     $this->drupalGet($view_path);
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText($new_title);
@@ -96,7 +96,7 @@ public function testWizardMixedDefaultOverriddenDisplays() {
     $view['page[feed_properties][path]'] = $this->randomMachineName(16);
     $view['block[create]'] = 1;
     $view['block[title]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     // Add a node that will appear in the view, so that the block will actually
     // be displayed.
@@ -139,8 +139,8 @@ public function testWizardMixedDefaultOverriddenDisplays() {
     // the feed's title also, but not the block.
     $edit = [];
     $edit['title'] = $new_default_title = $this->randomMachineName(16);
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/title", $edit, t('Apply'));
-    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/page_1", [], t('Save'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/page_1/title", $edit, 'Apply');
+    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/page_1", [], 'Save');
     $this->drupalGet($view['page[path]']);
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText($new_default_title);
@@ -160,8 +160,8 @@ public function testWizardMixedDefaultOverriddenDisplays() {
     // the block title only, and leave the defaults alone.
     $edit = [];
     $edit['title'] = $new_block_title = $this->randomMachineName(16);
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/block_1/title", $edit, t('Apply'));
-    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/block_1", [], t('Save'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/block_1/title", $edit, 'Apply');
+    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/block_1", [], 'Save');
     $this->drupalGet($view['page[path]']);
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText($new_default_title);
@@ -188,7 +188,7 @@ public function testRevertAllDisplays() {
     $view['page[path]'] = $this->randomMachineName(16);
     $view['block[create]'] = 1;
     $view['block[title]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     // Revert the title of the block to the default ones, but submit some new
     // values to be sure that the new value is not stored.
@@ -196,8 +196,8 @@ public function testRevertAllDisplays() {
     $edit['title'] = $this->randomMachineName();
     $edit['override[dropdown]'] = 'default_revert';
 
-    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/block_1/title", $edit, t('Apply'));
-    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/block_1", [], t('Save'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/{$view['id']}/block_1/title", $edit, 'Apply');
+    $this->drupalPostForm("admin/structure/views/view/{$view['id']}/edit/block_1", [], 'Save');
     $this->assertText($view['page[title]']);
   }
 
diff --git a/core/modules/views_ui/tests/src/Functional/PreviewTest.php b/core/modules/views_ui/tests/src/Functional/PreviewTest.php
index 8cc7dd5a1d80..e8c41a9fbe78 100644
--- a/core/modules/views_ui/tests/src/Functional/PreviewTest.php
+++ b/core/modules/views_ui/tests/src/Functional/PreviewTest.php
@@ -30,12 +30,12 @@ public function testPreviewContextual() {
 
     $this->drupalGet('admin/structure/views/view/test_preview/edit');
     $this->assertSession()->statusCodeEquals(200);
-    $this->drupalPostForm(NULL, $edit = [], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = [], 'Update preview');
 
     $elements = $this->xpath('//div[@id="views-live-preview"]//ul[contains(@class, :ul-class)]/li[contains(@class, :li-class)]', [':ul-class' => 'contextual-links', ':li-class' => 'filter-add']);
     $this->assertCount(1, $elements, 'The contextual link to add a new field is shown.');
 
-    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], 'Update preview');
 
     // Test that area text and exposed filters are present and rendered.
     $this->assertSession()->fieldExists('id');
@@ -51,19 +51,19 @@ public function testPreviewUI() {
     $this->drupalGet('admin/structure/views/view/test_preview/edit');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, $edit = [], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = [], 'Update preview');
 
     $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]');
     $this->assertCount(5, $elements);
 
     // Filter just the first result.
-    $this->drupalPostForm(NULL, $edit = ['view_args' => '1'], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = ['view_args' => '1'], 'Update preview');
 
     $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]');
     $this->assertCount(1, $elements);
 
     // Filter for no results.
-    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], 'Update preview');
 
     $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]');
     $this->assertCount(0, $elements);
@@ -83,9 +83,9 @@ public function testPreviewUI() {
     $view['page[path]'] = $this->randomMachineName(16);
     $view['page[feed]'] = 1;
     $view['page[feed_properties][path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
     $this->clickLink(t('Feed'));
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $result = $this->xpath('//div[@id="views-live-preview"]/pre');
     $this->assertStringContainsString('<title>' . $view['page[title]'] . '</title>', $result[0]->getText(), 'The Feed RSS preview was rendered.');
 
@@ -94,7 +94,7 @@ public function testPreviewUI() {
     $settings = \Drupal::configFactory()->getEditable('views.settings');
     $settings->set('ui.show.performance_statistics', TRUE)->save();
     $this->drupalGet('admin/structure/views/view/test_preview/edit');
-    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], 'Update preview');
     $this->assertText('Query build time');
     $this->assertText('Query execute time');
     $this->assertText('View render time');
@@ -102,7 +102,7 @@ public function testPreviewUI() {
 
     // Statistics and query.
     $settings->set('ui.show.sql_query.enabled', TRUE)->save();
-    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], 'Update preview');
     $this->assertText('Query build time');
     $this->assertText('Query execute time');
     $this->assertText('View render time');
@@ -120,12 +120,12 @@ public function testPreviewUI() {
 
     // Test that statistics and query rendered below the preview.
     $settings->set('ui.show.sql_query.where', 'below')->save();
-    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], 'Update preview');
     $this->assertTrue(strpos($this->getSession()->getPage()->getContent(), 'view-test-preview') < strpos($this->getSession()->getPage()->getContent(), 'views-query-info'), 'Statistics shown below the preview.');
 
     // Test that the preview title isn't double escaped.
-    $this->drupalPostForm("admin/structure/views/nojs/display/test_preview/default/title", $edit = ['title' => 'Double & escaped'], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/test_preview/default/title", $edit = ['title' => 'Double & escaped'], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $elements = $this->xpath('//div[@id="views-live-preview"]/div[contains(@class, views-query-info)]//td[text()=:text]', [':text' => 'Double & escaped']);
     $this->assertCount(1, $elements);
   }
@@ -140,7 +140,7 @@ public function testPreviewAdditionalInfo() {
     $this->drupalGet('admin/structure/views/view/test_preview/edit');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, $edit = [], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = [], 'Update preview');
 
     // Check for implementation of hook_views_preview_info_alter().
     // @see views_ui_test.module
@@ -158,7 +158,7 @@ public function testPreviewError() {
     $this->drupalGet('admin/structure/views/view/test_preview_error/edit');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, $edit = [], t('Update preview'));
+    $this->drupalPostForm(NULL, $edit = [], 'Update preview');
 
     $this->assertText('Unable to preview due to validation errors.', 'Preview error text found.');
   }
diff --git a/core/modules/views_ui/tests/src/Functional/QueryTest.php b/core/modules/views_ui/tests/src/Functional/QueryTest.php
index d806e82262fe..772686fc28d0 100644
--- a/core/modules/views_ui/tests/src/Functional/QueryTest.php
+++ b/core/modules/views_ui/tests/src/Functional/QueryTest.php
@@ -46,8 +46,8 @@ public function testQueryUI() {
     // Save some query settings.
     $query_settings_path = "admin/structure/views/nojs/display/test_view/default/query";
     $random_value = $this->randomMachineName();
-    $this->drupalPostForm($query_settings_path, ['query[options][test_setting]' => $random_value], t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm($query_settings_path, ['query[options][test_setting]' => $random_value], 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Check that the settings are saved into the view itself.
     $view = Views::getView('test_view');
diff --git a/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php b/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php
index 61f950aa87c7..da58593fc101 100644
--- a/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php
+++ b/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php
@@ -64,7 +64,7 @@ public function testRearrangeFields() {
 
     // Checks that a field is not deleted if a value is not passed back.
     $fields = [];
-    $this->drupalPostForm('admin/structure/views/nojs/rearrange/' . $view_name . '/default/field', $fields, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/rearrange/' . $view_name . '/default/field', $fields, 'Apply');
     $this->assertFieldOrder($view_name, $this->getViewFields($view_name));
 
     // Checks that revers the new field order is respected.
@@ -74,7 +74,7 @@ public function testRearrangeFields() {
       $fields['fields[' . $field . '][weight]'] = $delta;
     }
     $fields_count = count($fields);
-    $this->drupalPostForm('admin/structure/views/nojs/rearrange/' . $view_name . '/default/field', $fields, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/rearrange/' . $view_name . '/default/field', $fields, 'Apply');
     $this->assertFieldOrder($view_name, $reversedFields);
 
     // Checks that there is a remove link for each field.
diff --git a/core/modules/views_ui/tests/src/Functional/RedirectTest.php b/core/modules/views_ui/tests/src/Functional/RedirectTest.php
index 9e3466a64044..bcba0c3e99a3 100644
--- a/core/modules/views_ui/tests/src/Functional/RedirectTest.php
+++ b/core/modules/views_ui/tests/src/Functional/RedirectTest.php
@@ -32,7 +32,7 @@ public function testRedirect() {
 
     // Verify that the user gets redirected to the expected page defined in the
     // destination.
-    $this->drupalPostForm($edit_path, [], t('Save'), ['query' => ['destination' => $random_destination]]);
+    $this->drupalPostForm($edit_path, [], 'Save', ['query' => ['destination' => $random_destination]]);
     $this->assertSession()->addressEquals($random_destination);
 
     // Setup a view with a certain page display path. If you change the path
@@ -44,8 +44,8 @@ public function testRedirect() {
     $edit_path = "admin/structure/views/view/$view_name/edit";
     $path_edit_path = "admin/structure/views/nojs/display/$view_name/page_1/path";
 
-    $this->drupalPostForm($path_edit_path, ['path' => $new_path], t('Apply'));
-    $this->drupalPostForm($edit_path, [], t('Save'), ['query' => ['destination' => 'test-redirect-view']]);
+    $this->drupalPostForm($path_edit_path, ['path' => $new_path], 'Apply');
+    $this->drupalPostForm($edit_path, [], 'Save', ['query' => ['destination' => 'test-redirect-view']]);
     // Verify that the user gets redirected to the expected page after changing
     // the URL of a page display.
     $this->assertSession()->addressEquals($new_path);
diff --git a/core/modules/views_ui/tests/src/Functional/RowUITest.php b/core/modules/views_ui/tests/src/Functional/RowUITest.php
index 7e5336ea5498..5fa60a209cff 100644
--- a/core/modules/views_ui/tests/src/Functional/RowUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/RowUITest.php
@@ -41,19 +41,19 @@ public function testRowUI() {
     $edit = [
       'row[type]' => 'test_row',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     // Make sure the custom settings form from the test plugin appears.
     $this->assertSession()->fieldExists('row_options[test_option]');
     $random_name = $this->randomMachineName();
     $edit = [
       'row_options[test_option]' => $random_name,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->drupalGet($row_options_url);
     // Make sure the custom settings form field has the expected value stored.
     $this->assertSession()->fieldValueEquals('row_options[test_option]', $random_name);
 
-    $this->drupalPostForm($view_edit_url, [], t('Save'));
+    $this->drupalPostForm($view_edit_url, [], 'Save');
     $this->assertSession()->linkExists('Test row plugin', 0, 'Make sure the test row plugin is shown in the UI');
 
     $view = Views::getView($view_name);
@@ -74,7 +74,7 @@ public function testRowUI() {
     $row_options_url = "admin/structure/views/nojs/display/$view_name/default/row_options";
 
     $this->drupalGet($row_plugin_url);
-    $this->drupalPostForm(NULL, ['row[type]' => 'entity:node'], t('Apply'));
+    $this->drupalPostForm(NULL, ['row[type]' => 'entity:node'], 'Apply');
     $this->assertSession()->addressEquals($row_options_url);
     // Make sure the custom settings form from the entity row plugin appears.
     $this->assertSession()->fieldValueEquals('row_options[view_mode]', 'teaser');
diff --git a/core/modules/views_ui/tests/src/Functional/SettingsTest.php b/core/modules/views_ui/tests/src/Functional/SettingsTest.php
index 44d53ecb6d8d..5e1e0710eb36 100644
--- a/core/modules/views_ui/tests/src/Functional/SettingsTest.php
+++ b/core/modules/views_ui/tests/src/Functional/SettingsTest.php
@@ -42,14 +42,14 @@ public function testEditUI() {
     $this->assertSession()->linkNotExists('admin/structure/views/settings');
 
     // Test the confirmation message.
-    $this->drupalPostForm('admin/structure/views/settings', [], t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings', [], 'Save configuration');
     $this->assertText('The configuration options have been saved.');
 
     // Configure to always show the master display.
     $edit = [
       'ui_show_master_display' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/views/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings', $edit, 'Save configuration');
 
     $view = [];
     $view['label'] = $this->randomMachineName(16);
@@ -58,7 +58,7 @@ public function testEditUI() {
     $view['page[create]'] = TRUE;
     $view['page[title]'] = $this->randomMachineName(16);
     $view['page[path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     // Configure to not always show the master display.
     // If you have a view without a page or block the master display should be
@@ -66,15 +66,15 @@ public function testEditUI() {
     $edit = [
       'ui_show_master_display' => FALSE,
     ];
-    $this->drupalPostForm('admin/structure/views/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings', $edit, 'Save configuration');
 
     $view['page[create]'] = FALSE;
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     // Create a view with an additional display, so master should be hidden.
     $view['page[create]'] = TRUE;
     $view['id'] = strtolower($this->randomMachineName());
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     $this->assertSession()->linkNotExists('Master');
 
@@ -85,42 +85,42 @@ public function testEditUI() {
     $edit = [
       'ui_show_display_embed' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/views/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings', $edit, 'Save configuration');
 
     $view['id'] = strtolower($this->randomMachineName());
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
     $this->assertSession()->buttonExists('edit-displays-top-add-display-embed');
 
     $edit = [
       'ui_show_display_embed' => FALSE,
     ];
-    $this->drupalPostForm('admin/structure/views/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings', $edit, 'Save configuration');
 
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
     $this->assertSession()->buttonNotExists('edit-displays-top-add-display-embed');
 
     // Configure to hide/show the sql at the preview.
     $edit = [
       'ui_show_sql_query_enabled' => FALSE,
     ];
-    $this->drupalPostForm('admin/structure/views/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings', $edit, 'Save configuration');
 
     $view['id'] = strtolower($this->randomMachineName());
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $xpath = $this->xpath('//div[@class="views-query-info"]/pre');
     $this->assertCount(0, $xpath, 'The views sql is hidden.');
 
     $edit = [
       'ui_show_sql_query_enabled' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/views/settings', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings', $edit, 'Save configuration');
 
     $view['id'] = strtolower($this->randomMachineName());
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $xpath = $this->xpath('//div[@class="views-query-info"]//pre');
     $this->assertCount(1, $xpath, 'The views sql is shown.');
     $this->assertStringNotContainsString('db_condition_placeholder', $xpath[0]->getText(), 'No placeholders are shown in the views sql.');
@@ -129,20 +129,20 @@ public function testEditUI() {
     // Test the advanced settings form.
 
     // Test the confirmation message.
-    $this->drupalPostForm('admin/structure/views/settings/advanced', [], t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings/advanced', [], 'Save configuration');
     $this->assertText('The configuration options have been saved.');
 
     $edit = [
       'skip_cache' => TRUE,
       'sql_signature' => TRUE,
     ];
-    $this->drupalPostForm('admin/structure/views/settings/advanced', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/structure/views/settings/advanced', $edit, 'Save configuration');
 
     $this->assertSession()->checkboxChecked('edit-skip-cache');
     $this->assertSession()->checkboxChecked('edit-sql-signature');
 
     // Test the "Clear Views' cache" button.
-    $this->drupalPostForm('admin/structure/views/settings/advanced', [], t("Clear Views' cache"));
+    $this->drupalPostForm('admin/structure/views/settings/advanced', [], "Clear Views' cache");
     $this->assertText('The cache has been cleared.');
   }
 
diff --git a/core/modules/views_ui/tests/src/Functional/StorageTest.php b/core/modules/views_ui/tests/src/Functional/StorageTest.php
index a7a5b55423c0..67202bd8ed62 100644
--- a/core/modules/views_ui/tests/src/Functional/StorageTest.php
+++ b/core/modules/views_ui/tests/src/Functional/StorageTest.php
@@ -49,8 +49,8 @@ public function testDetails() {
       'langcode' => 'fr',
     ];
 
-    $this->drupalPostForm("admin/structure/views/nojs/edit-details/$view_name/default", $edit, t('Apply'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm("admin/structure/views/nojs/edit-details/$view_name/default", $edit, 'Apply');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     $view = Views::getView($view_name);
 
diff --git a/core/modules/views_ui/tests/src/Functional/StyleTableTest.php b/core/modules/views_ui/tests/src/Functional/StyleTableTest.php
index 3efbbb7355ea..c81148b8396c 100644
--- a/core/modules/views_ui/tests/src/Functional/StyleTableTest.php
+++ b/core/modules/views_ui/tests/src/Functional/StyleTableTest.php
@@ -30,7 +30,7 @@ public function testWizard() {
     $view['page[style][style_plugin]'] = 'table';
     $view['page[title]'] = $this->randomMachineName(16);
     $view['page[path]'] = $view['id'];
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     $view = Views::getView($view['id']);
     $view->initHandlers();
diff --git a/core/modules/views_ui/tests/src/Functional/StyleUITest.php b/core/modules/views_ui/tests/src/Functional/StyleUITest.php
index 7fa301919dfe..b797750269e6 100644
--- a/core/modules/views_ui/tests/src/Functional/StyleUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/StyleUITest.php
@@ -40,17 +40,17 @@ public function testStyleUI() {
     $edit = [
       'style[type]' => 'test_style',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->assertSession()->fieldExists('style_options[test_option]');
     $random_name = $this->randomMachineName();
     $edit = [
       'style_options[test_option]' => $random_name,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Apply'));
+    $this->drupalPostForm(NULL, $edit, 'Apply');
     $this->drupalGet($style_options_url);
     $this->assertSession()->fieldValueEquals('style_options[test_option]', $random_name);
 
-    $this->drupalPostForm($view_edit_url, [], t('Save'));
+    $this->drupalPostForm($view_edit_url, [], 'Save');
     $this->assertSession()->linkExists('Test style plugin', 0, 'Make sure the test style plugin is shown in the UI');
 
     $view = Views::getView($view_name);
@@ -62,7 +62,7 @@ public function testStyleUI() {
     // Test that fields are working correctly in the UI for style plugins when
     // a field row plugin is selected.
     $this->drupalPostForm("admin/structure/views/view/$view_name/edit", [], 'Add Page');
-    $this->drupalPostForm("admin/structure/views/nojs/display/$view_name/page_1/row", ['row[type]' => 'fields'], t('Apply'));
+    $this->drupalPostForm("admin/structure/views/nojs/display/$view_name/page_1/row", ['row[type]' => 'fields'], 'Apply');
     // If fields are being used this text will not be shown.
     $this->assertNoText('The selected style or row format does not use fields.');
   }
diff --git a/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php b/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
index 46ff0e9633c6..9d764340c397 100644
--- a/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
+++ b/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
@@ -77,7 +77,7 @@ public function testTranslatedStrings() {
     $edit = [
       'translation[config_names][views.view.files][label]' => 'Fichiers',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save translation'));
+    $this->drupalPostForm(NULL, $edit, 'Save translation');
 
     // Check if the label is translated.
     $this->drupalGet($edit_url, ['language' => \Drupal::languageManager()->getLanguage('fr')]);
diff --git a/core/modules/views_ui/tests/src/Functional/UITestBase.php b/core/modules/views_ui/tests/src/Functional/UITestBase.php
index 919a67c1cd18..ee0d1cb2725a 100644
--- a/core/modules/views_ui/tests/src/Functional/UITestBase.php
+++ b/core/modules/views_ui/tests/src/Functional/UITestBase.php
@@ -64,7 +64,7 @@ public function randomView(array $view = []) {
 
     $view += $default;
 
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     return $default;
   }
diff --git a/core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php b/core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php
index 4b693b5bd0b1..dfcd2938ec53 100644
--- a/core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php
+++ b/core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php
@@ -55,26 +55,26 @@ public function testUnsavedPageDisplayPreview() {
     $this->drupalGet('admin/structure/views/view/content');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, [], t('Add Page'));
+    $this->drupalPostForm(NULL, [], 'Add Page');
     $this->assertSession()->statusCodeEquals(200);
 
     $this->drupalGet('admin/structure/views/nojs/display/content/page_2/path');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, ['path' => 'foobarbaz'], t('Apply'));
+    $this->drupalPostForm(NULL, ['path' => 'foobarbaz'], 'Apply');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertText('This display has no path');
 
     $this->drupalGet('admin/structure/views/view/content/edit/page_2');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, [], 'Save');
     $this->assertSession()->statusCodeEquals(200);
 
-    $this->drupalPostForm(NULL, [], t('Update preview'));
+    $this->drupalPostForm(NULL, [], 'Update preview');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->linkByHrefExists('foobarbaz');
   }
diff --git a/core/modules/views_ui/tests/src/Functional/ViewEditTest.php b/core/modules/views_ui/tests/src/Functional/ViewEditTest.php
index fa71ad2e4047..c03716618831 100644
--- a/core/modules/views_ui/tests/src/Functional/ViewEditTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ViewEditTest.php
@@ -35,7 +35,7 @@ public function testDeleteLink() {
     $this->assertInstanceOf(View::class, $view);
     $this->clickLink(t('Delete view'));
     $this->assertSession()->addressEquals('admin/structure/views/view/test_view/delete');
-    $this->drupalPostForm(NULL, [], t('Delete'));
+    $this->drupalPostForm(NULL, [], 'Delete');
     $this->assertRaw(t('The view %name has been deleted.', ['%name' => $view->label()]));
 
     $this->assertSession()->addressEquals('admin/structure/views');
@@ -112,9 +112,9 @@ public function testOtherOptions() {
     $fields['fields[age][removed]'] = 1;
     $fields['fields[id][removed]'] = 1;
     $fields['fields[name][removed]'] = 1;
-    $this->drupalPostForm('admin/structure/views/nojs/rearrange/test_view/default/field', $fields, t('Apply'));
+    $this->drupalPostForm('admin/structure/views/nojs/rearrange/test_view/default/field', $fields, 'Apply');
     $this->drupalPostForm(NULL, [], 'Save');
-    $this->drupalPostForm(NULL, [], t('Cancel'));
+    $this->drupalPostForm(NULL, [], 'Cancel');
     // Verify that no error message is displayed.
     $this->assertSession()->elementNotExists('xpath', '//div[contains(@class, "error")]');
     // Verify page was redirected to the view listing.
@@ -192,25 +192,25 @@ public function testEditFormLanguageOptions() {
         $edit = [
           'authenticated[administer languages]' => TRUE,
         ];
-        $this->drupalPostForm('/admin/people/permissions', $edit, t('Save permissions'));
+        $this->drupalPostForm('/admin/people/permissions', $edit, 'Save permissions');
         // Enable Content language negotiation so we have one more item
         // to select.
         $edit = [
           'language_content[configurable]' => TRUE,
         ];
-        $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+        $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
         // Choose the new negotiation as the rendering language.
         $edit = [
           'rendering_language' => '***LANGUAGE_language_content***',
         ];
-        $this->drupalPostForm('/admin/structure/views/nojs/display/' . $view_name . '/' . $display . '/rendering_language', $edit, t('Apply'));
+        $this->drupalPostForm('/admin/structure/views/nojs/display/' . $view_name . '/' . $display . '/rendering_language', $edit, 'Apply');
 
         // Disable language content negotiation.
         $edit = [
           'language_content[configurable]' => FALSE,
         ];
-        $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+        $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
         // Check that the previous selection is listed and selected.
         $this->drupalGet($langcode_url);
diff --git a/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php b/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
index ca4cd5f485a0..5236d63a5539 100644
--- a/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
@@ -57,7 +57,7 @@ public function testViewsUiTourTips() {
     $view['id'] = strtolower($this->randomMachineName(16));
     $view['page[create]'] = 1;
     $view['page[path]'] = $this->randomMachineName(16);
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
     $this->assertTourTips();
   }
 
@@ -97,11 +97,7 @@ public function testViewsUiTourTipsTranslated() {
     $view['page[create]'] = 1;
     $view['page[path]'] = $this->randomMachineName(16);
     // Load the page in dutch.
-    $this->drupalPostForm(
-      $langcode . '/admin/structure/views/add',
-      $view,
-      t('Save and edit')
-    );
+    $this->drupalPostForm($langcode . '/admin/structure/views/add', $view, 'Save and edit');
     $this->assertTourTips();
   }
 
diff --git a/core/modules/views_ui/tests/src/Functional/WizardTest.php b/core/modules/views_ui/tests/src/Functional/WizardTest.php
index 98d11fbab561..a4dc443fbe3e 100644
--- a/core/modules/views_ui/tests/src/Functional/WizardTest.php
+++ b/core/modules/views_ui/tests/src/Functional/WizardTest.php
@@ -36,7 +36,7 @@ public function testWizardFieldLength() {
     $view['rest_export[create]'] = TRUE;
     $view['rest_export[path]'] = $this->randomMachineName(255);
 
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
 
     $this->assertText('Machine-readable name cannot be longer than 128 characters but is currently 129 characters long.');
     $this->assertText('Path cannot be longer than 254 characters but is currently 255 characters long.');
@@ -60,7 +60,7 @@ public function testWizardFieldLength() {
 
     // Make sure the view saving was successful and the browser got redirected
     // to the edit page.
-    $this->drupalPostForm('admin/structure/views/add', $view, t('Save and edit'));
+    $this->drupalPostForm('admin/structure/views/add', $view, 'Save and edit');
     $this->assertSession()->addressEquals('admin/structure/views/view/' . $view['id']);
     // Assert that the page title is correctly truncated.
     $this->assertText(views_ui_truncate($view['page[title]'], 32));
diff --git a/core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php b/core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php
index 226fdd413d3e..0b8013ea419d 100644
--- a/core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php
+++ b/core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php
@@ -213,7 +213,7 @@ public function testPathAliasesWithTranslation() {
     $edit_new_translation_draft = [
       'body[0][value]' => $this->randomMachineName(),
     ];
-    $this->drupalPostForm('ro/node/' . $default_node->id() . '/edit', $edit_new_translation_draft, t('Save (this translation)'));
+    $this->drupalPostForm('ro/node/' . $default_node->id() . '/edit', $edit_new_translation_draft, 'Save (this translation)');
     // Confirm that the new draft revision was created.
     $this->assertSession()->pageTextContains($edit_new_translation_draft['body[0][value]']);
 
diff --git a/core/profiles/standard/tests/src/Functional/StandardTest.php b/core/profiles/standard/tests/src/Functional/StandardTest.php
index 3d90705e7a63..609240fdef63 100644
--- a/core/profiles/standard/tests/src/Functional/StandardTest.php
+++ b/core/profiles/standard/tests/src/Functional/StandardTest.php
@@ -56,7 +56,7 @@ public function testStandard() {
     $this->drupalPostForm(NULL, [
       'region' => 'sidebar_first',
       'id' => 'main_navigation',
-    ], t('Save block'));
+    ], 'Save block');
     // Verify admin user can see the block.
     $this->drupalGet('');
     $this->assertText('Main navigation');
@@ -92,7 +92,7 @@ public function testStandard() {
     $this->drupalPostForm(NULL, [
       'subject[0][value]' => 'Barfoo',
       'comment_body[0][value]' => 'Then she picked out two somebodies, Sally and me',
-    ], t('Save'));
+    ], 'Save');
     // Fetch the feed.
     $this->drupalGet('rss.xml');
     $this->assertText('Foobar');
diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
index 65c333b20d3f..d4357e6b0881 100644
--- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
+++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
@@ -152,7 +152,7 @@ public function testForm() {
     $this->assertSame('purple', $value);
 
     // Test drupalPostForm() with no-html response.
-    $values = Json::decode($this->drupalPostForm('form_test/form-state-values-clean', [], t('Submit')));
+    $values = Json::decode($this->drupalPostForm('form_test/form-state-values-clean', [], 'Submit'));
     $this->assertSame(1000, $values['beer']);
 
     // Test drupalPostForm() with form by HTML id.
@@ -862,8 +862,9 @@ public function testLegacyEscapingAssertions(): void {
    * @group legacy
    */
   public function testLegacyDrupalPostForm(): void {
+    $this->expectDeprecation('Calling Drupal\Tests\UiHelperTrait::drupalPostForm() with $submit as an object is deprecated in drupal:9.2.0 and the method is removed in drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858');
     $this->expectDeprecation('Calling Drupal\Tests\UiHelperTrait::drupalPostForm() with $edit set to NULL is deprecated in drupal:9.1.0 and the method is removed in drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858');
-    $this->drupalPostForm(NULL, NULL, '');
+    $this->drupalPostForm('form-test/object-builder', NULL, t('Save'));
   }
 
   /**
diff --git a/core/tests/Drupal/FunctionalTests/Datetime/TimestampAgoFormatterTest.php b/core/tests/Drupal/FunctionalTests/Datetime/TimestampAgoFormatterTest.php
index 09be7ad58ee3..04f49db12cc7 100644
--- a/core/tests/Drupal/FunctionalTests/Datetime/TimestampAgoFormatterTest.php
+++ b/core/tests/Drupal/FunctionalTests/Datetime/TimestampAgoFormatterTest.php
@@ -109,7 +109,7 @@ public function testSettings() {
       'fields[field_timestamp][region]' => 'content',
       'fields[field_timestamp][type]' => 'timestamp_ago',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Save');
 
     $this->drupalPostForm(NULL, [], 'field_timestamp_settings_edit');
     $edit = [
diff --git a/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormCorrectUserInputMappingOnFieldDeltaElementsTest.php b/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormCorrectUserInputMappingOnFieldDeltaElementsTest.php
index 41bcc2c3492f..3a791d50d0f9 100644
--- a/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormCorrectUserInputMappingOnFieldDeltaElementsTest.php
+++ b/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormCorrectUserInputMappingOnFieldDeltaElementsTest.php
@@ -106,8 +106,8 @@ public function testCorrectUserInputMappingOnComplexFields() {
     // This is how currently the form building process works and this test
     // ensures the correct behavior no matter what changes would be made to the
     // form builder or the content entity forms.
-    $this->drupalPostForm(NULL, $edit, t('Add another item'));
-    $this->drupalPostForm(NULL, [], t('Save'));
+    $this->drupalPostForm(NULL, $edit, 'Add another item');
+    $this->drupalPostForm(NULL, [], 'Save');
 
     // Reload the entity.
     $entity = $storage->load($entity->id());
diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php
index 19d851359099..0f090a521fb3 100644
--- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php
+++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php
@@ -129,7 +129,7 @@ public function testTranslationsLoaded() {
 
         // Adding English should make the English override available.
         $edit = ['predefined_langcode' => 'en'];
-        $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+        $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
         $override_en = $language_manager->getLanguageConfigOverride('en', 'user.settings');
         $this->assertEqual($override_en->get('anonymous'), 'Anonymous');
       }
@@ -140,7 +140,7 @@ public function testTranslationsLoaded() {
         'modules[views][enable]' => TRUE,
         'modules[filter][enable]' => TRUE,
       ];
-      $this->drupalPostForm('admin/modules', $edit, t('Install'));
+      $this->drupalPostForm('admin/modules', $edit, 'Install');
 
       // Verify the strings from the translation are still as expected.
       $this->verifyImportedStringsTranslated();
@@ -173,7 +173,7 @@ protected function verifyImportedStringsTranslated() {
         $edit['langcode'] = $langcode;
         $edit['translation'] = 'translated';
         $edit['string'] = $sample;
-        $this->drupalPostForm('admin/config/regional/translate', $edit, t('Filter'));
+        $this->drupalPostForm('admin/config/regional/translate', $edit, 'Filter');
         $this->assertText($sample . ' ' . $langcode);
       }
     }
diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php
index 1decad638bd8..c373d9460993 100644
--- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php
+++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php
@@ -100,12 +100,12 @@ public function testInstaller() {
     $this->assertEqual($account->language()->getId(), 'de', 'New user is German.');
 
     // Ensure that we can enable basic_auth on a non-english site.
-    $this->drupalPostForm('admin/modules', ['modules[basic_auth][enable]' => TRUE], t('Install'));
+    $this->drupalPostForm('admin/modules', ['modules[basic_auth][enable]' => TRUE], 'Install');
     $this->assertSession()->statusCodeEquals(200);
 
     // Assert that the theme CSS was added to the page.
     $edit = ['preprocess_css' => FALSE];
-    $this->drupalPostForm('admin/config/development/performance', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/development/performance', $edit, 'Save configuration');
     $this->drupalGet('<front>');
     $this->assertRaw('classy/css/components/action-links.css');
 
@@ -116,7 +116,7 @@ public function testInstaller() {
       $edit['langcode'] = 'de';
       $edit['translation'] = 'translated';
       $edit['string'] = $sample;
-      $this->drupalPostForm('admin/config/regional/translate', $edit, t('Filter'));
+      $this->drupalPostForm('admin/config/regional/translate', $edit, 'Filter');
       $this->assertText($sample . ' de');
     }
 
@@ -135,7 +135,7 @@ public function testInstaller() {
 
     // Assert that adding English makes the English override available.
     $edit = ['predefined_langcode' => 'en'];
-    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $override_en = $language_manager->getLanguageConfigOverride('en', 'user.settings');
     $this->assertFalse($override_en->isNew());
     $this->assertEqual($override_en->get('anonymous'), 'Anonymous');
diff --git a/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php b/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php
index 1020ba5eb78b..9a448d63f05c 100644
--- a/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php
+++ b/core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php
@@ -75,7 +75,7 @@ protected function setUp(): void {
       'settings[node][page][fields][body]' => 1,
       'settings[node][page][settings][language][language_alterable]' => 1,
     ];
-    $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration'));
+    $this->drupalPostForm('admin/config/regional/content-language', $edit, 'Save configuration');
 
     // Create a field with settings to validate.
     $field_storage = FieldStorageConfig::create([
@@ -137,7 +137,7 @@ public function testLinkTranslationWithAlias($source_langcode) {
       'title[0][value]' => 'Target page',
       'path[0][alias]' => '/target-page',
     ];
-    $this->drupalPostForm('node/add/page', $edit, t('Save'), $source_url_options);
+    $this->drupalPostForm('node/add/page', $edit, 'Save', $source_url_options);
 
     // Confirm that the alias works.
     $assert_session = $this->assertSession();
@@ -153,7 +153,7 @@ public function testLinkTranslationWithAlias($source_langcode) {
       'field_link[0][title]' => 'Target page',
       'path[0][alias]' => '/link-page',
     ];
-    $this->drupalPostForm('node/add/page', $edit, t('Save'), $source_url_options);
+    $this->drupalPostForm('node/add/page', $edit, 'Save', $source_url_options);
 
     // Make sure the link node is displayed with a working link.
     $assert_session->pageTextContains('Link page');
diff --git a/core/tests/Drupal/FunctionalTests/Routing/RouteCachingNonPathLanguageNegotiationTest.php b/core/tests/Drupal/FunctionalTests/Routing/RouteCachingNonPathLanguageNegotiationTest.php
index d7f52530d1e1..4f60aec57b12 100644
--- a/core/tests/Drupal/FunctionalTests/Routing/RouteCachingNonPathLanguageNegotiationTest.php
+++ b/core/tests/Drupal/FunctionalTests/Routing/RouteCachingNonPathLanguageNegotiationTest.php
@@ -54,7 +54,7 @@ protected function setUp(): void {
       'language_interface[enabled][language-url]' => FALSE,
       'language_interface[enabled][language-session]' => TRUE,
     ];
-    $this->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
+    $this->drupalPostForm('admin/config/regional/language/detection', $edit, 'Save settings');
 
     // A more common scenario is domain-based negotiation but that can not be
     // tested. Session negotiation by default is not considered by the URL
diff --git a/core/tests/Drupal/Tests/UiHelperTrait.php b/core/tests/Drupal/Tests/UiHelperTrait.php
index 5111d36fe743..13978b11ca7f 100644
--- a/core/tests/Drupal/Tests/UiHelperTrait.php
+++ b/core/tests/Drupal/Tests/UiHelperTrait.php
@@ -195,6 +195,7 @@ protected function submitForm(array $edit, $submit, $form_html_id = NULL) {
   protected function drupalPostForm($path, $edit, $submit, array $options = [], $form_html_id = NULL) {
     @trigger_error('UiHelperTrait::drupalPostForm() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858', E_USER_DEPRECATED);
     if (is_object($submit)) {
+      @trigger_error('Calling ' . __METHOD__ . '() with $submit as an object is deprecated in drupal:9.2.0 and the method is removed in drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858', E_USER_DEPRECATED);
       // Cast MarkupInterface objects to string.
       $submit = (string) $submit;
     }
-- 
GitLab