edmondscommerce / behat-magento-2-context

1.0.1 2016-08-09 13:24 UTC

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 主题。