Comments (5)
Actually.. when I remove the behat.yml, I get a different error about it not able to find the step definitions. Placing it back, I get the 'getSession' error. This seems to be a common error with Mink, but I can't see where I have gone wrong. 'features' folder is in the Drupal docroot, as is behat.yml, and vendor/ folder with composer packages.
from drupalextension.
Update on this... when I fall back to the 1.0 version following my own setup guide, it works fine:
http://kevinquillen.com/bdd/2014/06/06/behat-drupal/
Following the given documentation for 3.0, I get the 'getSession' error.
from drupalextension.
Which page of documentation were you following? As far as I can see the README, standalone and site-wide docs all have the proper indentation in the behat.yml file, but your example has an indentation error.
default:
suites:
default:
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\RawDrupalContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
extensions:
Behat\MinkExtension:
goutte: ~
javascript_session: selenium2
selenium2:
wd_host: http://local.d7sandbox.com:8643/wd/hub
base_url: http://local.d7sandbox.com
Drupal\DrupalExtension:
blackbox: ~
api_driver: 'drupal'
drupal:
drupal_root: '/var/www/site/docroot'
The extensions stanza should line up with the first indentation level (suites:) rather than the third (contexts:)
Try the following:
default:
suites:
default:
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\RawDrupalContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
extensions:
Behat\MinkExtension:
goutte: ~
javascript_session: selenium2
selenium2:
wd_host: http://local.d7sandbox.com:8643/wd/hub
base_url: http://local.d7sandbox.com
Drupal\DrupalExtension:
blackbox: ~
api_driver: 'drupal'
drupal:
drupal_root: '/var/www/site/docroot'
Indented like the docs examples, everything runs fine. Indented as it is in the first example, I get the same error you do.
I'll be happy to update the errant docs out there if you can point me toward them.
from drupalextension.
D'OH!
I just installed PHPStorm 8 and it looks like I have some space configuration to do. Indentation didn't even occur to me! It is working now. Thanks!
from drupalextension.
As for the docs, I may have copied and pasted the examples in while trying to get it going and not noticed the spacing being too indented.
from drupalextension.
Related Issues (20)
- Wait for ajax breaks tests HOT 1
- Tags with whitespace are deprecated and may be removed HOT 7
- Login breaks if multiple login button exists on the page HOT 2
- Fix Drupal 7 tests or remove
- Update from 4.1.0 to 4.2.1, getting error "Unable to create new service"
- Circular reference detected for Drupal::service('url_generator') HOT 3
- Drupal 10 / Drush 11 / Symfony 6 Support
- Drop Drupal 7 support
- PHP 8.1 compatibility error: "$this" can no longer be used in a plain function or method since PHP 7.1
- Guzzle 7 issue HOT 3
- New step for press button in row HOT 1
- Error when tried to update to 5.0.0 alpha, conflicts with drupal/core-dev HOT 13
- DrupalAuthenticationManager is confused about login state across scenario's
- Escaping in createNode() changed with PHP 8.1
- Test on PHP 8.2
- Creating a node with a certain URL alias HOT 1
- Disable automatic cleanup HOT 1
- Add a .readthedocs.yml configuration file HOT 4
- Fix failing D10 tests HOT 2
- Remove DrupalFinder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupalextension.