@@ -109,13 +109,13 @@ context('Tubes and Block', () => {
109
109
cy . get ( "input[name='wellXDimension']" ) . should ( 'exist' )
110
110
cy . get ( "input[name='wellYDimension']" ) . should ( 'exist' )
111
111
cy . get ( "input[name='wellXDimension']" ) . focus ( ) . blur ( )
112
- cy . contains ( 'Well X is a required field' ) . should ( 'exist' )
112
+ cy . contains ( 'Tube X is a required field' ) . should ( 'exist' )
113
113
cy . get ( "input[name='wellXDimension']" ) . type ( '10' ) . blur ( )
114
- cy . contains ( 'Well X is a required field' ) . should ( 'not.exist' )
114
+ cy . contains ( 'Tube X is a required field' ) . should ( 'not.exist' )
115
115
cy . get ( "input[name='wellYDimension']" ) . focus ( ) . blur ( )
116
- cy . contains ( 'Well Y is a required field' ) . should ( 'exist' )
116
+ cy . contains ( 'Tube Y is a required field' ) . should ( 'exist' )
117
117
cy . get ( "input[name='wellYDimension']" ) . type ( '10' ) . blur ( )
118
- cy . contains ( 'Well Y is a required field' ) . should ( 'not.exist' )
118
+ cy . contains ( 'Tube Y is a required field' ) . should ( 'not.exist' )
119
119
} )
120
120
121
121
it ( 'tests well bottom shape and depth' , ( ) => {
@@ -158,9 +158,9 @@ context('Tubes and Block', () => {
158
158
cy . contains ( 'close' ) . click ( { force : true } )
159
159
160
160
// Brand info
161
- cy . contains ( 'Brand is required' ) . should ( 'exist' )
161
+ cy . contains ( 'Brand is a required field ' ) . should ( 'exist' )
162
162
cy . get ( "input[name='brand']" ) . type ( 'TestPro' )
163
- cy . contains ( 'Brand is required' ) . should ( 'not.exist' )
163
+ cy . contains ( 'Brand is a required field ' ) . should ( 'not.exist' )
164
164
cy . get ( "input[name='brandId']" ) . type ( '001' )
165
165
166
166
// File info
@@ -172,7 +172,7 @@ context('Tubes and Block', () => {
172
172
)
173
173
174
174
// Test pipette
175
- cy . contains ( 'Test Pipette is required' ) . should ( 'exist' )
175
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'exist' )
176
176
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
177
177
cy . get ( 'label' )
178
178
. contains ( 'Test Pipette' )
@@ -182,7 +182,7 @@ context('Tubes and Block', () => {
182
182
cy . get ( '*[class^="Dropdown__option_label"]' )
183
183
. contains ( / P 1 0 .* S i n g l e - C h a n n e l .* G E N 1 / )
184
184
. click ( )
185
- cy . contains ( 'Test Pipette is required' ) . should ( 'not.exist' )
185
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'not.exist' )
186
186
187
187
// All fields present
188
188
cy . get ( 'button[class*="_export_button_"]' ) . click ( { force : true } )
@@ -298,13 +298,13 @@ context('Tubes and Block', () => {
298
298
cy . get ( "input[name='wellXDimension']" ) . should ( 'exist' )
299
299
cy . get ( "input[name='wellYDimension']" ) . should ( 'exist' )
300
300
cy . get ( "input[name='wellXDimension']" ) . focus ( ) . blur ( )
301
- cy . contains ( 'Well X is a required field' ) . should ( 'exist' )
301
+ cy . contains ( 'Tube X is a required field' ) . should ( 'exist' )
302
302
cy . get ( "input[name='wellXDimension']" ) . type ( '10' ) . blur ( )
303
- cy . contains ( 'Well X is a required field' ) . should ( 'not.exist' )
303
+ cy . contains ( 'Tube X is a required field' ) . should ( 'not.exist' )
304
304
cy . get ( "input[name='wellYDimension']" ) . focus ( ) . blur ( )
305
- cy . contains ( 'Well Y is a required field' ) . should ( 'exist' )
305
+ cy . contains ( 'Tube Y is a required field' ) . should ( 'exist' )
306
306
cy . get ( "input[name='wellYDimension']" ) . type ( '10' ) . blur ( )
307
- cy . contains ( 'Well Y is a required field' ) . should ( 'not.exist' )
307
+ cy . contains ( 'Tube Y is a required field' ) . should ( 'not.exist' )
308
308
} )
309
309
310
310
it ( 'tests well bottom shape and depth' , ( ) => {
@@ -347,9 +347,9 @@ context('Tubes and Block', () => {
347
347
cy . contains ( 'close' ) . click ( { force : true } )
348
348
349
349
// Brand info
350
- cy . contains ( 'Brand is required' ) . should ( 'exist' )
350
+ cy . contains ( 'Brand is a required field ' ) . should ( 'exist' )
351
351
cy . get ( "input[name='brand']" ) . type ( 'TestPro' )
352
- cy . contains ( 'Brand is required' ) . should ( 'not.exist' )
352
+ cy . contains ( 'Brand is a required field ' ) . should ( 'not.exist' )
353
353
cy . get ( "input[name='brandId']" ) . type ( '001' )
354
354
355
355
// File info
@@ -361,7 +361,7 @@ context('Tubes and Block', () => {
361
361
)
362
362
363
363
// Test pipette
364
- cy . contains ( 'Test Pipette is required' ) . should ( 'exist' )
364
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'exist' )
365
365
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
366
366
cy . get ( 'label' )
367
367
. contains ( 'Test Pipette' )
@@ -371,7 +371,7 @@ context('Tubes and Block', () => {
371
371
cy . get ( '*[class^="Dropdown__option_label"]' )
372
372
. contains ( / P 1 0 .* S i n g l e - C h a n n e l .* G E N 1 / )
373
373
. click ( )
374
- cy . contains ( 'Test Pipette is required' ) . should ( 'not.exist' )
374
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'not.exist' )
375
375
376
376
// All fields present
377
377
cy . get ( 'button[class*="_export_button_"]' ) . click ( { force : true } )
@@ -536,9 +536,9 @@ context('Tubes and Block', () => {
536
536
cy . contains ( 'close' ) . click ( { force : true } )
537
537
538
538
// Brand info
539
- cy . contains ( 'Brand is required' ) . should ( 'exist' )
539
+ cy . contains ( 'Brand is a required field ' ) . should ( 'exist' )
540
540
cy . get ( "input[name='brand']" ) . type ( 'TestPro' )
541
- cy . contains ( 'Brand is required' ) . should ( 'not.exist' )
541
+ cy . contains ( 'Brand is a required field ' ) . should ( 'not.exist' )
542
542
cy . get ( "input[name='brandId']" ) . type ( '001' )
543
543
544
544
// File info
@@ -550,7 +550,7 @@ context('Tubes and Block', () => {
550
550
)
551
551
552
552
// Test pipette
553
- cy . contains ( 'Test Pipette is required' ) . should ( 'exist' )
553
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'exist' )
554
554
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
555
555
cy . get ( 'label' )
556
556
. contains ( 'Test Pipette' )
@@ -560,7 +560,7 @@ context('Tubes and Block', () => {
560
560
cy . get ( '*[class^="Dropdown__option_label"]' )
561
561
. contains ( / P 1 0 .* S i n g l e - C h a n n e l .* G E N 1 / )
562
562
. click ( )
563
- cy . contains ( 'Test Pipette is required' ) . should ( 'not.exist' )
563
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'not.exist' )
564
564
565
565
// All fields present
566
566
cy . get ( 'button[class*="_export_button_"]' ) . click ( { force : true } )
@@ -721,9 +721,9 @@ context('Tubes and Block', () => {
721
721
cy . contains ( 'close' ) . click ( { force : true } )
722
722
723
723
// Brand info
724
- cy . contains ( 'Brand is required' ) . should ( 'exist' )
724
+ cy . contains ( 'Brand is a required field ' ) . should ( 'exist' )
725
725
cy . get ( "input[name='brand']" ) . type ( 'TestPro' )
726
- cy . contains ( 'Brand is required' ) . should ( 'not.exist' )
726
+ cy . contains ( 'Brand is a required field ' ) . should ( 'not.exist' )
727
727
cy . get ( "input[name='brandId']" ) . type ( '001' )
728
728
729
729
// File info
@@ -735,7 +735,7 @@ context('Tubes and Block', () => {
735
735
)
736
736
737
737
// Test pipette
738
- cy . contains ( 'Test Pipette is required' ) . should ( 'exist' )
738
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'exist' )
739
739
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
740
740
cy . get ( 'label' )
741
741
. contains ( 'Test Pipette' )
@@ -745,7 +745,7 @@ context('Tubes and Block', () => {
745
745
cy . get ( '*[class^="Dropdown__option_label"]' )
746
746
. contains ( / P 1 0 .* S i n g l e - C h a n n e l .* G E N 1 / )
747
747
. click ( )
748
- cy . contains ( 'Test Pipette is required' ) . should ( 'not.exist' )
748
+ cy . contains ( 'Test Pipette is a required field ' ) . should ( 'not.exist' )
749
749
750
750
// All fields present
751
751
cy . get ( 'button[class*="_export_button_"]' ) . click ( { force : true } )
0 commit comments