diff --git a/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php b/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php index dfda109..ac41b73 100644 --- a/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php +++ b/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php @@ -259,12 +259,17 @@ class ConfigTranslationUiTest extends WebTestBase { $translation_base_url = 'admin/structure/contact/manage/feedback/translate'; $this->assertLinkByHref($translation_base_url); + // Make sure translate tab is present. + $this->drupalGet('admin/structure/contact/manage/feedback'); + $this->assertLink(t('Translate @type', array('@type' => 'contact category'))); + // Visit the form to confirm the changes. $this->drupalGet('contact/feedback'); $this->assertText($label); foreach ($this->langcodes as $langcode) { $this->drupalGet($translation_base_url); + $this->assertLink(t('Translate @type', array('@type' => 'contact category'))); // 'Add' link should be present for $langcode translation. $translation_page_url = "$translation_base_url/$langcode/add"; @@ -438,7 +443,11 @@ class ConfigTranslationUiTest extends WebTestBase { public function testAccountSettingsConfigurationTranslation() { $this->drupalLogin($this->admin_user); + $this->drupalGet('admin/config/people/accounts'); + $this->assertLink(t('Translate @type', array('@type' => 'settings'))); + $this->drupalGet('admin/config/people/accounts/translate'); + $this->assertLink(t('Translate @type', array('@type' => 'settings'))); $this->assertLinkByHref('admin/config/people/accounts/translate/fr/add'); // Update account settings fields for French.