You are here

class ConfigTranslationUiTest in Drupal 10

Same name in this branch
  1. 10 core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationUiTest
  2. 10 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest
Same name and namespace in other branches
  1. 8 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest
  2. 9 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest

Translate settings and entities to various languages.

@group config_translation

Hierarchy

Expanded class hierarchy of ConfigTranslationUiTest

File

core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php, line 12

Namespace

Drupal\Tests\config_translation\FunctionalJavascript
View source
class ConfigTranslationUiTest extends WebDriverTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'config_translation',
    'contextual',
    'node',
    'views',
    'views_ui',
  ];

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * Tests that contextual link related to views.
   */
  public function testViewContextualLink() {
    $user = $this
      ->drupalCreateUser([
      'translate configuration',
      'access contextual links',
    ]);
    $this
      ->drupalLogin($user);
    $this
      ->drupalGet('node');
    $contextualLinks = $this
      ->assertSession()
      ->waitForElement('css', '.contextual-links');
    $link = $contextualLinks
      ->findLink('Translate view');
    $this
      ->assertNotNull($link, 'Translate view contextual link added.');
  }

}

Members