diff --git a/core/modules/comment/tests/src/Functional/CommentStatusFieldAccessTest.php b/core/modules/comment/tests/src/Functional/CommentStatusFieldAccessTest.php
index 9a34ac3038..a558cda938 100644
--- a/core/modules/comment/tests/src/Functional/CommentStatusFieldAccessTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentStatusFieldAccessTest.php
@@ -88,12 +88,16 @@ public function testCommentStatusFieldAccessStatus() {
     $this->drupalGet('node/add/article');
     $assert = $this->assertSession();
     $assert->fieldNotExists('comment[0][status]');
-    $this->submitForm(['title[0][value]' => 'Node 1'], 'Save');
+    $this->submitForm([
+      'title[0][value]' => 'Node 1',
+    ], t('Save'));
     $assert->fieldExists('subject[0][value]');
     $this->drupalLogin($this->commentAdmin);
     $this->drupalGet('node/add/article');
     $assert->fieldExists('comment[0][status]');
-    $this->submitForm(['title[0][value]' => 'Node 2'], 'Save');
+    $this->submitForm([
+      'title[0][value]' => 'Node 2',
+    ], t('Save'));
     $assert->fieldExists('subject[0][value]');
   }
 
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
index 109dcc1fa2..f7c6474dae 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
@@ -66,7 +66,7 @@ public function testModerationForm() {
     $this->assertSession()->optionNotExists('moderation_state[0][state]', 'archived');
 
     // Create new moderated content in draft.
-    $this->submitForm(['moderation_state[0][state]' => 'draft'], 'Save');
+    $this->submitForm(['moderation_state[0][state]' => 'draft'], t('Save'));
 
     $node = $this->drupalGetNodeByTitle('Some moderated content');
     $canonical_path = sprintf('node/%d', $node->id());
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationDisableSettingTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationDisableSettingTest.php
index 037402c1f0..69170c32b1 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationDisableSettingTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationDisableSettingTest.php
@@ -53,7 +53,7 @@ public function testDisableSetting() {
       $translatable_checkbox => TRUE,
       $language_alterable => TRUE,
     ];
-    $this->submitForm($edit, 'Save configuration');
+    $this->submitForm($edit, t('Save configuration'));
 
     $assert->pageTextContains(t('Settings successfully updated.'));
 
@@ -64,7 +64,7 @@ public function testDisableSetting() {
       $translatable_checkbox => TRUE,
       $language_alterable => TRUE,
     ];
-    $this->submitForm($edit, 'Save configuration');
+    $this->submitForm($edit, t('Save configuration'));
 
     $assert->pageTextContains(t('Settings successfully updated.'));
 
diff --git a/core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php b/core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php
index 971ded2aa4..865f3e055a 100644
--- a/core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php
+++ b/core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php
@@ -94,7 +94,7 @@ public function testFileUploadErrors() {
     $edit = [
       'edit-title-0-value' => $this->randomString(),
     ];
-    $this->submitForm($edit, 'Save');
+    $this->submitForm($edit, t('Save'));
 
     $error_text = $this->getSession()->getPage()->find('css', '.field--name-field-ief-file .form-item--error-message')->getText();
 
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php
index d17fc5336e..d1972b529a 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php
@@ -58,10 +58,10 @@ public function testMigrateUpgradeExecute() {
 
     // Start the upgrade process.
     $this->drupalGet('/upgrade');
-    $this->submitForm([], 'Continue');
-    $this->submitForm($edits, 'Review upgrade');
-    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
-    $this->submitForm([], 'Perform upgrade');
+    $this->submitForm([], t('Continue'));
+    $this->submitForm($edits, t('Review upgrade'));
+    $this->submitForm([], t('I acknowledge I may lose data. Continue anyway.'));
+    $this->submitForm([], t('Perform upgrade'));
 
     // Tests the migration log contains an error message.
     $migration = $this->getMigrationPluginManager()->createInstance('d7_file');
diff --git a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
index fbb86ffa90..b9d0e885d5 100644
--- a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
+++ b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
@@ -262,7 +262,7 @@ public function testUserPasswordResetPreferredLanguage($setPreferredLangcode, $a
     // Test password reset with language prefixes.
     $this->drupalGet($visitingUrl);
     $edit = ['name' => $this->account->getAccountName()];
-    $this->submitForm($edit, 'Submit');
+    $this->submitForm($edit, t('Submit'));
     $this->assertValidPasswordReset($edit['name']);
 
     $resetURL = $this->getResetURL();
diff --git a/core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php b/core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php
index 8a8e864106..86d7b5adf9 100644
--- a/core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php
+++ b/core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php
@@ -63,7 +63,7 @@ public function testExposedFilteringAndReset() {
     $this->assertStringContainsString('Article A', $html);
 
     // Filter by page type.
-    $this->submitForm(['type' => 'page'], 'Apply');
+    $this->submitForm(['type' => 'page'], t('Apply'));
     $this->assertSession()->waitForElementRemoved('xpath', '//*[text()="Article A"]');
 
     // Verify that only the page nodes are present.
@@ -73,7 +73,7 @@ public function testExposedFilteringAndReset() {
     $this->assertStringNotContainsString('Article A', $html);
 
     // Reset the form.
-    $this->submitForm([], 'Reset');
+    $this->submitForm([], t('Reset'));
     // Assert we are still on the node page.
     $html = $page->getHtml();
     // Repeat the original tests.
@@ -87,9 +87,9 @@ public function testExposedFilteringAndReset() {
     // is redirected to the page display.
     $this->drupalPlaceBlock('views_block:test_block_exposed_ajax_with_page-block_1');
     $this->drupalGet($node->toUrl());
-    $this->submitForm(['type' => 'page'], 'Apply');
+    $this->submitForm(['type' => 'page'], t('Apply'));
     $this->assertSession()->waitForElementRemoved('xpath', '//*[text()="Article A"]');
-    $this->submitForm([], 'Reset');
+    $this->submitForm([], t('Reset'));
     $this->assertSession()->addressEquals('some-path');
   }
 
diff --git a/core/modules/views/tests/src/FunctionalJavascript/ExposedFilterAJAXTest.php b/core/modules/views/tests/src/FunctionalJavascript/ExposedFilterAJAXTest.php
index 0cbfd93766..25d4d90718 100644
--- a/core/modules/views/tests/src/FunctionalJavascript/ExposedFilterAJAXTest.php
+++ b/core/modules/views/tests/src/FunctionalJavascript/ExposedFilterAJAXTest.php
@@ -67,7 +67,7 @@ public function testExposedFiltering() {
     $this->assertStringContainsString('Page Two', $html);
 
     // Search for "Page One".
-    $this->submitForm(['title' => 'Page One'], 'Filter');
+    $this->submitForm(['title' => 'Page One'], t('Filter'));
     $this->assertSession()->assertWaitOnAjaxRequest();
 
     // Verify that only the "Page One" Node is present.
@@ -76,7 +76,7 @@ public function testExposedFiltering() {
     $this->assertStringNotContainsString('Page Two', $html);
 
     // Search for "Page Two".
-    $this->submitForm(['title' => 'Page Two'], 'Filter');
+    $this->submitForm(['title' => 'Page Two'], t('Filter'));
     $this->assertSession()->assertWaitOnAjaxRequest();
 
     // Verify that only the "Page Two" Node is present.
@@ -89,13 +89,13 @@ public function testExposedFiltering() {
     $this->submitForm([
       'action' => 'node_make_sticky_action',
       'node_bulk_form[0]' => TRUE,
-    ], 'Apply to selected items');
+    ], t('Apply to selected items'));
 
     // Verify that the action was performed.
     $this->assertSession()->pageTextContains('Make content sticky was applied to 1 item.');
 
     // Reset the form.
-    $this->submitForm([], 'Reset');
+    $this->submitForm([], t('Reset'));
     $this->assertSession()->assertWaitOnAjaxRequest();
 
     $this->assertSession()->pageTextContains('Page One');
diff --git a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php
index 31f19889e2..a337ce1427 100644
--- a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php
+++ b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php
@@ -230,7 +230,7 @@ protected function drupalLoginWithPassword(AccountInterface $account, $password)
     $this->submitForm([
       'name' => $account->getAccountName(),
       'pass' => $password,
-    ], 'Log in');
+    ], t('Log in'));
 
     // @see ::drupalUserIsLoggedIn()
     $account->sessionId = $this->getSession()->getCookie(\Drupal::service('session_configuration')->getOptions(\Drupal::request())['name']);
diff --git a/core/tests/Drupal/Tests/UiHelperTrait.php b/core/tests/Drupal/Tests/UiHelperTrait.php
index fe4c7ebd72..f79d68be56 100644
--- a/core/tests/Drupal/Tests/UiHelperTrait.php
+++ b/core/tests/Drupal/Tests/UiHelperTrait.php
@@ -255,7 +255,7 @@ protected function drupalLogin(AccountInterface $account) {
     $this->submitForm([
       'name' => $account->getAccountName(),
       'pass' => $account->passRaw,
-    ], 'Log in');
+    ], t('Log in'));
 
     // @see ::drupalUserIsLoggedIn()
     $account->sessionId = $this->getSession()->getCookie(\Drupal::service('session_configuration')->getOptions(\Drupal::request())['name']);
