From b2bf80a7d74cae0d62cba7a1c7d79a01b117aa70 Mon Sep 17 00:00:00 2001 From: Israel Arcos Date: Mon, 29 Apr 2024 12:54:40 -0500 Subject: [PATCH 1/2] feat(auth): enable gen2 e2e tests --- .github/integ-config/integ-all.yml | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/.github/integ-config/integ-all.yml b/.github/integ-config/integ-all.yml index 262b59a4b44..a81a9cea17b 100644 --- a/.github/integ-config/integ-all.yml +++ b/.github/integ-config/integ-all.yml @@ -512,6 +512,72 @@ tests: spec: sign-in-with-oauth browser: [chrome] + # AUTH GEN2 + - test_name: integ_react_javascript_authentication + desc: 'React Authentication' + framework: react + category: auth + sample_name: [javascript-auth] + spec: functional-auth + browser: *minimal_browser_list + backend: gen2 + - test_name: integ_react_auth_1_guest_to_authenticated_user + desc: 'Guest to Authenticated User' + framework: react + category: auth + sample_name: [guest-to-auth-user] + spec: guest-to-auth-user + browser: *minimal_browser_list + backend: gen2 + - test_name: integ_react_typescript_authentication + desc: 'React Typescript Authentication' + framework: react + category: auth + sample_name: [typescript-auth] + spec: functional-auth + browser: *minimal_browser_list + backend: gen2 + - test_name: integ_react_auth_2_sign_in_after_sign_up + desc: 'Sign In after Sign Up' + framework: react + category: auth + sample_name: [auto-signin-after-signup] + spec: auto-signin-after-signup + browser: *minimal_browser_list + backend: gen2 + - test_name: integ_react_device_tracking + desc: 'cognito-device-tracking' + framework: react + category: auth + sample_name: [device-tracking] + spec: device-tracking + browser: *minimal_browser_list + backend: gen2 + - test_name: integ_react_delete_user + desc: 'delete-user' + framework: react + category: auth + sample_name: [delete-user] + spec: delete-user + browser: *minimal_browser_list + backend: gen2 + - test_name: integ_next_auth_authenticator_and_ssr_page + desc: 'Authenticator and SSR page' + framework: next + category: auth + sample_name: [auth-ssr] + spec: auth-ssr + browser: [chrome] + backend: gen2 + - test_name: integ_next_auth_authenticator_and_rsc_page + desc: 'Authenticator and RSC page' + framework: next + category: auth + sample_name: [auth-rsc] + spec: auth-rsc + browser: [chrome] + backend: gen2 + # DISABLED Angular/Vue tests: # TODO: delete tests or add custom ui logic to support them. From 38e20c8371536373c879df09cbe92d7229439e91 Mon Sep 17 00:00:00 2001 From: Israel Arcos Date: Tue, 30 Apr 2024 14:52:56 -0500 Subject: [PATCH 2/2] chore: enable oauth test --- .github/integ-config/integ-all.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/integ-config/integ-all.yml b/.github/integ-config/integ-all.yml index a81a9cea17b..4b6c1b7408f 100644 --- a/.github/integ-config/integ-all.yml +++ b/.github/integ-config/integ-all.yml @@ -513,7 +513,7 @@ tests: browser: [chrome] # AUTH GEN2 - - test_name: integ_react_javascript_authentication + - test_name: integ_react_javascript_authentication_gen2 desc: 'React Authentication' framework: react category: auth @@ -521,7 +521,7 @@ tests: spec: functional-auth browser: *minimal_browser_list backend: gen2 - - test_name: integ_react_auth_1_guest_to_authenticated_user + - test_name: integ_react_auth_1_guest_to_authenticated_user_gen2 desc: 'Guest to Authenticated User' framework: react category: auth @@ -529,7 +529,7 @@ tests: spec: guest-to-auth-user browser: *minimal_browser_list backend: gen2 - - test_name: integ_react_typescript_authentication + - test_name: integ_react_typescript_authentication_gen2 desc: 'React Typescript Authentication' framework: react category: auth @@ -537,7 +537,7 @@ tests: spec: functional-auth browser: *minimal_browser_list backend: gen2 - - test_name: integ_react_auth_2_sign_in_after_sign_up + - test_name: integ_react_auth_2_sign_in_after_sign_up_gen2 desc: 'Sign In after Sign Up' framework: react category: auth @@ -545,7 +545,7 @@ tests: spec: auto-signin-after-signup browser: *minimal_browser_list backend: gen2 - - test_name: integ_react_device_tracking + - test_name: integ_react_device_tracking_gen2 desc: 'cognito-device-tracking' framework: react category: auth @@ -553,7 +553,7 @@ tests: spec: device-tracking browser: *minimal_browser_list backend: gen2 - - test_name: integ_react_delete_user + - test_name: integ_react_delete_user_gen2 desc: 'delete-user' framework: react category: auth @@ -561,7 +561,7 @@ tests: spec: delete-user browser: *minimal_browser_list backend: gen2 - - test_name: integ_next_auth_authenticator_and_ssr_page + - test_name: integ_next_auth_authenticator_and_ssr_page_gen2 desc: 'Authenticator and SSR page' framework: next category: auth @@ -569,7 +569,7 @@ tests: spec: auth-ssr browser: [chrome] backend: gen2 - - test_name: integ_next_auth_authenticator_and_rsc_page + - test_name: integ_next_auth_authenticator_and_rsc_page_gen2 desc: 'Authenticator and RSC page' framework: next category: auth @@ -577,6 +577,15 @@ tests: spec: auth-rsc browser: [chrome] backend: gen2 + - test_name: integ_next_sign_in_with_oauth_gen2 + desc: 'Sign-in with the OAuth flow' + framework: next + category: auth + sample_name: [sign-in-with-oauth] + spec: sign-in-with-oauth + browser: [chrome] + backend: gen2 + # DISABLED Angular/Vue tests: # TODO: delete tests or add custom ui logic to support them.