diff --git a/app/templates/partials/nav/account_menu_mobile.html b/app/templates/partials/nav/account_menu_mobile.html index 6a8694b87b..c0a2047bac 100644 --- a/app/templates/partials/nav/account_menu_mobile.html +++ b/app/templates/partials/nav/account_menu_mobile.html @@ -42,9 +42,10 @@ src="{{ asset_url('images/close.svg') }}" class="object-none object-center w-8 h-8 m-auto" alt="" /> -
+ {{ _('close') }} -
+ + {{ _('navigation')}} diff --git a/app/templates/partials/nav/gc_header_nav_mobile.html b/app/templates/partials/nav/gc_header_nav_mobile.html index 0c950cd8b9..5ad295a2ab 100644 --- a/app/templates/partials/nav/gc_header_nav_mobile.html +++ b/app/templates/partials/nav/gc_header_nav_mobile.html @@ -24,7 +24,7 @@ alt="" src="{{ asset_url('images/close.svg') }}" class="object-none object-center w-8 h-8 m-auto"/> -

{{ _('close') }}

+ {{ _('close') }} {{ _('navigation')}} diff --git a/app/translations/csv/fr.csv b/app/translations/csv/fr.csv index fe085f49ac..0dc3305b5e 100644 --- a/app/translations/csv/fr.csv +++ b/app/translations/csv/fr.csv @@ -1849,3 +1849,4 @@ "Select a file","Sélectionner un fichier" "There's a custom logo at the top left and no logo at the bottom.","Un logo personnalisé apparaît en haut à gauche et aucun logo n’apparaît en bas." "Email preview","Aperçu du courriel" +"navigation","la navigation" \ No newline at end of file diff --git a/tests/app/main/views/test_manage_users.py b/tests/app/main/views/test_manage_users.py index 8cded21bdd..64bfc79725 100644 --- a/tests/app/main/views/test_manage_users.py +++ b/tests/app/main/views/test_manage_users.py @@ -287,8 +287,7 @@ def test_should_show_you_should_have_at_least_two_members_when_only_one_present_ mock_get_security_keys, ): page = client_request.get("main.manage_users", service_id=service_one["id"]) - assert len(page.find_all("p")) == 2 - assert page.find_all("p")[1].text.strip() == "You should have at least two team members who can manage settings." + assert "You should have at least two team members who can manage settings." in page.text def test_does_not_show_you_should_have_at_least_two_members_only_when_two_members_present( @@ -310,8 +309,8 @@ def test_does_not_show_you_should_have_at_least_two_members_only_when_two_member mocker.patch("app.user_api_client.get_user", return_value=current_user) mocker.patch("app.models.user.Users.client", return_value=[current_user, other_user]) page = client_request.get("main.manage_users", service_id=service_one["id"]) - assert len(page.find_all("p")) == 1 - assert page.find_all("p")[0].text.strip() != "You should have at least two team members who can manage settings." + + assert "You should have at least two team members who can manage settings." not in page.text def test_does_not_show_you_should_have_at_least_two_members_when_user_does_not_have_permissions( @@ -330,8 +329,8 @@ def test_does_not_show_you_should_have_at_least_two_members_when_user_does_not_h client_request.login(current_user) page = client_request.get("main.manage_users", service_id=service_one["id"]) - assert len(page.find_all("p")) == 1 - assert page.find_all("p")[0].text.strip() != "You should have at least two team members who can manage settings." + + assert "You should have at least two team members who can manage settings." not in page.text @pytest.mark.parametrize( diff --git a/tests/app/main/views/test_verify.py b/tests/app/main/views/test_verify.py index 688d3238b3..df1dd50ed1 100644 --- a/tests/app/main/views/test_verify.py +++ b/tests/app/main/views/test_verify.py @@ -25,8 +25,7 @@ def test_should_return_verify_template( page = BeautifulSoup(response.data.decode("utf-8"), "html.parser") assert page.h1.text == "Check your phone messages" - message = page.find_all("p")[1].text - assert message == "We’ve sent you a text message with a security code." + assert "We’ve sent you a text message with a security code." in page.text def test_should_redirect_to_welcome_screen_when_two_factor_code_is_correct(