palantirnet / palantir-behat-extension

Additional step definitions for testing Drupal sites using Behat.
1 stars 4 forks source link

Step definition to edit node fails unless Gouette is being used #22

Open patrickfweston opened 8 years ago

patrickfweston commented 8 years ago

The step definition @When I edit the :contentType content :title fails unless Gouette is defined in the behat.yml file. Adding this to existing projects can break tests.

The Selenium2 driver does not have access to status codes and throws the following error when this definition is used:

Status code is not available from Behat\Mink\Driver\Selenium2Driver (Behat\Mink\Exception\UnsupportedDriverActionException)

The offending line in code is: https://github.com/palantirnet/palantir-behat-extension/blob/master/src/Palantirnet/PalantirBehatExtension/Context/NodeContext.php#L51

Removing this assertion should resolve this problem, but may have unintended consequences.