-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using PageObjectExtension in multiple Symfony2 bundles #5
Comments
At the moment it's not possible (but I have it in plans). Also, at the moment you have to define one profile per bundle anyway since that's how behat works. |
Ok, thanks. I ended up using having my tests at application level. It works great. I'm describing here my solution in case anyone is interested. Feedback is welcome :) I'm placing my tests next to my bundles.
My default:
paths:
features: src/Short/Tests/Features
context:
class: Short\Tests\Context\FeatureContext
extensions:
Behat\MinkExtension\Extension:
base_url: 'http://short'
goutte: ~
selenium2: ~
default_session: 'symfony2'
SensioLabs\Behat\PageObjectExtension\Extension:
namespaces:
page: Short\Tests\Page
Behat\Symfony2Extension\Extension:
mink_driver: true |
Closing this as keeping your features or page objects in bundles is no longer recommended. |
Hi,
Is there a way to use PageObjectExtension when features are organized in Symfony2 bundles? The issue I'm running into is that I will end up having some classes Page in each of my bundles, next to the features, but I can only specify one namespace in
namespaces.page
.A workaround, maybe, is to define one profile per bundle, but we can't run all tests at once:
The text was updated successfully, but these errors were encountered: