88 DEFAULT_VALIDATION_ERROR_TEXT ,
99} from '../../src/core/constants' ;
1010import {
11+ ContainerType ,
1112 ElementType ,
1213 Env ,
1314 LogLevel ,
@@ -38,6 +39,7 @@ describe('test Collect Element class', () => {
3839 type : ElementType . CARD_NUMBER ,
3940 label : 'Card Number' ,
4041 onChange : onChangeMock ,
42+ containerType : ContainerType . COLLECT ,
4143 } ;
4244 const cardNumberElement = new CollectElement (
4345 elementInput ,
@@ -73,6 +75,7 @@ describe('test Collect Element class', () => {
7375 onChange : onChangeMock ,
7476 onBlur : onBlurMock ,
7577 onFocus : onFocusMock ,
78+ containerType : ContainerType . COLLECT ,
7679 } ,
7780 { required : true } ,
7881 context
@@ -149,6 +152,7 @@ describe('test Collect Element class', () => {
149152 label : 'Expiration Date' ,
150153 type : ElementType . EXPIRATION_DATE ,
151154 onChange : onChangeMock ,
155+ containerType : ContainerType . COLLECT ,
152156 } ,
153157 {
154158 format : 'YYYY/MM' ,
@@ -184,6 +188,7 @@ describe('test Collect Element class', () => {
184188 type : ElementType . PIN ,
185189 onChange : onChangeMock ,
186190 onBlur : onBlurMock ,
191+ containerType : ContainerType . COLLECT ,
187192 } ,
188193 { } ,
189194 context
@@ -257,6 +262,7 @@ describe('test Collect Element class', () => {
257262 collectElement = new CollectElement (
258263 {
259264 type : ElementType . CVV ,
265+ containerType : ContainerType . COLLECT ,
260266 } ,
261267 { } ,
262268 context
@@ -276,6 +282,7 @@ describe('test Collect Element class', () => {
276282 collectElement = new CollectElement (
277283 {
278284 type : ElementType . CVV ,
285+ containerType : ContainerType . COLLECT ,
279286 inputStyles : {
280287 base : baseStyles ,
281288 focus : focusStyles ,
@@ -327,6 +334,7 @@ describe('test Collect Element class', () => {
327334 collectElement = new CollectElement (
328335 {
329336 type : ElementType . CARDHOLDER_NAME ,
337+ containerType : ContainerType . COLLECT ,
330338 } ,
331339 { } ,
332340 context
@@ -337,6 +345,7 @@ describe('test Collect Element class', () => {
337345 {
338346 type : ElementType . CARDHOLDER_NAME ,
339347 labelStyles : { base : baseStyles } ,
348+ containerType : ContainerType . COLLECT ,
340349 } ,
341350 { } ,
342351 context
@@ -348,6 +357,7 @@ describe('test Collect Element class', () => {
348357 type : ElementType . CARDHOLDER_NAME ,
349358 labelStyles : { base : baseStyles , focus : focusStyles } ,
350359 label : 'CardHolder Name' ,
360+ containerType : ContainerType . COLLECT ,
351361 } ,
352362 { } ,
353363 context
@@ -374,6 +384,7 @@ describe('test Collect Element class', () => {
374384 collectElement = new CollectElement (
375385 {
376386 type : ElementType . INPUT_FIELD ,
387+ containerType : ContainerType . COLLECT ,
377388 validations : [
378389 {
379390 type : ValidationRuleType . LENGTH_MATCH_RULE ,
@@ -404,6 +415,7 @@ describe('test Collect Element class', () => {
404415 collectElement = new CollectElement (
405416 {
406417 type : ElementType . INPUT_FIELD ,
418+ containerType : ContainerType . COLLECT ,
407419 validations : [
408420 {
409421 type : ValidationRuleType . REGEX_MATCH_RULE ,
@@ -427,6 +439,7 @@ describe('test Collect Element class', () => {
427439 collectElement = new CollectElement (
428440 {
429441 type : ElementType . INPUT_FIELD ,
442+ containerType : ContainerType . COLLECT ,
430443 validations : [
431444 {
432445 type : undefined ,
@@ -445,6 +458,7 @@ describe('test Collect Element class', () => {
445458 collectElement = new CollectElement (
446459 {
447460 type : ElementType . EXPIRATION_YEAR ,
461+ containerType : ContainerType . COLLECT ,
448462 } ,
449463 {
450464 required : true ,
@@ -463,6 +477,7 @@ describe('test Collect Element class', () => {
463477 collectElement = new CollectElement (
464478 {
465479 type : ElementType . EXPIRATION_YEAR ,
480+ containerType : ContainerType . COLLECT ,
466481 } ,
467482 {
468483 required : true ,
0 commit comments