You are here

public function LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation in Lingotek Translation 4.0.x

Same name in this branch
  1. 4.0.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  2. 4.0.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  2. 3.1.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  3. 3.2.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  4. 3.3.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  5. 3.4.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  6. 3.5.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  7. 3.6.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  8. 3.7.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
  9. 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\Functional

Code

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.');
}