File tree Expand file tree Collapse file tree 3 files changed +23
-12
lines changed Expand file tree Collapse file tree 3 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 13
13
<description >Goes to the Admin Product Attributes grid page. Filters the grid for the provided Product Attribute (Label). Deletes the Product Attribute from the grid. Validates that the Success Message is present.</description >
14
14
</annotations >
15
15
<arguments >
16
- <argument name =" productAttributeLabel" type =" string" />
16
+ <argument name =" productAttributeLabel" type =" string" defaultValue = " ProductAttributeFrontendLabel.label " />
17
17
</arguments >
18
18
19
19
<amOnPage url =" {{AdminProductAttributeGridPage.url}}" stepKey =" navigateToProductAttributeGrid" />
20
20
<waitForPageLoad stepKey =" waitForProductAttributeGridPageLoad" />
21
+ <click selector =" {{AdminProductAttributeGridSection.ResetFilter}}" stepKey =" resetFiltersOnGrid" />
21
22
<fillField selector =" {{AdminProductAttributeGridSection.attributeLabelFilter}}" userInput =" {{productAttributeLabel}}" stepKey =" setAttributeLabelFilter" />
22
23
<click selector =" {{AdminProductAttributeGridSection.Search}}" stepKey =" searchForAttributeLabelFromTheGrid" />
23
24
<click selector =" {{AdminProductAttributeGridSection.FirstRow}}" stepKey =" clickOnAttributeRow" />
24
25
<click selector =" {{AttributePropertiesSection.DeleteAttribute}}" stepKey =" clickOnDeleteAttributeButton" />
25
- <waitForElementVisible selector =" {{ModalConfirmationSection.modalContent}}" stepKey =" waitForConfirmationPopUpVisible" />
26
- <click selector =" {{ModalConfirmationSection.OkButton}}" stepKey =" clickOnConfirmationButton" />
27
- <waitForPageLoad stepKey =" waitForAttributeGridPageLoad" />
28
- <waitForElementVisible selector =" {{AdminProductMessagesSection.successMessage}}" stepKey =" waitForSuccessMessageVisible" />
29
- <see selector =" {{AdminProductMessagesSection.successMessage}}" userInput =" You deleted the product attribute." stepKey =" seeAttributeDeleteSuccessMessage" />
26
+ <waitForElementVisible selector =" {{AdminConfirmationModalSection.message}}" stepKey =" waitForConfirmationPopUpVisible" />
27
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" clickOnConfirmationButton" />
28
+ <waitForElementVisible selector =" {{AdminMessagesSection.success}}" stepKey =" waitForSuccessMessageVisible" />
29
+ <see selector =" {{AdminMessagesSection.success}}" userInput =" {{ProductAttributeMessages.remove_success}}" stepKey =" seeAttributeDeleteSuccessMessage" />
30
30
</actionGroup >
31
31
</actionGroups >
Original file line number Diff line number Diff line change
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
+
9
+ <entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
+ <entity name =" ProductAttributeMessages" >
12
+ <data key =" remove_success" >You deleted the product attribute.</data >
13
+ </entity >
14
+ </entities >
Original file line number Diff line number Diff line change 30
30
<actionGroup ref =" AdminDeleteProductAttributeByLabelActionGroup" stepKey =" deleteProductAttribute" >
31
31
<argument name =" productAttributeLabel" value =" {{ProductAttributeFrontendLabel.label}}" />
32
32
</actionGroup >
33
+ <actionGroup ref =" NavigateToAndResetProductAttributeGridToDefaultViewActionGroup" stepKey =" resetProductAttributeFilters" />
33
34
<actionGroup ref =" logout" stepKey =" logoutFromAdmin" />
34
35
</after >
35
36
102
103
</assertContains >
103
104
104
105
<!-- Create a configurable product to verify the storefront with -->
105
- <amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" amOnProductGridPage" />
106
- <waitForPageLoad time =" 30" stepKey =" waitForProductGrid" />
107
- <actionGroup ref =" GoToCreateProductPageActionGroup" stepKey =" goToCreateConfigurableProduct" >
108
- <argument name =" product" value =" BaseConfigurableProduct" />
109
- </actionGroup >
106
+ <amOnPage url =" {{AdminProductCreatePage.url(BaseConfigurableProduct.attribute_set_id, BaseConfigurableProduct.type_id)}}" stepKey =" goToCreateConfigurableProduct" />
110
107
<actionGroup ref =" FillMainProductFormActionGroup" stepKey =" fillProductForm" >
111
108
<argument name =" product" value =" BaseConfigurableProduct" />
112
109
</actionGroup >
150
147
</assertContains >
151
148
152
149
<!-- Go to the product listing page and see text swatch options -->
153
- <amOnPage url =" $$createCategory.name $$.html" stepKey =" goToCategoryPageStorefront" />
150
+ <amOnPage url =" $$createCategory.custom_attributes[url_key] $$.html" stepKey =" goToCategoryPageStorefront" />
154
151
<waitForPageLoad stepKey =" waitForProductListingPage" />
155
152
156
153
<!-- Verify the storefront -->
You can’t perform that action at this time.
0 commit comments