{ this.nameOnCard = nameOnCard }}
+ defaultValue={this.props.name}
+ type='text'
data-test-id='creditCardName'
spellCheck='false'
onKeyDown={this.onKeyDown}
onChange={this.onNameChange}
- ref={(nameOnCard) => { this.nameOnCard = nameOnCard }}
/>
@@ -154,17 +184,19 @@ class AutofillCreditCardPanel extends ImmutableComponent {
styles.expirationDate__dropdowns
)}>
- {ExpMonth}
+ data-test-id='expMonthSelect'
+ >
+ {this.expirationMonths}
- {ExpYear}
+ data-test-id='expYearSelect'
+ >
+ {this.expirationYears}
@@ -174,10 +206,10 @@ class AutofillCreditCardPanel extends ImmutableComponent {