public function LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation in Lingotek Translation 3.2.x
Same name in this branch
- 3.2.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.2.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 4.0.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.1.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.3.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.4.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.5.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.6.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.7.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.8.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
File
- tests/
src/ Functional/ LingotekNodeParagraphsTranslationTest.php, line 849
Class
- LingotekNodeParagraphsTranslationTest
- Tests translating a node with multiple locales including 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_paragraphs_demo[0][subform][field_text_demo][0][value]', 'Las llamas son muy chulas');
$this
->drupalGet('node/1/edit');
$assert_session
->fieldValueEquals('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.');
}