Verified Commit f47f3c01 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3315753 by alexpott: Random fail in...

Issue #3315753 by alexpott: Random fail in Drupal\Tests\media_library\FunctionalJavascript\WidgetUploadTest

(cherry picked from commit dcc44243)
parent 59f14c20
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -136,8 +136,10 @@ public function testWidgetUpload() {
    $this->waitForText($png_image->filename);

    // Remove the item.
    $assert_session->elementTextContains('css', '.field--name-field-twin-media', $png_image->filename);
    $assert_session->elementExists('css', '.field--name-field-twin-media')->pressButton('Remove');
    $this->waitForNoText($png_image->filename);
    $this->waitForElementTextContains('#drupal-live-announce', $png_image->filename . ' has been removed');
    $assert_session->elementTextNotContains('css', '.field--name-field-twin-media', $png_image->filename);

    $this->openMediaLibraryForField('field_twin_media');
    $this->switchToMediaType('Three');
@@ -473,8 +475,10 @@ public function testWidgetUploadAdvancedUi() {
    $this->waitForText($png_image->filename);

    // Remove the item.
    $assert_session->elementTextContains('css', '.field--name-field-twin-media', $png_image->filename);
    $assert_session->elementExists('css', '.field--name-field-twin-media')->pressButton('Remove');
    $this->waitForNoText($png_image->filename);
    $this->waitForElementTextContains('#drupal-live-announce', $png_image->filename . ' has been removed');
    $assert_session->elementTextNotContains('css', '.field--name-field-twin-media', $png_image->filename);

    $this->openMediaLibraryForField('field_twin_media');
    $this->switchToMediaType('Three');