public function LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation in Lingotek Translation 3.5.x        
                          
                  
                        Same name in this branch
- 3.5.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.5.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 4.0.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.1.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.2.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.3.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.4.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.6.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.7.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
- 3.8.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::testEditingAfterNodeWithParagraphsTranslation()
File
 
   - tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php, line 350
Class
  
  - LingotekNodeParagraphsTranslationTest 
- @group lingotek
@group legacy
Namespace
  Drupal\Tests\lingotek\FunctionalJavascript
Code
public function testEditingAfterNodeWithParagraphsTranslation() {
  $page = $this
    ->getSession()
    ->getPage();
  $assert_session = $this
    ->assertSession();
  $messages_locator = '.messages--status';
  $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, 'Remove');
  $assert_session
    ->waitForElementVisible('css', 'field_paragraphs_demo_0_confirm_remove', 1000);
  $this
    ->drupalPostForm(NULL, NULL, 'Confirm removal');
  $assert_session
    ->waitForElementRemoved('css', 'field_paragraphs_demo_0_confirm_remove', 1000);
  $this
    ->drupalPostForm(NULL, NULL, 'Save (this translation)');
  $assert_session
    ->waitForElementVisible('css', $messages_locator);
  $assert_session
    ->pageTextContains('Paragraphed article Llamas are cool has been updated.');
}