Tests the revision of paragraphs.
public function testParagraphsIEFTranslation() {
$this
->drupalLogin($this->admin_user);
// Create node with one paragraph.
$this
->drupalGet('node/add/article');
// Set the values and save.
$edit = [
'title[0][value]' => 'Title English',
];
$this
->submitForm($edit, 'Save');
// Add french translation.
$this
->clickLink('Translate');
$this
->clickLink('Add', 1);
// Make sure that the original paragraph text is displayed.
$this
->assertSession()
->pageTextContains('Title English');
$edit = array(
'title[0][value]' => 'Title French',
);
$this
->submitForm($edit, 'Save (this translation)');
$this
->assertSession()
->pageTextContains('article Title French has been updated.');
// Add german translation.
$this
->clickLink('Translate');
$this
->clickLink('Add');
// Make sure that the original paragraph text is displayed.
$this
->assertSession()
->pageTextContains('Title English');
$edit = array(
'title[0][value]' => 'Title German',
);
$this
->submitForm($edit, 'Save (this translation)');
$this
->assertSession()
->pageTextContains('article Title German has been updated.');
}