Assert that the current page does not contain shared form elements.
protected function assertNoSharedElements() {
$language_none = Language::LANGCODE_NOT_SPECIFIED;
return $this
->assertNoFieldByXPath("//input[@name='field_test_text[{$language_none}][0][value]']", NULL, 'Shared elements are not available on the translation form.');
}