@@ -48,7 +48,7 @@ it("container has appropriate classes", () => {
4848 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
4949 ) ;
5050 let container = wrapper . find (
51- "[className='input input-container input-text container -untouched container -nofocus']"
51+ "[className='input input-container input-text input -untouched input -nofocus input-novalidation ']"
5252 ) ;
5353
5454 expect ( container . length ) . toEqual ( 1 ) ;
@@ -64,7 +64,7 @@ it("container has appropriate classes when over-ridden with single string", () =
6464 />
6565 ) ;
6666 let container = wrapper . find (
67- "[className='reniatnoc container- untouched container -nofocus']"
67+ "[className='reniatnoc reniatnoc- container reniatnoc-text reniatnoc- untouched reniatnoc -nofocus reniatnoc-novalidation ']"
6868 ) ;
6969
7070 expect ( container . length ) . toEqual ( 1 ) ;
@@ -80,7 +80,7 @@ it("container has appropriate classes when over-ridden with array of strings", (
8080 />
8181 ) ;
8282 let container = wrapper . find (
83- "[className='reniatnoc reniatno container- untouched container -nofocus']"
83+ "[className='reniatnoc reniatnoc-container reniatnoc-text reniatnoc-untouched reniatnoc-nofocus reniatnoc-novalidation reniatno reniatno- container reniatno-text reniatno- untouched reniatno -nofocus reniatno-novalidation ']"
8484 ) ;
8585
8686 expect ( container . length ) . toEqual ( 1 ) ;
@@ -100,7 +100,7 @@ it("label should have appropraite classes", () => {
100100 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
101101 ) ;
102102 let label = wrapper . find (
103- "[className='label label-container label-text label-untouched label-nofocus']"
103+ "[className='label label-container label-text label-untouched label-nofocus label-novalidation ']"
104104 ) ;
105105
106106 expect ( label . length ) . toEqual ( 1 ) ;
@@ -116,7 +116,7 @@ it("label should have appropraite classes when over-ridden with an array of stri
116116 />
117117 ) ;
118118 let label = wrapper . find (
119- "[className='lebal leba label- untouched label -nofocus']"
119+ "[className='lebal lebal-container lebal-text lebal-untouched lebal-nofocus lebal-novalidation leba leba-container leba-text leba- untouched leba -nofocus leba-novalidation ']"
120120 ) ;
121121
122122 expect ( label . length ) . toEqual ( 1 ) ;
@@ -136,7 +136,7 @@ it("input should have appropriate classes", () => {
136136 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
137137 ) ;
138138 let input = wrapper . find (
139- "[className='text text -container input-untouched input-nofocus']"
139+ "[className='input input -container input-text input- untouched input-nofocus input-novalidation ']"
140140 ) ;
141141
142142 expect ( input . length ) . toEqual ( 1 ) ;
@@ -152,7 +152,7 @@ it("input should have appropriate classes when over-ridden with an array of stri
152152 />
153153 ) ;
154154 let input = wrapper . find (
155- "[className='tupni tupn input- untouched input -nofocus']"
155+ "[className='tupni tupni-container tupni-text tupni-untouched tupni-nofocus tupni-novalidation tupn tupn-container tupn-text tupn- untouched tupn -nofocus tupn-novalidation ']"
156156 ) ;
157157
158158 expect ( input . length ) . toEqual ( 1 ) ;
@@ -182,7 +182,7 @@ it("p (validation) should have appropriate classes", () => {
182182 />
183183 ) ;
184184 let input = wrapper . find (
185- "[className='validation validation-container validation-text validation-untouched validation-nofocus validation-invalid']"
185+ "[className='validation validation-container validation-text validation-untouched validation-nofocus validation-validation validation- invalid']"
186186 ) ;
187187
188188 expect ( input . length ) . toEqual ( 1 ) ;
@@ -199,7 +199,7 @@ it("p (validation) should have appropriate classes when over-ridden by an array
199199 />
200200 ) ;
201201 let input = wrapper . find (
202- "[className='noitadilav noitadila validation- untouched validation- nofocus validation-invalid']"
202+ "[className='noitadilav noitadilav-container noitadilav-text noitadilav- untouched noitadilav-nofocus noitadilav- validation noitadilav-invalid noitadila noitadila-container noitadila-text noitadila-untouched noitadila- nofocus noitadila- validation noitadila -invalid']"
203203 ) ;
204204
205205 expect ( input . length ) . toEqual ( 1 ) ;
@@ -282,89 +282,89 @@ it("accepts, and renders, placeholder property text - control (ensures no false
282282 expect ( placeholder . length ) . toEqual ( 0 ) ;
283283} ) ;
284284
285- it ( "component contains a container -nofocus class default" , ( ) => {
285+ it ( "component contains a text -nofocus class default" , ( ) => {
286286 const wrapper = shallow (
287287 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
288288 ) ;
289289
290- let hasNoFocus = wrapper . find ( ".container -nofocus" ) ;
290+ let hasNoFocus = wrapper . find ( ".text -nofocus" ) ;
291291
292292 expect ( hasNoFocus . length ) . toEqual ( 1 ) ;
293293} ) ;
294294
295- it ( "component contains a container -focus class upon receiving focus" , ( ) => {
295+ it ( "component contains a text -focus class upon receiving focus" , ( ) => {
296296 const wrapper = shallow (
297297 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
298298 ) ;
299299
300- let hasNoFocus = wrapper . find ( ".container -nofocus" ) ;
300+ let hasNoFocus = wrapper . find ( ".text -nofocus" ) ;
301301
302302 expect ( hasNoFocus . length ) . toEqual ( 1 ) ;
303303
304304 wrapper . find ( "input" ) . simulate ( "focus" ) ;
305305
306- let nowHasFocus = wrapper . find ( ".container -focus" ) ;
306+ let nowHasFocus = wrapper . find ( ".text -focus" ) ;
307307
308308 expect ( nowHasFocus . length ) . toEqual ( 1 ) ;
309309} ) ;
310310
311- it ( "component contains a container -nofocus class upon receiving focus, then again losing focus" , ( ) => {
311+ it ( "component contains a text -nofocus class upon receiving focus, then again losing focus" , ( ) => {
312312 const wrapper = shallow (
313313 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
314314 ) ;
315315
316- let hasNoFocus = wrapper . find ( ".container -nofocus" ) ;
316+ let hasNoFocus = wrapper . find ( ".text -nofocus" ) ;
317317 expect ( hasNoFocus . length ) . toEqual ( 1 ) ;
318318
319319 wrapper . find ( "input" ) . simulate ( "focus" ) ;
320- let nowHasFocus = wrapper . find ( ".container -focus" ) ;
320+ let nowHasFocus = wrapper . find ( ".text -focus" ) ;
321321 expect ( nowHasFocus . length ) . toEqual ( 1 ) ;
322322
323323 wrapper . find ( "input" ) . simulate ( "blur" ) ;
324- let noLongerHasFocus = wrapper . find ( ".container -nofocus" ) ;
324+ let noLongerHasFocus = wrapper . find ( ".text -nofocus" ) ;
325325 expect ( noLongerHasFocus . length ) . toEqual ( 1 ) ;
326326} ) ;
327327
328- it ( "component contains a container -untouched class default" , ( ) => {
328+ it ( "component contains a text -untouched class default" , ( ) => {
329329 const wrapper = shallow (
330330 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
331331 ) ;
332332
333- let hasNoTouched = wrapper . find ( ".container -untouched" ) ;
333+ let hasNoTouched = wrapper . find ( ".text -untouched" ) ;
334334
335335 expect ( hasNoTouched . length ) . toEqual ( 1 ) ;
336336} ) ;
337337
338- it ( "component contains a container -focus class upon change (touched)" , ( ) => {
338+ it ( "component contains a text -focus class upon change (touched)" , ( ) => {
339339 const wrapper = shallow (
340340 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
341341 ) ;
342342
343- let hasNoTouched = wrapper . find ( ".container -untouched" ) ;
343+ let hasNoTouched = wrapper . find ( ".text -untouched" ) ;
344344
345345 expect ( hasNoTouched . length ) . toEqual ( 1 ) ;
346346
347347 wrapper . find ( "input" ) . simulate ( "change" , { target : { value : "a" } } ) ;
348348
349- let nowHasTouched = wrapper . find ( ".container -touched" ) ;
349+ let nowHasTouched = wrapper . find ( ".text -touched" ) ;
350350
351351 expect ( nowHasTouched . length ) . toEqual ( 1 ) ;
352352} ) ;
353353
354- it ( "component contains a container -untouched class upon change (Touched), and is retained on blur" , ( ) => {
354+ it ( "component contains a text -untouched class upon change (Touched), and is retained on blur" , ( ) => {
355355 const wrapper = shallow (
356356 < Input type = "text" identifier = "testInput" labelContent = "Test Input" />
357357 ) ;
358358
359- let hasNoTouched = wrapper . find ( ".container -untouched" ) ;
359+ let hasNoTouched = wrapper . find ( ".text -untouched" ) ;
360360 expect ( hasNoTouched . length ) . toEqual ( 1 ) ;
361361
362362 wrapper . find ( "input" ) . simulate ( "change" , { target : { value : "a" } } ) ;
363- let nowHasTouched = wrapper . find ( ".container -touched" ) ;
363+ let nowHasTouched = wrapper . find ( ".text -touched" ) ;
364364 expect ( nowHasTouched . length ) . toEqual ( 1 ) ;
365365
366366 wrapper . find ( "input" ) . simulate ( "blur" ) ;
367- let stillRetainsTouched = wrapper . find ( ".container -touched" ) ;
367+ let stillRetainsTouched = wrapper . find ( ".text -touched" ) ;
368368 expect ( stillRetainsTouched . length ) . toEqual ( 1 ) ;
369369} ) ;
370370
0 commit comments