Skip to content

Commit 0e6801e

Browse files
Manjusha.SManjusha.S
authored andcommitted
ACQE-4233 : Added assertion to check before deleting the agreement the url of page is edit
1 parent 84e7dfa commit 0e6801e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/CheckoutAgreements/Test/Mftf/ActionGroup/AdminTermsConditionsDeleteTermByNameActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminTermsConditionsDeleteTermByNameActionGroup">
12+
<seeInCurrentUrl url="checkout/agreement/edit/id/" stepKey="assertEditPage"/>
1213
<click selector="{{AdminEditTermFormSection.delete}}" stepKey="clickDeleteButton"/>
1314
<waitForElementVisible selector="{{AdminEditTermFormSection.acceptPopupButton}}" stepKey="waitForElement"/>
1415
<click selector="{{AdminEditTermFormSection.acceptPopupButton}}" stepKey="clickDeleteOkButton"/>

app/code/Magento/CheckoutAgreements/Test/Mftf/ActionGroup/AdminTermsConditionsEditTermByNameActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<description>Filters Terms and Conditions grid and opens the first result Edit page</description>
1414
</annotations>
1515

16-
<click selector="{{AdminTermGridSection.firstRowConditionId}}" stepKey="clickFirstRow"/>
16+
<doubleClick selector="{{AdminTermGridSection.firstRowConditionId}}" stepKey="clickFirstRow"/>
1717
<waitForPageLoad stepKey="waitForEditTermPageLoad"/>
1818
</actionGroup>
1919
</actionGroups>

0 commit comments

Comments
 (0)