From 677c0ab16f18b268d5175f9b11eedaa232464dd9 Mon Sep 17 00:00:00 2001 From: Rajat Bajaj Date: Mon, 9 Dec 2024 20:00:13 +0530 Subject: [PATCH] Added new CDN url + updated tests --- internal/cli/prompts_custom_text.go | 2 +- internal/cli/universal_login_customize_test.go | 4 ---- test/integration/fixtures/update-ul-prompts-login.json | 1 - test/integration/universal-login-test-cases.yaml | 6 +++--- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/internal/cli/prompts_custom_text.go b/internal/cli/prompts_custom_text.go index c201c1f27..5832f6ee8 100644 --- a/internal/cli/prompts_custom_text.go +++ b/internal/cli/prompts_custom_text.go @@ -15,7 +15,7 @@ import ( const ( textDocsKey = "__doc__" textDocsURL = "https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts" - textLocalesURL = "https://cdn.auth0.com/ulp/react-components/1.66.3/languages/%s/prompts.json" + textLocalesURL = "https://cdn.auth0.com/ulp/react-components/1.102.1/languages/%s/prompts.json" textLanguageDefault = "en" ) diff --git a/internal/cli/universal_login_customize_test.go b/internal/cli/universal_login_customize_test.go index 703f717e2..a4bc8d94f 100644 --- a/internal/cli/universal_login_customize_test.go +++ b/internal/cli/universal_login_customize_test.go @@ -397,7 +397,6 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { "forgotPasswordText": "Forgot password?", "hidePasswordText": "Hide password", "invalid-connection": "Invalid connection", - "invalid-email-format": "Email is not valid.", "invitationDescription": "Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.", "invitationTitle": "You've Been Invited!", "ip-blocked": "We have detected suspicious login behavior and further attempts will be blocked. Please contact the administrator.", @@ -604,7 +603,6 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { "forgotPasswordText": "Forgot password?", "hidePasswordText": "Hide password", "invalid-connection": "Invalid connection", - "invalid-email-format": "Email is not valid.", "invitationDescription": "Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.", "invitationTitle": "You've Been Invited!", "ip-blocked": "We have detected suspicious login behavior and further attempts will be blocked. Please contact the administrator.", @@ -813,7 +811,6 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { "forgotPasswordText": "Forgot password?", "hidePasswordText": "Hide password", "invalid-connection": "Invalid connection", - "invalid-email-format": "Email is not valid.", "invitationDescription": "Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.", "invitationTitle": "You've Been Invited!", "ip-blocked": "We have detected suspicious login behavior and further attempts will be blocked. Please contact the administrator.", @@ -1102,7 +1099,6 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { "forgotPasswordText": "Forgot password?", "hidePasswordText": "Hide password", "invalid-connection": "Invalid connection", - "invalid-email-format": "Email is not valid.", "invitationDescription": "Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.", "invitationTitle": "You've Been Invited!", "ip-blocked": "We have detected suspicious login behavior and further attempts will be blocked. Please contact the administrator.", diff --git a/test/integration/fixtures/update-ul-prompts-login.json b/test/integration/fixtures/update-ul-prompts-login.json index 473b4e0c5..28f9a1f71 100644 --- a/test/integration/fixtures/update-ul-prompts-login.json +++ b/test/integration/fixtures/update-ul-prompts-login.json @@ -22,7 +22,6 @@ "showPasswordText": "Show password", "hidePasswordText": "Hide password", "wrong-credentials": "Wrong username or password", - "invalid-email-format": "Email is not valid.", "wrong-email-credentials": "Wrong email or password", "custom-script-error-code": "Something went wrong, please try again later.", "auth0-users-validation": "Something went wrong, please try again later", diff --git a/test/integration/universal-login-test-cases.yaml b/test/integration/universal-login-test-cases.yaml index 6b3d4eee6..2c6ae4fd1 100644 --- a/test/integration/universal-login-test-cases.yaml +++ b/test/integration/universal-login-test-cases.yaml @@ -86,9 +86,9 @@ tests: contains: - "Failed to fetch the Universal Login template data: this feature requires at least one custom domain to be set and verified for the tenant, use 'auth0 domains create' to create one and 'auth0 domains verify' to have it verified" -# 010 - update universal login branding prompts (login): -# command: cat ./test/integration/fixtures/update-ul-prompts-login.json | auth0 ul prompts update login -# exit-code: 0 + 010 - update universal login branding prompts (login): + command: cat ./test/integration/fixtures/update-ul-prompts-login.json | auth0 ul prompts update login + exit-code: 0 011 - update universal login branding prompts (mfa-push): command: cat ./test/integration/fixtures/update-ul-prompts-mfa-push.json | auth0 ul prompts update mfa-push