$this->assertTrue($editor_js_present,'Text Editor JavaScript is present.');
$this->assertTrue(count($body)===1,'A body field exists.');
$this->assertTrue(count($format_selector)===1,'A single text format selector exists on the page.');
$specific_format_selector=$this->xpath('//select[contains(@class, "filter-list") and contains(@class, "editor") and @data-editor-for="edit-body-und-0-value"]');
$specific_format_selector=$this->xpath('//select[contains(@class, "filter-list") and contains(@class, "editor") and @data-editor-for="edit-body-0-value"]');
$this->assertTrue(count($specific_format_selector)===1,'A single text format selector exists on the page and has the "editor" class and a "data-editor-for" attribute with the correct value.');
$this->assertTrue(isset($settings['ajaxPageState']['js']['core/modules/ckeditor/js/ckeditor.js']),'CKEditor glue JS is present.');
$this->assertTrue(isset($settings['ajaxPageState']['js']['core/assets/vendor/ckeditor/ckeditor.js']),'CKEditor lib JS is present.');
...
...
@@ -147,7 +147,7 @@ protected function getThingsToCheck() {
$this->assertFieldByXPath("//input[@name=\"{$this->fieldName}[fr][0][value]\"]",$values[$source_langcode][$this->fieldName][0]['value'],'Source language correctly switched.');
$this->assertFieldByXPath("//input[@name=\"{$this->fieldName}[0][value]\"]",$values[$source_langcode][$this->fieldName][0]['value'],'Source language correctly switched.');
// Add another translation and mark the other ones as outdated.