Verified Commit 5e24bdc8 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3276218 by lauriii: Follow-up to #3268318: Enable link manual decorator...

Issue #3276218 by lauriii: Follow-up to #3268318: Enable link manual decorator unrestricted test case
parent 68f22f8d
Loading
Loading
Loading
Loading
+12 −16
Original line number Diff line number Diff line
@@ -936,7 +936,7 @@ public function providerLinkability(): array {
   *
   * @dataProvider providerLinkability
   */
  public function testLinkManualDecoratorRestricted(bool $unrestricted) {
  public function testLinkManualDecorator(bool $unrestricted) {
    \Drupal::service('module_installer')->install(['ckeditor5_manual_decorator_test']);
    $this->resetAll();

@@ -984,9 +984,6 @@ public function testLinkManualDecoratorRestricted(bool $unrestricted) {
    $this->assertNotEmpty($xpath->query("//a[@href='http://linking-embedded-media.com']$decorator_attributes"));
    $this->assertNotEmpty($xpath->query("//a[@href='http://linking-embedded-media.com']$decorator_attributes/drupal-media"));

    // @todo enable for unrestricted test case after
    //   https://www.drupal.org/project/drupal/issues/3268318 has been resolved.
    if (!$unrestricted) {
    // Finally, ensure that media can be unlinked.
    $drupalmedia->click();
    $this->assertVisibleBalloon('.ck-toolbar[aria-label="Drupal Media toolbar"]');
@@ -999,7 +996,6 @@ public function testLinkManualDecoratorRestricted(bool $unrestricted) {
    $this->assertEmpty($xpath->query('//a'));
    $this->assertNotEmpty($xpath->query('//drupal-media'));
  }
  }

  /**
   * Tests preview route access.