function MediaTest::assertContextMenuItemNotExists

Asserts that a context menu item does not exist by aria-label attribute.

@internal

Parameters

string $label: The `aria-label` attribute value of the context menu item.

File

core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php, line 1553

Class

MediaTest
@coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalMedia[[api-linebreak]] @group ckeditor @group legacy

Namespace

Drupal\Tests\ckeditor\FunctionalJavascript

Code

protected function assertContextMenuItemNotExists(string $label) : void {
  $this->assertSession()
    ->elementNotExists('xpath', '//a[@aria-label="' . $label . '"]');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.