palantirnet / palantir-behat-extension

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

Missing composer command in instructions #29

Open cpatrone opened 8 years ago

cpatrone commented 8 years ago

When I was trying to install this extension I executed composer require without --dev and for some reason after running that command my local environment gives me an error (no mention in instructions about running composer after editing the json file).

The way I finished installing succesfully this extension was adding the repository in the json file: "repositories": [ { "type": "vcs", "url": "git@github.com:palantirnet/palantir-behat-extension.git" } ], And nothing else (no modification in require-dev section).

Finally I run this command: "composer require palantirnet/palantir-behat-extension:dev-master --dev".

This installed succesfully the files in vendor directory.

Another detail: "- Palantirnet\PalantirBehatExtension\Context\DrupalFileContext.php" is missing from the list to add to behat.yml file.

Thanks,

becw commented 8 years ago

Ahh, brilliant, this debugging info is super useful. Thank you!

It turns out that your problems are due to several errors in the README -- I've updated it in 3cd762f:

The thing is, if you DO install the dev-drupal8 branch, all of the methods throw a NotUpdatedException... because they are based on Drupal 7 internals. @labbydev said that you need the "I should see a :label field" method, so I've made PR #30 to update that.

Hope this helps!