Skip to content

Commit e160392

Browse files
JhalakMathurshashikant.kumar
authored andcommitted
Code Fix
1 parent d47dab2 commit e160392

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

app/code/Magento/CheckoutAgreements/Test/Mftf/Test/StoreFrontManualTermsAndConditionsTest.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
<deleteData createDataKey="testCategory" stepKey="deleteTestCategory"/>
5353
<magentoCLI command="config:set checkout/options/enable_agreements 0" stepKey="setDisableTermsOnCheckout"/>
5454
<actionGroup ref="AdminTermsConditionsOpenGridActionGroup" stepKey="openTermsGridToDelete"/>
55-
<actionGroup ref="AdminTermsConditionsEditTermByNameActionGroup" stepKey="openTermToDelete">
56-
<argument name="termName" value="{{newHtmlTerm.checkboxText}}"/>
57-
</actionGroup>
58-
<actionGroup ref="AdminTermsConditionsDeleteTermByNameActionGroup" stepKey="deleteOpenedTerm"/>
5955
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
6056
</after>
6157
<!--Go to product page-->
@@ -76,7 +72,7 @@
7672
</actionGroup>
7773
<!-- SelectCash On Delivery payment method -->
7874
<click selector="{{StorefrontCheckoutPaymentMethodsSection.cashOnDelivery}}" stepKey="selectCashOnDeliveryMethod"/>
79-
<!-- Verify Address is present-->
75+
<!-- Verify Address is present-->
8076
<actionGroup ref="CheckBillingAddressInCheckoutActionGroup" stepKey="checkBillingAddressOnBillingPage">
8177
<argument name="customerVar" value="Simple_US_Customer_NY" />
8278
<argument name="customerAddressVar" value="US_Address_NY" />
@@ -113,8 +109,7 @@
113109
<!--Check-box with text for Terms and Condition is presented-->
114110
<seeElement selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey="seeTermInCheckoutagain"/>
115111
<see selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput="{{newHtmlTerm.checkboxText}}" stepKey="seeTermtextInCheckoutagain"/>
116-
<!-- Verify Checkbox is not checked-->
117-
<dontSeeCheckboxIsChecked selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckboxcheck($$newHtmlTerm.checkboxText$$)}}" stepKey="checkboxNotChecked"/>
112+
<seeCheckboxIsChecked selector="{{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckboxcheck(newHtmlTerm.checkboxText)}}" stepKey="checkbox"/>
118113
<!-- Click PLace Order Again-->
119114
<click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="PlaceOrder"/>
120115
<!--This is a required field." message is appeared under check-box -->

0 commit comments

Comments
 (0)