public function LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 4.0.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.1.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.2.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.3.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.4.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.5.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.6.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.7.x tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeNestedParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
File
- tests/
src/ Functional/ LingotekNodeNestedParagraphsTranslationTest.php, line 668
Class
- LingotekNodeNestedParagraphsTranslationTest
- Tests translating a node with multiple locales including nested paragraphs.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testEditingAfterNodeWithParagraphsTranslation() {
$assert_session = $this
->assertSession();
$page = $this
->getSession()
->getPage();
$this
->testNodeWithParagraphsTranslation();
$this
->drupalGet('es-ar/node/1/edit');
$assert_session
->fieldValueEquals('field_paragraph_container[0][subform][field_paragraphs_demo][0][subform][field_text_demo][0][value]', 'Las llamas son muy chulas');
$this
->drupalGet('node/1/edit');
$assert_session
->fieldValueEquals('field_paragraph_container[0][subform][field_paragraphs_demo][0][subform][field_text_demo][0][value]', 'Llamas are very cool');
$this
->drupalPostForm(NULL, NULL, t('Remove'));
$this
->drupalPostForm(NULL, NULL, t('Confirm removal'));
$page
->pressButton('Save (this translation)');
$assert_session
->pageTextContains('Llamas are cool has been updated.');
}