You are here

public function EntityContext::edit in Lightning Core 8

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

Visits the edit form for an entity.

@When I visit the edit form

See also

lightning_dev_local_tasks_alter()

File

tests/contexts/EntityContext.behat.inc, line 225

Class

EntityContext
Contains miscellaneous step definitions for working with Drupal entities.

Namespace

Acquia\LightningExtension\Context

Code

public function edit() {
  $this
    ->assertSession()
    ->elementExists('named', [
    'link',
    'edit-form',
  ])
    ->click();
}