Verified Commit 049fb020 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3332456 by Spokje, jastraat: [random test failure] MediaTest::testLinkManualDecorator()

(cherry picked from commit 3b6179f1)
parent 046cefe4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1059,6 +1059,12 @@ public function testLinkManualDecorator(bool $unrestricted) {

    $this->assertNotEmpty($drupalmedia = $assert_session->waitForElementVisible('css', '.ck-content .ck-widget.drupal-media'));
    $drupalmedia->click();
    $this->assertVisibleBalloon('.ck-toolbar[aria-label="Drupal Media toolbar"]');

    // Turn off caption, so we don't accidentally put our link in that text
    // field instead of on the actual media.
    $this->getBalloonButton('Toggle caption off')->click();
    $assert_session->assertNoElementAfterWait('css', 'figure.drupal-media > figcaption');

    $this->assertVisibleBalloon('.ck-toolbar[aria-label="Drupal Media toolbar"]');
    $this->getBalloonButton('Link media')->click();