$assert_session->
assertWaitOnAjaxRequest();
// Confirm there are no longer any warnings.
$assert_session->
waitForElementRemoved('css', '[data-drupal-messages] [role="alert"]'
);
// Test for "United Nations' official languages" option.
$languages = LanguageManager::
getUnitedNationsLanguageList();
$this->
languageOfPartsPluginTestHelper($page,
$assert_session,
$languages, "un"
);
// Test for "All 95 languages" option.
$this->
drupalGet('admin/config/content/formats/manage/ckeditor5'
);
$languages = LanguageManager::
getStandardLanguageList();
$this->
languageOfPartsPluginTestHelper($page,
$assert_session,
$languages, "all"
);
} /**
* Validate the available languages on the basis of selected language option.
*/
public function languageOfPartsPluginTestHelper($page,
$assert_session,
$predefined_languages,
$option) { $this->
assertNotEmpty($assert_session->
waitForElement('css', 'a[href^="#edit-editor-settings-plugins-ckeditor5-language"]'
));
// Set correct value.
$vertical_tab_link =
$page->
find('xpath', "//ul[contains(@class, 'vertical-tabs__menu')]/li/a[starts-with(@href, '#edit-editor-settings-plugins-ckeditor5-language')]"
);