@@ -414,8 +414,7 @@ export function addS3AndAuthWithAuthOnlyAccess(cwd: string): Promise<void> {
414
414
. wait ( 'Who should have access' )
415
415
. sendCarriageReturn ( ) // Auth users only
416
416
. wait ( 'What kind of access do you want for Authenticated users?' )
417
- . sendCtrlA ( )
418
- . sendCarriageReturn ( )
417
+ . selectAll ( )
419
418
. wait ( 'Do you want to add a Lambda Trigger for your S3 Bucket' )
420
419
. sendConfirmNo ( )
421
420
. sendEof ( )
@@ -442,11 +441,9 @@ export function addS3WithGuestAccess(cwd: string): Promise<void> {
442
441
. sendKeyDown ( )
443
442
. sendCarriageReturn ( ) // Auth and guest users
444
443
. wait ( 'What kind of access do you want for Authenticated users?' )
445
- . sendCtrlA ( )
446
- . sendCarriageReturn ( )
444
+ . selectAll ( )
447
445
. wait ( 'What kind of access do you want for Guest users?' )
448
- . sendCtrlA ( )
449
- . sendCarriageReturn ( )
446
+ . selectAll ( )
450
447
. wait ( 'Do you want to add a Lambda Trigger for your S3 Bucket' )
451
448
. sendConfirmNo ( )
452
449
. sendEof ( )
@@ -474,14 +471,11 @@ export function addS3WithGroupAccess(cwd: string, settings: any): Promise<void>
474
471
. sendKeyDown ( )
475
472
. sendCarriageReturn ( ) // Individual groups
476
473
. wait ( 'Select groups' )
477
- . sendCtrlA ( ) // select all groups
478
- . sendCarriageReturn ( )
474
+ . selectAll ( ) // select all groups
479
475
. wait ( `What kind of access do you want for ${ settings ?. userGroup1 ?? 'Admins' } users` ) // for <UserGroup1> users?
480
- . sendCtrlA ( ) // Select all permissions
481
- . sendCarriageReturn ( )
476
+ . selectAll ( ) // Select all permissions
482
477
. wait ( `What kind of access do you want for ${ settings ?. userGroup2 ?? 'Users' } users` ) // for <UserGroup2> users?
483
- . sendCtrlA ( ) // Select all permissions
484
- . sendCarriageReturn ( )
478
+ . selectAll ( ) // Select all permissions
485
479
. wait ( 'Do you want to add a Lambda Trigger for your S3 Bucket' )
486
480
. sendConfirmNo ( )
487
481
. sendEof ( )
@@ -668,11 +662,9 @@ export function addS3Storage(projectDir: string): Promise<void> {
668
662
. send ( ' ' ) //Auth and guest
669
663
. sendCarriageReturn ( )
670
664
. wait ( 'What kind of access do you want for Authenticated users?' ) //Auth
671
- . sendCtrlA ( )
672
- . sendCarriageReturn ( )
665
+ . selectAll ( )
673
666
. wait ( 'What kind of access do you want for Guest users?' ) //Guest
674
- . sendCtrlA ( )
675
- . sendCarriageReturn ( )
667
+ . selectAll ( )
676
668
. wait ( 'Do you want to add a Lambda Trigger for your S3 Bucket?' )
677
669
. sendConfirmNo ( )
678
670
. run ( ( err : Error ) => {
@@ -698,8 +690,7 @@ export function addS3StorageWithAuthOnly(projectDir: string): Promise<void> {
698
690
. wait ( 'Who should have access:' )
699
691
. sendCarriageReturn ( ) //Auth users only
700
692
. wait ( 'What kind of access do you want for Authenticated users?' ) //Auth
701
- . sendCtrlA ( )
702
- . sendCarriageReturn ( )
693
+ . selectAll ( )
703
694
. wait ( 'Do you want to add a Lambda Trigger for your S3 Bucket?' )
704
695
. sendConfirmNo ( )
705
696
. run ( ( err : Error ) => {
@@ -746,9 +737,9 @@ export function addS3StorageWithSettings(projectDir: string, settings: AddStorag
746
737
747
738
chain . wait ( 'Who should have access:' ) . sendKeyDown ( ) . send ( ' ' ) . sendCarriageReturn ( ) ;
748
739
749
- chain . wait ( 'What kind of access do you want for Authenticated users?' ) . sendCtrlA ( ) . sendCarriageReturn ( ) ;
740
+ chain . wait ( 'What kind of access do you want for Authenticated users?' ) . selectAll ( ) ;
750
741
751
- chain . wait ( 'What kind of access do you want for Guest users?' ) . sendCtrlA ( ) . sendCarriageReturn ( ) ;
742
+ chain . wait ( 'What kind of access do you want for Guest users?' ) . selectAll ( ) ;
752
743
753
744
chain . wait ( 'Do you want to add a Lambda Trigger for your S3 Bucket?' ) . sendConfirmNo ( ) ;
754
745
0 commit comments