From 9c309fce24d21c86fab5e60f551bc65277c5bcf5 Mon Sep 17 00:00:00 2001 From: Mila Lesechko Date: Wed, 3 Apr 2019 16:38:52 -0500 Subject: [PATCH 1/6] MC-4571: Convert CreateCustomerSegmentEntityWithCustomerConditionsPartOneTest to MFTF --- ...CheckCartDiscountAndSummaryActionGroup.xml | 22 +++++++++ .../Customer/Test/Mftf/Data/CustomerData.xml | 13 ++++++ .../StorefrontNewsletterManageSection.xml | 1 + .../AdminCreateCartPriceRuleActionGroup.xml | 5 +++ .../AdminDeleteCartPriceRuleActionGroup.xml | 22 +++++++++ ...WIthSegmentForCartPriceRuleActionGroup.xml | 45 +++++++++++++++++++ .../Test/Mftf/Data/SalesRuleData.xml | 16 +++++++ .../AdminCartPriceRulesFormSection.xml | 9 ++++ 8 files changed, 133 insertions(+) create mode 100644 app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml create mode 100644 app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminDeleteCartPriceRuleActionGroup.xml create mode 100644 app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml diff --git a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml new file mode 100644 index 0000000000000..b8a989ba2cf35 --- /dev/null +++ b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/code/Magento/Customer/Test/Mftf/Data/CustomerData.xml b/app/code/Magento/Customer/Test/Mftf/Data/CustomerData.xml index 4796fd73e104f..636c404b2458b 100644 --- a/app/code/Magento/Customer/Test/Mftf/Data/CustomerData.xml +++ b/app/code/Magento/Customer/Test/Mftf/Data/CustomerData.xml @@ -216,4 +216,17 @@ 0 0 + + 3 + true + true + John.Doe@example.com + John + Doe + John Doe + pwdTest123! + 0 + 0 + US_Address_CA + diff --git a/app/code/Magento/Newsletter/Test/Mftf/Section/StorefrontNewsletterManageSection.xml b/app/code/Magento/Newsletter/Test/Mftf/Section/StorefrontNewsletterManageSection.xml index 96a944a4952ac..9248970d9e623 100644 --- a/app/code/Magento/Newsletter/Test/Mftf/Section/StorefrontNewsletterManageSection.xml +++ b/app/code/Magento/Newsletter/Test/Mftf/Section/StorefrontNewsletterManageSection.xml @@ -10,5 +10,6 @@ xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
+
diff --git a/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleActionGroup.xml b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleActionGroup.xml index cc165e0b5dc96..b690d0190bdd1 100644 --- a/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleActionGroup.xml +++ b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleActionGroup.xml @@ -24,6 +24,11 @@ + + + + + diff --git a/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminDeleteCartPriceRuleActionGroup.xml b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminDeleteCartPriceRuleActionGroup.xml new file mode 100644 index 0000000000000..88f9bf2fbe54d --- /dev/null +++ b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminDeleteCartPriceRuleActionGroup.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml new file mode 100644 index 0000000000000..855da5228d493 --- /dev/null +++ b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/code/Magento/SalesRule/Test/Mftf/Data/SalesRuleData.xml b/app/code/Magento/SalesRule/Test/Mftf/Data/SalesRuleData.xml index 8f6e63534b0ca..aa0220ea523f4 100644 --- a/app/code/Magento/SalesRule/Test/Mftf/Data/SalesRuleData.xml +++ b/app/code/Magento/SalesRule/Test/Mftf/Data/SalesRuleData.xml @@ -193,4 +193,20 @@ by_fixed + + + Cart Price Rule + Main Website + 'Retailer' + Percent of product price discount + 50 + + + + Cart Price Rule + Main Website + 'General' + Percent of product price discount + 50 + diff --git a/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml b/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml index c8da82407457d..48d2a2685fcbe 100644 --- a/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml +++ b/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml @@ -40,6 +40,14 @@ + + + + + + + + @@ -57,6 +65,7 @@ + From 8c4a6770308c7e78c889162a0048fd8afe5f05a0 Mon Sep 17 00:00:00 2001 From: Mila Lesechko Date: Mon, 8 Apr 2019 16:46:29 -0500 Subject: [PATCH 2/6] MC-4571: Convert CreateCustomerSegmentEntityWithCustomerConditionsPartOneTest to MFTF --- .../StorefrontCheckCartDiscountAndSummaryActionGroup.xml | 2 -- ...uteConditionWithSegmentForCartPriceRuleActionGroup.xml} | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) rename app/code/Magento/SalesRule/Test/Mftf/ActionGroup/{SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml => SetCartAttributeConditionWithSegmentForCartPriceRuleActionGroup.xml} (93%) diff --git a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml index b8a989ba2cf35..115fbc4993e58 100644 --- a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml +++ b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml @@ -11,11 +11,9 @@ - - diff --git a/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWithSegmentForCartPriceRuleActionGroup.xml similarity index 93% rename from app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml rename to app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWithSegmentForCartPriceRuleActionGroup.xml index 855da5228d493..1ae6b7a3e92f4 100644 --- a/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWIthSegmentForCartPriceRuleActionGroup.xml +++ b/app/code/Magento/SalesRule/Test/Mftf/ActionGroup/SetCartAttributeConditionWithSegmentForCartPriceRuleActionGroup.xml @@ -6,8 +6,9 @@ */ --> - + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> + + @@ -35,7 +36,7 @@ - + From 01b133aab5bd123245c1799e717ca0cc21588c35 Mon Sep 17 00:00:00 2001 From: Mila Lesechko Date: Wed, 10 Apr 2019 10:16:41 -0500 Subject: [PATCH 3/6] MC-4575: Convert CreateCustomerSegmentEntityWithCustomerConditionsPartTwoTest to MFTF --- .../StorefrontCheckCartDiscountAndSummaryActionGroup.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml index 115fbc4993e58..b9e2b38e9af7f 100644 --- a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml +++ b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml @@ -14,6 +14,8 @@ + + From 7850c0b0cbea3d93dc520255a7f4d0e5037e0b11 Mon Sep 17 00:00:00 2001 From: Mila Lesechko <26227105+MilaLesechko@users.noreply.github.com> Date: Wed, 10 Apr 2019 10:20:53 -0500 Subject: [PATCH 4/6] MC-4571: Convert CreateCustomerSegmentEntityWithCustomerConditionsPartOneTest to MFTF --- .../StorefrontCheckCartDiscountAndSummaryActionGroup.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml index 115fbc4993e58..790674f03ea69 100644 --- a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml +++ b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml @@ -14,7 +14,9 @@ + + - \ No newline at end of file + From 887678e24f85431530d256cb8935c16e17be976c Mon Sep 17 00:00:00 2001 From: Mila Lesechko <26227105+MilaLesechko@users.noreply.github.com> Date: Wed, 10 Apr 2019 11:55:30 -0500 Subject: [PATCH 5/6] MC-4571: Convert CreateCustomerSegmentEntityWithCustomerConditionsPartOneTest to MFTF --- .../Test/Mftf/Section/AdminCartPriceRulesFormSection.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml b/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml index f2a607213c68b..e5e21df91930a 100644 --- a/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml +++ b/app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml @@ -73,7 +73,6 @@ - @@ -94,4 +93,4 @@ - \ No newline at end of file + From 063a684b4c8e0c92029aed8ec50277d021e3de0d Mon Sep 17 00:00:00 2001 From: Mila Lesechko Date: Thu, 11 Apr 2019 09:48:08 -0500 Subject: [PATCH 6/6] MC-4575: Convert CreateCustomerSegmentEntityWithCustomerConditionsPartTwoTest to MFTF[A --- .../StorefrontCheckCartDiscountAndSummaryActionGroup.xml | 1 + .../Checkout/Test/Mftf/Section/CheckoutCartSummarySection.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml index 790674f03ea69..6c541db6defcc 100644 --- a/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml +++ b/app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml @@ -17,6 +17,7 @@ + diff --git a/app/code/Magento/Checkout/Test/Mftf/Section/CheckoutCartSummarySection.xml b/app/code/Magento/Checkout/Test/Mftf/Section/CheckoutCartSummarySection.xml index 8d14a9a561900..e29d3e1fa145b 100644 --- a/app/code/Magento/Checkout/Test/Mftf/Section/CheckoutCartSummarySection.xml +++ b/app/code/Magento/Checkout/Test/Mftf/Section/CheckoutCartSummarySection.xml @@ -14,7 +14,7 @@ - +