Skip to content

Commit

Permalink
feat: set unique ids for form fields in payment components (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
rinkeshrsys authored Mar 1, 2021
1 parent 3b0adb4 commit 832cdba
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
<div class="col-sm-6">
<div class="clearfix row">
<div class="col-6">
<select class="form-control" id="month" formControlName="expirationMonth" data-testing-id="expirationMonth">
<select
class="form-control"
id="concardis_creditcard_month"
formControlName="expirationMonth"
data-testing-id="expirationMonth"
>
<option value="">{{ 'account.date.month' | translate }}</option>
<option *ngFor="let option of monthOptions" [value]="option.value">{{ option.label | translate }}</option>
</select>
Expand All @@ -39,7 +44,12 @@
></ish-form-control-feedback>
</div>
<div class="col-6">
<select class="form-control" id="year" formControlName="expirationYear" data-testing-id="expirationYear">
<select
class="form-control"
id="concardis_creditcard_year"
formControlName="expirationYear"
data-testing-id="expirationYear"
>
<option value="">{{ 'account.date.year' | translate }}</option>
<option *ngFor="let option of yearOptions" [value]="option.value">{{ option.label | translate }}</option>
</select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
<div class="col-sm-6">
<div class="clearfix row">
<div class="col-6">
<select class="form-control" id="month" formControlName="expirationMonth" data-testing-id="expirationMonth">
<select
class="form-control"
id="cybersource_creditcard_month"
formControlName="expirationMonth"
data-testing-id="expirationMonth"
>
<option value="">{{ 'account.date.month' | translate }}</option>
<option *ngFor="let option of monthOptions" [value]="option.value">{{ option.label | translate }}</option>
</select>
Expand All @@ -41,7 +46,12 @@
></ish-form-control-feedback>
</div>
<div class="col-6">
<select class="form-control" id="year" formControlName="expirationYear" data-testing-id="expirationYear">
<select
class="form-control"
id="cybersource_creditcard_year"
formControlName="expirationYear"
data-testing-id="expirationYear"
>
<option value="">{{ 'account.date.year' | translate }}</option>
<option *ngFor="let option of yearOptions" [value]="option.value">{{ option.label | translate }}</option>
</select>
Expand Down

0 comments on commit 832cdba

Please sign in to comment.