diff --git a/core/modules/views_ui/src/Tests/TranslatedStringsTest.php b/core/modules/views_ui/src/Tests/TranslatedStringsTest.php index fb0379f..59c358d 100644 --- a/core/modules/views_ui/src/Tests/TranslatedStringsTest.php +++ b/core/modules/views_ui/src/Tests/TranslatedStringsTest.php @@ -69,20 +69,21 @@ public function testTranslatedStrings() { $translation_url = 'admin/structure/views/view/files/translate/fr/add'; $edit_url = 'admin/structure/views/view/files'; - // Check origial string + // Check origial string. $this->drupalGet($edit_url); - $this->assertLink('Files'); + $this->assertTitle('Files (File) | Drupal'); - // Translate the label of the view + // Translate the label of the view. $this->drupalGet($translation_url); $edit = [ 'translation[config_names][views.view.files][label]' => 'Fichiers', ]; $this->drupalPostForm(NULL, $edit, t('Save translation')); - // Check if the label is translated + // Check if the label is translated. $this->drupalGet($edit_url, ['language' => \Drupal::languageManager()->getLanguage('fr')]); - $this->assertLink('Fichiers'); + $this->assertTitle('Files (File) | Drupal'); + $this->assertNoText('Fichiers'); } }