File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
app/code/Magento/CheckoutAgreements/Test/Mftf Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1313 <element name =" checkoutAgreementButton" type =" button" selector =" div.checkout-agreements-block > div > div > div > label > button > span" />
1414 <element name =" checkoutAgreementErrorMessage" type =" button" selector =" div.checkout-agreement.field.choice.required > div.mage-error" />
1515 <element name =" checkoutPaymentMethod" type =" radio" selector =" //div[@class='payment-method _active']/div/input[@id= '{{methodName}}']" parameterized =" true" />
16+ <element name =" checkoutAgreementCheckboxcheck" type =" checkbox" selector =" //span[text()='{{agreementname}}']/../../../input[@type='checkbox']" parameterized =" true" />
1617 </section >
1718</sections >
Original file line number Diff line number Diff line change 114114 <seeElement selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey =" seeTermInCheckoutagain" />
115115 <see selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput =" {{newHtmlTerm.checkboxText}}" stepKey =" seeTermtextInCheckoutagain" />
116116 <!-- Verify Checkbox is not checked-->
117- <dontSeeCheckboxIsChecked selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox }}" stepKey =" checkboxNotChecked" />
117+ <dontSeeCheckboxIsChecked selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckboxcheck($$newHtmlTerm.checkboxText$$) }}" stepKey =" checkboxNotChecked" />
118118 <!-- Click PLace Order Again-->
119119 <click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" PlaceOrder" />
120120 <!-- This is a required field." message is appeared under check-box -->
You can’t perform that action at this time.
0 commit comments