edmondscommerce / behat-magento-2-context
Magento 2 的 Behat Context
1.0.1
2016-08-09 13:24 UTC
Requires
- behat/behat: ~3.0
- edmondscommerce/behat-html-context: dev-master
- edmondscommerce/behat-javascript-context: dev-master
This package is auto-updated.
Last update: 2024-09-22 23:32:29 UTC
README
由Edmonds Commerce提供
Behat contexts 用于辅助测试 Magento 2.x 网站的前端和后端,仅通过黑盒方法
安装
通过 composer 安装
composer require edmondscommerce/behat-magento-2-context
在 Behat 配置中包含 Contexts
default:
# ...
suites:
default:
# ...
contexts:
- # ...
- EdmondsCommerce\BehatMagentoTwoContext\ProductContext
- EdmondsCommerce\BehatMagentoTwoContext\CheckoutContext
- EdmondsCommerce\BehatMagentoTwoContext\AdminContext
parameters:
magentoSettings:
adminUri: admin/
userName: admin
password: password
simpleUri: fusion-backpack.html
bundleUri: pillow-and-throw-set.html
configurableUri: lafayette-convertible-dress.html
groupedUri: vase-set.html
successPageTitle: Success Page
该 context 假设管理面板使用默认主题,前端主题主要基于 luma 主题。