From c7cbc7a4c8a6f406f6f88436a57ebaa59bd5bcbc Mon Sep 17 00:00:00 2001 From: Carlos Quintana <74399022+cquintana92@users.noreply.github.com> Date: Fri, 4 Apr 2025 12:36:59 +0200 Subject: [PATCH] chore: update error message alias custom domain (#2432) --- app/dashboard/views/custom_alias.py | 2 +- tests/dashboard/test_custom_alias.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/dashboard/views/custom_alias.py b/app/dashboard/views/custom_alias.py index b8f1e390..9a3912b1 100644 --- a/app/dashboard/views/custom_alias.py +++ b/app/dashboard/views/custom_alias.py @@ -126,7 +126,7 @@ def custom_alias(): ) custom_domain = domain_deleted_alias.domain flash( - f"You have deleted this alias before. You can restore it on " + f"You have deleted this alias before. If you want to re-create it, please delete it from " f"{custom_domain.domain} 'Deleted Alias' page", "error", ) diff --git a/tests/dashboard/test_custom_alias.py b/tests/dashboard/test_custom_alias.py index 72226db1..5743127f 100644 --- a/tests/dashboard/test_custom_alias.py +++ b/tests/dashboard/test_custom_alias.py @@ -364,9 +364,7 @@ def test_add_alias_in_custom_domain_trash(flask_client): follow_redirects=True, ) assert r.status_code == 200 - assert "You have deleted this alias before. You can restore it on" in r.get_data( - True - ) + assert "You have deleted this alias before" in r.get_data(True) def test_too_many_requests(flask_client):