You are here

protected function WebformBrowserTestTrait::assertNoCssSelect in Webform 6.x

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

Passes if the CSS selector IS NOT found on the loaded page, fail otherwise.

21 calls to WebformBrowserTestTrait::assertNoCssSelect()
WebformCardsProgressJavaScriptTest::testProgress in modules/webform_cards/tests/src/FunctionalJavaScript/WebformCardsProgressJavaScriptTest.php
Test webform cards progress.
WebformClientSideValidationJavaScriptTest::testClientSideValidation in modules/webform_clientside_validation/tests/src/FunctionalJavascript/Validation/WebformClientSideValidationJavaScriptTest.php
Tests custom states.
WebformElementAccessTest::testAccess in tests/src/Functional/Element/WebformElementAccessTest.php
Test element access.
WebformElementActionsTest::testActions in tests/src/Functional/Element/WebformElementActionsTest.php
Tests actions element.
WebformElementPrivateTest::testElementAccess in tests/src/Functional/Element/WebformElementPrivateTest.php
Test element access.

... See full list

File

tests/src/Traits/WebformBrowserTestTrait.php, line 449

Class

WebformBrowserTestTrait
Provides convenience methods for webform assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertNoCssSelect($selector, $message = '') {
  $element = $this
    ->cssSelect($selector);
  $this
    ->assertEmpty($element, $message);
}