Skip to content

Commit

Permalink
Resolve Knockout non-unique elements id in console error #15349
Browse files Browse the repository at this point in the history
- fix functional test.
  • Loading branch information
VladimirZaets committed May 29, 2018
1 parent a4875ad commit d78fd0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<!-- ko template: getTemplate() --><!-- /ko -->
<!--/ko-->
<form data-bind="attr: {'data-hasrequired': $t('* Required Fields')}">
<fieldset data-bind="attr: { id:'billing-new-address-form-'+index, value:index}" class="fieldset address">
<fieldset
data-bind="attr: { id:'billing-new-address-form-'+index, value:index}"
class="billing-new-address-form fieldset address">
<!-- ko foreach: getRegion('additional-fieldsets') -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!--/ko-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<element name="isPaymentSection" type="text" selector="//*[@class='opc-progress-bar']/li[contains(@class, '_active') and span[contains(.,'Review &amp; Payments')]]"/>
<element name="availablePaymentSolutions" type="text" selector="#checkout-payment-method-load>div>div>div:nth-child(2)>div.payment-method-title.field.choice"/>
<element name="notAvailablePaymentSolutions" type="text" selector="#checkout-payment-method-load>div>div>div.payment-method._active>div.payment-method-title.field.choice"/>
<element name="billingNewAddressForm" type="text" selector="#billing-new-address-form"/>
<element name="billingNewAddressForm" type="text" selector=".billing-new-address-form"/>
<element name="placeOrderDisabled" type="button" selector="#checkout-payment-method-load button.disabled"/>
<element name="update" type="button" selector=".payment-method-billing-address .action.action-update"/>
<element name="guestFirstName" type="input" selector=".billing-address-form input[name*='firstname']"/>
Expand Down

0 comments on commit d78fd0c

Please sign in to comment.