public function ElementContext::assertNoField in Lightning Core 8.2
Same name and namespace in other branches
- 8.5 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoField()
- 8 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoField()
- 8.3 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoField()
- 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 102
Class
- ElementContext
- Contains miscellaneous step definitions for working with HTML elements.
Namespace
Acquia\LightningExtension\ContextCode
public function assertNoField($field) {
$this
->assertSession()
->fieldNotExists($field);
}