Skip to content
Snippets Groups Projects
Commit e2d1b737 authored by catch's avatar catch
Browse files

Issue #3192260 by danflanagan8, longwave, jhodgdon, dww: [random test failure]...

Issue #3192260 by danflanagan8, longwave, jhodgdon, dww: [random test failure] Random fail in media_library CKEditorIntegrationTest

(cherry picked from commit e620e755)
parent f0c87603
Branches
Tags
4 merge requests!1285Issue #3240655 by elfakhar Aligne the active border,!541Issue #3123070: Fix 'PSR2.Classes.PropertyDeclaration.Underscore' coding standard,!463Resolve #3205025 "Class align center for media",!386Allow multiple vocabularies in the taxonomy filter
......@@ -235,7 +235,7 @@ public function testButton() {
$assert_session->elementExists('css', '.ui-dialog-buttonpane')->pressButton('Insert selected');
$this->assignNameToCkeditorIframe();
$this->getSession()->switchToIFrame('ckeditor');
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media', 2000));
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media'));
// @todo Inserting media embed should enable undo.
// @see https://www.drupal.org/project/drupal/issues/3073294
$this->pressEditorButton('source');
......@@ -258,15 +258,15 @@ public function testButton() {
// to switch back to the CKEditor iframe.
$this->assignNameToCkeditorIframe();
$this->getSession()->switchToIFrame('ckeditor');
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media', 1000));
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media'));
$this->assertEditorButtonEnabled('undo');
$this->pressEditorButton('undo');
$this->getSession()->switchToIFrame('ckeditor');
$this->assertEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media', 1000));
$this->assertEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media'));
$this->assertEditorButtonDisabled('undo');
$this->pressEditorButton('redo');
$this->getSession()->switchToIFrame('ckeditor');
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media', 1000));
$this->assertNotEmpty($assert_session->waitForElementVisible('css', '.cke_widget_drupalmedia drupal-media .media'));
$this->assertEditorButtonEnabled('undo');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment