Skip to content

Commit 601b2f6

Browse files
MAGETWO-66666: Adding a product to cart from category page with an expired session does not allow product to be added
- Updated automated test to clear search field
1 parent a8ae74e commit 601b2f6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/StorefrontAddProductToCardActionGroup.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
<click selector="{{DeleteCreatedProduct.okButton}}" stepKey="clickToConfirm"/>
5656
<wait stepKey="waitForRecordIsDeleted" time="2"/>
5757
<see userInput="A total of 1 record(s) have been deleted." stepKey="productDeletedSuccessfully"/>
58+
<click stepKey="clickClearAllFilterButton" selector="{{DeleteCreatedProduct.clearAll}}"/>
59+
<!-- We need this wait to make sure that Active filters is clear (waitForElementNotVisible tag doesn't wait until clearing filters)-->
60+
<wait stepKey="waitToClearAllFilters" time="2"/>
5861
</actionGroup>
5962

6063
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Section/StorefrontAddProductToCardSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<element name="actionSelectBox" type="button" selector="//*[@class='col-xs-2']//span[text()='Actions']"/>
6868
<element name="deleteButton" type="button" selector="//div[@class='col-xs-2']//*[text()='Delete']"/>
6969
<element name="okButton" type="button" selector=".action-primary.action-accept"/>
70+
<element name="clearAll" type="button" selector="//*[@class='admin__data-grid-outer-wrap']/*[@class='admin__data-grid-header']//*[contains(text(), 'Clear all')]"/>
7071
</section>
7172

7273
</sections>

0 commit comments

Comments
 (0)