You are here

public function ElementContext::assertNoField in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoField()
  2. 8.2 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoField()
  3. 8.3 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoField()
  4. 8.4 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoField()

Asserts that a form field is not present.

Oddly, MinkContext does not appear to provide a step definition for this.

@Then I should not see a(n) :field field

Parameters

string $field: The field locator.

File

tests/contexts/ElementContext.behat.inc, line 97

Class

ElementContext
Contains miscellaneous step definitions for working with HTML elements.

Namespace

Acquia\LightningExtension\Context

Code

public function assertNoField($field) {
  $this
    ->assertSession()
    ->fieldNotExists($field);
}