Skip to content

Commit

Permalink
Merge pull request #479 from brockfanning/behat-debugging-step
Browse files Browse the repository at this point in the history
Extra step for Behat debugging
  • Loading branch information
brockfanning authored Feb 28, 2023
2 parents 9fd7d64 + b272489 commit 664e150
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/behat/features/bootstrap/Drupal/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ public function iOutputThePage()
print $this->getSession()->getPage()->getHtml() . PHP_EOL . '******' . PHP_EOL;
}

/**
* @Then I output the content of the page
*/
public function iOutputTheContentOfThePage()
{
print PHP_EOL . '******';
print $this->getSession()->getPage()->findById('main')->getHtml() . PHP_EOL . '******' . PHP_EOL;
}

/**
* Retrieves previously saved URL.
*
Expand Down

0 comments on commit 664e150

Please sign in to comment.