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 13
13
<element name =" checkoutAgreementButton" type =" button" selector =" div.checkout-agreements-block > div > div > div > label > button > span" />
14
14
<element name =" checkoutAgreementErrorMessage" type =" button" selector =" div.checkout-agreement.field.choice.required > div.mage-error" />
15
15
<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" />
16
17
</section >
17
18
</sections >
Original file line number Diff line number Diff line change 114
114
<seeElement selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox}}" stepKey =" seeTermInCheckoutagain" />
115
115
<see selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementButton}}" userInput =" {{newHtmlTerm.checkboxText}}" stepKey =" seeTermtextInCheckoutagain" />
116
116
<!-- Verify Checkbox is not checked-->
117
- <dontSeeCheckboxIsChecked selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckbox }}" stepKey =" checkboxNotChecked" />
117
+ <dontSeeCheckboxIsChecked selector =" {{StorefrontCheckoutAgreementsSection.checkoutAgreementCheckboxcheck($$newHtmlTerm.checkboxText$$) }}" stepKey =" checkboxNotChecked" />
118
118
<!-- Click PLace Order Again-->
119
119
<click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" PlaceOrder" />
120
120
<!-- This is a required field." message is appeared under check-box -->
You can’t perform that action at this time.
0 commit comments