public function ConfigTranslationUiTest::testViewContextualLink in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest::testViewContextualLink()
- 10 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest::testViewContextualLink()
Tests that contextual link related to views.
File
- core/
modules/ config_translation/ tests/ src/ FunctionalJavascript/ ConfigTranslationUiTest.php, line 33
Class
- ConfigTranslationUiTest
- Translate settings and entities to various languages.
Namespace
Drupal\Tests\config_translation\FunctionalJavascriptCode
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.');
}