@@ -440,8 +440,10 @@ describe("Batch sample creation", () => {
440
440
it ( "uses the template id, name, and date" , ( ) => {
441
441
cy . contains ( "Add batch of items" ) . click ( ) ;
442
442
getBatchTemplateCell ( "id" , "input.form-control" ) . type ( "test_{{}#{}}" ) ;
443
- getBatchTemplateCell ( "name" ) . type ( "this is the test sample #{{}#{}}" ) ;
444
- getBatchTemplateCell ( "date" ) . type ( "1980-02-01T05:35" ) ;
443
+
444
+ getBatchTemplateCell ( "name" , "input.form-control" ) . type ( "this is the test sample #{{}#{}}" ) ;
445
+
446
+ getBatchTemplateCell ( "date" , "input.form-control" ) . type ( "1980-02-01T05:35" ) ;
445
447
446
448
cy . findByLabelText ( "start counting {#} at:" ) . clear ( ) . type ( 5 ) ;
447
449
@@ -463,8 +465,8 @@ describe("Batch sample creation", () => {
463
465
it ( "uses the template id, name, date, copyFrom, and components" , ( ) => {
464
466
cy . contains ( "Add batch of items" ) . click ( ) ;
465
467
getBatchTemplateCell ( "id" , "input.form-control" ) . type ( "test_{{}#{}}" ) ;
466
- getBatchTemplateCell ( "name" ) . type ( "this is the test sample #{#}" ) ;
467
- getBatchTemplateCell ( "date" ) . type ( "1980-02-01T23:59" ) ;
468
+ getBatchTemplateCell ( "name" , "input.form-control" ) . type ( "this is the test sample #{#}" ) ;
469
+ getBatchTemplateCell ( "date" , "input.form-control" ) . type ( "1980-02-01T23:59" ) ;
468
470
469
471
// select copyFrom sample, check that it is applied correctly
470
472
getBatchTemplateCell ( "copy-from" , ".vs__search" ) . type ( "baseA" ) ;
@@ -764,9 +766,9 @@ describe("Batch cell creation", () => {
764
766
765
767
cy . get ( "[data-testid=batch-modal-container]" ) . findByLabelText ( "Type:" ) . select ( "cell" ) ;
766
768
767
- getBatchTemplateCell ( "id" , "input" ) . eq ( 0 ) . type ( "cell_{{}#{}}" ) ;
768
- getBatchTemplateCell ( "name" , "input" ) . type ( "this is the test cell #{{}#{}}" ) ;
769
- getBatchTemplateCell ( "date" , "input" ) . type ( "1980-02-01T23:59" ) ;
769
+ getBatchTemplateCell ( "id" , "input.form-control " ) . eq ( 0 ) . type ( "cell_{{}#{}}" ) ;
770
+ getBatchTemplateCell ( "name" , "input.form-control " ) . type ( "this is the test cell #{{}#{}}" ) ;
771
+ getBatchTemplateCell ( "date" , "input.form-control " ) . type ( "1980-02-01T23:59" ) ;
770
772
771
773
// select copyFrom sample, check that it is applied correctly
772
774
getBatchTemplateCell ( "copy-from" , ".vs__search" ) . type ( "cell_B" ) ;
0 commit comments