$source_text_area->setValue($ordered_list_html); // Click source again to make source inactive and have the numbered list
// splitbutton active.
$this->pressEditorButton('Source'); $numbered_list_dropdown_selector = '.ck-splitbutton__arrow';
// Check that there is no dropdown available for the numbered list because
// both reversed and startIndex are FALSE.
$assert_session->elementNotExists('css', $numbered_list_dropdown_selector); // Save content so source content is kept after changing the editor config.
$page->pressButton('Save'); $edit_url = $this->getSession()->getCurrentURL() . '/edit'; $this->drupalGet($edit_url); $this->waitForEditor();
$page->pressButton('Save'); // Check that the 'content has been updated' message status appears to confirm we left the editor.
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '.messages.messages--status')); // Check that the class is correct in the front end.
$assert_session->elementExists('css', 'figure.align-center'); // Go back to the editor to check that the alignment class still exists.
$edit_url = $this->getSession()->getCurrentURL() . '/edit'; $this->drupalGet($edit_url); $this->waitForEditor(); $assert_session->elementExists('css', '.ck-widget.drupal-media.drupal-media-style-align-center');
$page->pressButton('Save'); // Check that the 'content has been updated' message status appears to confirm we left the editor.
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '[data-drupal-messages]')); // Check that the class is correct in the front end.
$assert_session->elementExists('css', 'img.align-center'); // Go back to the editor to check that the alignment class still exists.
$edit_url = $this->getSession()->getCurrentURL() . '/edit'; $this->drupalGet($edit_url); $this->waitForEditor(); $assert_session->elementExists('css', '.ck-widget.image.image-style-align-center');