1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd" >
10
+ <test name =" CheckoutSpecificDestinationsTest" >
11
+ <annotations >
12
+ <title value =" Check that top destinations can be removed after a selection was previously saved" />
13
+ <stories value =" MAGETWO-91511: Top destinations cannot be removed after a selection was previously saved" />
14
+ <description value =" Check that top destinations can be removed after a selection was previously saved" />
15
+ <features value =" Checkout" />
16
+ <severity value =" AVERAGE" />
17
+ <testCaseId value =" MAGETWO-94195" />
18
+ <group value =" Checkout" />
19
+ </annotations >
20
+
21
+ <before >
22
+ <createData entity =" _defaultCategory" stepKey =" defaultCategory" />
23
+ <createData entity =" _defaultProduct" stepKey =" simpleProduct" >
24
+ <requiredEntity createDataKey =" defaultCategory" />
25
+ </createData >
26
+
27
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
28
+ </before >
29
+
30
+ <!-- Go to configuration general page-->
31
+ <actionGroup ref =" NavigateToConfigurationGeneralPage" stepKey =" navigateToConfigurationGeneralPage" />
32
+
33
+ <!-- Open country options section-->
34
+ <conditionalClick selector =" {{CountryOptionsSection.countryOptions}}" dependentSelector =" {{CountryOptionsSection.countryOptionsOpen}}" visible =" false" stepKey =" clickOnStoreInformation" />
35
+
36
+ <!-- Select top destinations country-->
37
+ <actionGroup ref =" SelectTopDestinationsCountry" stepKey =" selectTopDestinationsCountry" >
38
+ <argument name =" countries" value =" Countries" />
39
+ </actionGroup >
40
+
41
+ <!-- Go to product page-->
42
+ <amOnPage url =" {{StorefrontProductPage.url($$simpleProduct.name$$)}}" stepKey =" amOnStorefrontProductPage" />
43
+ <waitForPageLoad stepKey =" waitForProductPageLoad" />
44
+
45
+ <!-- Add product to cart-->
46
+ <actionGroup ref =" StorefrontAddToCartCustomOptionsProductPageActionGroup" stepKey =" addToCart" >
47
+ <argument name =" productName" value =" $$simpleProduct.name$$" />
48
+ </actionGroup >
49
+
50
+ <!-- Go to shopping cart-->
51
+ <amOnPage url =" {{CheckoutCartPage.url}}" stepKey =" amOnPageShoppingCart" />
52
+
53
+ <!-- Verify country options in checkout top destination section-->
54
+ <actionGroup ref =" VerifyTopDestinationsCountry" stepKey =" verifyTopDestinationsCountry" >
55
+ <argument name =" country" value =" Bahamas" />
56
+ <argument name =" placeNumber" value =" 2" />
57
+ </actionGroup >
58
+
59
+ <!-- Go to configuration general page-->
60
+ <actionGroup ref =" NavigateToConfigurationGeneralPage" stepKey =" navigateToConfigurationGeneralPage2" />
61
+
62
+ <!-- Open country options section-->
63
+ <conditionalClick selector =" {{CountryOptionsSection.countryOptions}}" dependentSelector =" {{CountryOptionsSection.countryOptionsOpen}}" visible =" false" stepKey =" clickOnStoreInformation2" />
64
+
65
+ <!-- Deselect top destinations country-->
66
+ <actionGroup ref =" UnSelectTopDestinationsCountry" stepKey =" unSelectTopDestinationsCountry" >
67
+ <argument name =" countries" value =" Countries" />
68
+ </actionGroup >
69
+
70
+ <!-- Go to shopping cart-->
71
+ <amOnPage url =" {{CheckoutCartPage.url}}" stepKey =" amOnPageShoppingCart2" />
72
+
73
+ <!-- Verify country options is shown by default-->
74
+ <actionGroup ref =" VerifyTopDestinationsCountry" stepKey =" verifyTopDestinationsCountry2" >
75
+ <argument name =" country" value =" Afghanistan" />
76
+ <argument name =" placeNumber" value =" 2" />
77
+ </actionGroup >
78
+
79
+ <after >
80
+ <actionGroup ref =" logout" stepKey =" logout" />
81
+
82
+ <deleteData createDataKey =" simpleProduct" stepKey =" deleteProduct" />
83
+ <deleteData createDataKey =" defaultCategory" stepKey =" deleteCategory" />
84
+ </after >
85
+ </test >
86
+ </tests >
0 commit comments