Loading core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php +12 −16 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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"]'); Loading @@ -999,7 +996,6 @@ public function testLinkManualDecoratorRestricted(bool $unrestricted) { $this->assertEmpty($xpath->query('//a')); $this->assertNotEmpty($xpath->query('//drupal-media')); } } /** * Tests preview route access. Loading Loading
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php +12 −16 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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"]'); Loading @@ -999,7 +996,6 @@ public function testLinkManualDecoratorRestricted(bool $unrestricted) { $this->assertEmpty($xpath->query('//a')); $this->assertNotEmpty($xpath->query('//drupal-media')); } } /** * Tests preview route access. Loading