diff --git a/.gitignore b/.gitignore index 68327a5af..9aeab02f8 100644 --- a/.gitignore +++ b/.gitignore @@ -47,7 +47,10 @@ geckodriver.log tests/cypress/screenshots tests/cypress/videos tests/screenshots -tests/unit/utils/md/data/output.html +tests/unit/utils/markdown/data/output.html +coverage/ +tests/playwright/test-results +playwright-report # Instance files that should not be checked-in instance/development.py diff --git a/funnel/templates/account.html.jinja2 b/funnel/templates/account.html.jinja2 index 90e0bd2c1..e43d9431c 100644 --- a/funnel/templates/account.html.jinja2 +++ b/funnel/templates/account.html.jinja2 @@ -33,11 +33,11 @@
@{{ current_auth.user.username }}
{% else %}- {{ faicon(icon='info-circle', icon_size='body2', baseline=true) }} {% trans %}Add username{% endtrans %} + {{ faicon(icon='info-circle', icon_size='body2', baseline=true) }} {% trans %}Add username{% endtrans %}
{%- endif %} {%- trans %}Go to account{% endtrans %} @@ -91,7 +91,7 @@ href="{{ url_for('account_edit') }}">{% trans %}Edit{% endtrans %} + data-testid="change-password"> {% if user_has_password %} {% trans %}Change password{% endtrans %} {% else %} @@ -100,7 +100,7 @@ @@ -202,7 +202,7 @@ {% endif %} {% trans %}Add an email address{% endtrans %} + href="{{ url_for('add_email') }}" data-testid="add-new-email">{% trans %}Add an email address{% endtrans %} @@ -253,7 +253,7 @@ {% endif %} {% trans %}Add a mobile number{% endtrans %} + href="{{ url_for('add_phone') }}" data-testid="add-new-phone">{% trans %}Add a mobile number{% endtrans %} @@ -386,7 +386,7 @@ diff --git a/funnel/templates/account_formlayout.html.jinja2 b/funnel/templates/account_formlayout.html.jinja2 index 48b894c70..8facf9898 100644 --- a/funnel/templates/account_formlayout.html.jinja2 +++ b/funnel/templates/account_formlayout.html.jinja2 @@ -23,7 +23,7 @@{% trans %}Cookies are required to login. Please enable cookies in your browser’s settings and reload this page{% endtrans %}
-{{ current_auth.user.fullname }}
{% if current_auth.user.username %} @@ -30,7 +30,7 @@{{ title }}
{%- endif -%} diff --git a/funnel/templates/js/comments.js.jinja2 b/funnel/templates/js/comments.js.jinja2 index 4703291d7..355764d56 100644 --- a/funnel/templates/js/comments.js.jinja2 +++ b/funnel/templates/js/comments.js.jinja2 @@ -1,8 +1,8 @@ {% macro comments_tree() %} {% raw %}
{{ gettext('Login to leave a comment') }}
- +{{ gettext('Login to leave a comment') }}
+ {{ gettext('Post a comment…') }}