Commit bec2d458 authored by catch's avatar catch
Browse files

fix: #3566845 [random test failure] ImageTest::testLinkability

By: kentr
By: dww
By: dcam
(cherry picked from commit 240ac43e)
parent e4057833
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -229,9 +229,10 @@ public function testLinkability(): void {
      $page->pressButton('Save');

      // Assert the HTML the end user sees.
      $assert_session->elementExists('css', $unrestricted
      $this->assertNotEmpty($assert_session->waitForElement('css', $unrestricted
        ? 'a[href="http://www.drupal.org/association"].trusted img[src*="' . $src . '"]'
        : 'a[href="http://www.drupal.org/association"] img[src*="' . $src . '"]');
        : 'a[href="http://www.drupal.org/association"] img[src*="' . $src . '"]'
      ));

      // Go back to edit the now *linked* <drupal-media>. Everything from this
      // point onwards is effectively testing "upcasting" and proving there is