Skip to content

Allow ActionGroup arguments to have a defaultValue of another argument #300

Closed
@navarr

Description

@navarr

ActionGroup parameters should be able to contain a defaultValue that is filled by another argument. An example scenario:

<actionGroup name="CheckProductPricingOnStorefrontOrderReview">
    <arguments>
        <argument name="product"/>
        <argument type="string" name="priceInclTax"/>
        <argument type="string" name="priceExclTax"/>
        <argument type="string" name="subtotalExclTax" defaultValue="{{priceExclTax}}"/>
        <argument type="string" name="subtotalInclTax" defaultValue="{{priceInclTax}}"/>
    </arguments>

    <see stepKey="seeProductPriceExclTax" userInput="{{priceExclTax}}" selector="{{StorefrontCustomerOrderViewSection.productPriceExclTaxByName(product.name)}}"/>
    <see stepKey="seeProductPriceInclTax" userInput="{{priceInclTax}}" selector="{{StorefrontCustomerOrderViewSection.productPriceInclTaxByName(product.name)}}"/>

    <see stepKey="seeProductSubtotalExclTax" userInput="{{subtotalExclTax}}" selector="{{StorefrontCustomerOrderViewSection.productSubtotalExclTaxByName(product.name)}}"/>
    <see stepKey="seeProductSubtotalInclTax" userInput="{{subtotalInclTax}}" selector="{{StorefrontCustomerOrderViewSection.productSubtotalInclTaxByName(product.name)}}"/>
</actionGroup>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions