File tree Expand file tree Collapse file tree 4 files changed +56
-3
lines changed Expand file tree Collapse file tree 4 files changed +56
-3
lines changed Original file line number Diff line number Diff line change @@ -877,3 +877,48 @@ tests:
877
877
sample_name : auth-gql-storage
878
878
yarn_script : ci:node-env-test
879
879
node_versions : ['18.x', '20.x', '22.x']
880
+ - test_name : integ_next_mfa_req_email
881
+ desc : ' mfa required with email sign in attribute'
882
+ framework : next
883
+ category : auth
884
+ sample_name : [mfa]
885
+ spec : mfa-req-email
886
+ browser : [chrome]
887
+ env :
888
+ NEXT_PUBLIC_BACKEND_CONFIG : mfa-req-email
889
+ - test_name : integ_next_mfa_req_phone
890
+ desc : ' mfa required with phone sign in attribute'
891
+ framework : next
892
+ category : auth
893
+ sample_name : [mfa]
894
+ spec : mfa-req-phone
895
+ browser : [chrome]
896
+ env :
897
+ NEXT_PUBLIC_BACKEND_CONFIG : mfa-req-phone
898
+ - test_name : integ_next_mfa_opt_email
899
+ desc : ' mfa optional with email sign in attribute'
900
+ framework : next
901
+ category : auth
902
+ sample_name : [mfa]
903
+ spec : mfa-opt-email
904
+ browser : [chrome]
905
+ env :
906
+ NEXT_PUBLIC_BACKEND_CONFIG : mfa-opt-email
907
+ - test_name : integ_next_mfa_opt_phone
908
+ desc : ' mfa optional with phone sign in attribute'
909
+ framework : next
910
+ category : auth
911
+ sample_name : [mfa]
912
+ spec : mfa-opt-phone
913
+ browser : [chrome]
914
+ env :
915
+ NEXT_PUBLIC_BACKEND_CONFIG : mfa-opt-phone
916
+ - test_name : integ_next_mfa_setup
917
+ desc : ' mfa setup sign in flow'
918
+ framework : next
919
+ category : auth
920
+ sample_name : [mfa]
921
+ spec : mfa-setup
922
+ browser : [chrome]
923
+ env :
924
+ NEXT_PUBLIC_BACKEND_CONFIG : mfa-setup
Original file line number Diff line number Diff line change 40
40
node_versions :
41
41
required : false
42
42
type : string
43
+ env :
44
+ required : false
45
+ type : string
43
46
44
47
env :
45
48
AMPLIFY_DIR : /home/runner/work/amplify-js/amplify-js/amplify-js
91
94
E2E_RETRY_COUNT : ${{ inputs.retry_count }}
92
95
E2E_TEST_NAME : ${{ inputs.test_name }}
93
96
E2E_YARN_SCRIPT : ${{ inputs.yarn_script }}
97
+ E2E_ENV : ${{ inputs.env }}
94
98
run : |
95
99
if [ -z "$E2E_YARN_SCRIPT" ]; then
96
100
../amplify-js/scripts/retry-yarn-script.sh -s \
@@ -102,7 +106,8 @@ jobs:
102
106
$E2E_BROWSER \
103
107
dev \
104
108
$E2E_BACKEND \
105
- $E2E_AMPLIFY_JS_DIR" \
109
+ $E2E_AMPLIFY_JS_DIR \
110
+ --env $(echo $E2E_ENV | jq -r 'tostring')" \
106
111
$E2E_YARN_SCRIPT \
107
112
-n $E2E_RETRY_COUNT
108
113
else
@@ -122,6 +127,7 @@ jobs:
122
127
E2E_RETRY_COUNT : ${{ inputs.retry_count }}
123
128
E2E_TEST_NAME : ${{ inputs.test_name }}
124
129
E2E_YARN_SCRIPT : ${{ inputs.yarn_script }}
130
+ E2E_ENV : ${{ inputs.env }}
125
131
run : |
126
132
if [ -z "$E2E_YARN_SCRIPT" ]; then
127
133
../amplify-js/scripts/retry-yarn-script.sh -s \
@@ -133,7 +139,8 @@ jobs:
133
139
$E2E_BROWSER \
134
140
prod \
135
141
$E2E_BACKEND \
136
- $E2E_AMPLIFY_JS_DIR" \
142
+ $E2E_AMPLIFY_JS_DIR \
143
+ --env $(echo $E2E_ENV | jq -r 'tostring')" \
137
144
$E2E_YARN_SCRIPT \
138
145
-n $E2E_RETRY_COUNT
139
146
else
Original file line number Diff line number Diff line change 45
45
retry_count : ${{ matrix.integ-config.retry_count || 3 }}
46
46
yarn_script : ${{ matrix.integ-config.yarn_script || '' }}
47
47
node_versions : ${{ toJSON(matrix.integ-config.node_versions) || '[""]' }}
48
+ env : ${{ matrix.integ-config.env && toJSON(matrix.integ-config.env) || '{}' }}
48
49
49
50
# e2e-test-runner-headless:
50
51
# name: E2E test runnner_headless
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ concurrency:
8
8
on :
9
9
push :
10
10
branches :
11
- - replace-with-your-branch
11
+ - test/email-mfa-integ
12
12
13
13
jobs :
14
14
e2e :
You can’t perform that action at this time.
0 commit comments