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

ISTWCMS-6974: Code standards.

parent d18b8de6
No related branches found
No related tags found
1 merge request!69ISTWCMS-6974: Adding tests for abbr ckeditor plugin.
......@@ -38,7 +38,7 @@ class WcmsTestsCkeditorButtonsCest {
$i->amOnPage('admin/config/content/formats/manage/' . $tf_machine_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"]');
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
......@@ -46,7 +46,8 @@ class WcmsTestsCkeditorButtonsCest {
$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.
// 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