Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edmondscommerce/behat-magento-one-context
Behat Context for Magento
https://github.com/edmondscommerce/behat-magento-one-context
Last synced: about 2 months ago
JSON representation
Behat Context for Magento
- Host: GitHub
- URL: https://github.com/edmondscommerce/behat-magento-one-context
- Owner: edmondscommerce
- Created: 2016-01-19T14:51:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-08T14:21:47.000Z (about 5 years ago)
- Last Synced: 2024-04-22T17:13:37.779Z (8 months ago)
- Language: PHP
- Size: 339 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Magento One Context
## By [Edmonds Commerce](https://www.edmondscommerce.co.uk)Behat contexts to aid testing of Magento 1.x sites
### Installation
Install via composer
"edmondscommerce/behat-magento-one-context": "~1.1"
### Include Contexts in Behat Configuration
```
default:
# ...
suites:
default:
# ...
contexts:
- # ...
- EdmondsCommerce\BehatMagentoOneContext\CartContext
- EdmondsCommerce\BehatMagentoOneContext\CustomerContext
- EdmondsCommerce\BehatMagentoOneContext\NavigationContext
- EdmondsCommerce\BehatMagentoOneContext\ProductContext
parameters:
magentoSettings:
pathToMage: '/path/to/app/Mage.php'
categoryUri: women/new-arrivals.html
simpleUri: accessories/eyewear/aviator-sunglasses.html
bundleUri: pillow-and-throw-set.html
configurableUri: lafayette-convertible-dress.html
groupedUri: vase-set.html```
The ProductContext has additional parameters that allow for easier navigation to different types of product,
when these are not specified they will default to the sample data urls to ease prototyping of modules using the sample data.### Custom Contexts should extend `RawMinkContext`
`AbstractMagentoContext::gatherContexts()` expects `Behat\MinkExtension\Context\MinkContext` to be specified in the behat.yml
If the default `FeatureContext`, or any other Contexts extend this class too, Behat will complain that "Step 'x' is already defined in Class::method()".
Contexts should therefore extend `Behat\MinkExtension\Context\RawMinkContext` instead