Skip to content

Commit

Permalink
Added new CDN url + updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Dec 9, 2024
1 parent e765aec commit 677c0ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion internal/cli/prompts_custom_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 0 additions & 4 deletions internal/cli/universal_login_customize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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.",
Expand Down
1 change: 0 additions & 1 deletion test/integration/fixtures/update-ul-prompts-login.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions test/integration/universal-login-test-cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 677c0ab

Please sign in to comment.