You are here

protected function WebformAssertLegacyTrait::assertElementNotPresent in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertElementNotPresent()

Asserts that the element with the given CSS selector is not present.

Parameters

string $css_selector: The CSS selector identifying the element to check.

1 call to WebformAssertLegacyTrait::assertElementNotPresent()
WebformVariantApplyTest::testVariantApply in tests/src/Functional/Variant/WebformVariantApplyTest.php
Test variant apply.

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 94

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertElementNotPresent($css_selector) {
  $this
    ->assertSession()
    ->elementNotExists('css', $css_selector);
}