Skip to content
Snippets Groups Projects
Commit d18b8de6 authored by Igor Biki's avatar Igor Biki Committed by Lily Yan
Browse files

ISTWCMS-6974: Adding tests for abbr ckeditor plugin.

parent f628f04d
No related branches found
No related tags found
1 merge request!69ISTWCMS-6974: Adding tests for abbr ckeditor plugin.
...@@ -38,6 +38,17 @@ class WcmsTestsCkeditorButtonsCest { ...@@ -38,6 +38,17 @@ class WcmsTestsCkeditorButtonsCest {
$i->amOnPage('admin/config/content/formats/manage/' . $tf_machine_name); $i->amOnPage('admin/config/content/formats/manage/' . $tf_machine_name);
$i->see($tf_name); $i->see($tf_name);
$i->seeElement('li[data-drupal-ckeditor-button-name="Anchor"][class="ckeditor-button"] a[href="#"][role="button"][title="Anchor"][aria-label="Anchor"]'); $i->seeElement('li[data-drupal-ckeditor-button-name="Anchor"][class="ckeditor-button"] a[href="#"][role="button"][title="Anchor"][aria-label="Anchor"]');
if ($tf_machine_name === 'uw_tf_standard') {
// Checking if abbr icon is part of available plugins (on toolbar).
// Takes into account button group too. Moving abbr to a new group
// will fail the test.
$i->seeElement('ul[aria-labelledby="ckeditor-toolbar-group-aria-label-for-styles"][role="toolbar"][data-drupal-ckeditor-button-sorting="target"] li[data-drupal-ckeditor-button-name="abbr"][class="ckeditor-button"] a[href="#"][role="button"][title="Abbreviation"][aria-label="Abbreviation"]');
}
else {
// Checking if abbr plugin is in the list of available (not enabled) plugins.
$i->seeElement('ul[id="ckeditor-available-buttons"] li[data-drupal-ckeditor-button-name="abbr"][class="ckeditor-button"] a[href="#"][role="button"][title="Abbreviation"][aria-label="Abbreviation"]');
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment