src/DrupalExtension/Context/ContentContext.php
protected function visitContentPage($op, $type, $title) {
    $nid = $this->getCore()->getEntityIdByLabel('node', $type, $title);
    $path = [
      'view' => "node/$nid",
      'edit' => "node/$nid/edit",
      'delete' => "node/$nid/delete",
    ];
    $this->visitPath($path[$op]);
  }
protected function visitContentPage($op, $type, $title) {
    $nid = $this->getCore()->getEntityIdByLabel('node', $type, $title);
    $path = [
      'view' => "node/$nid",
      'edit' => "node/$nid/edit",
      'delete' => "node/$nid/delete",
    ];
    $this->visitPath($path[$op]);
  }
protected function visitContentPage ( $ op , $ type , $ title ) { $ nid = $ this -> getCore ( ) -> getEntityIdByLabel ( 'node' , $ type , $ title ) ; $ path = [ 'view' => "node/$nid" , 'edit' => "node/$nid/edit" , 'delete' => "node/$nid/delete" , ] ; $ this -> visitPath ( $ path [ $ op ] ) ; }
Provides a common step definition callback for node pages.

@param string $op
The operation being performed: 'view', 'edit', 'delete'.
@param string $type
The node type either as id or as label.
@param string $title
The node title.
Provides a common step definition callback for node pages .