From 0bf47a2fc44936f4dc0cf3ab00098e34ae335dec Mon Sep 17 00:00:00 2001 From: Katrin Yordanova Date: Wed, 18 May 2022 18:30:15 +0300 Subject: [PATCH] Add cypress ids to auth/templates --- .../templates/authorized-clients.html.tpl | 7 ++- .../assets/templates/change-password.html.tpl | 26 +++++++++-- .../assets/templates/create-password.html.tpl | 22 +++++++-- auth/assets/templates/inc_footer.html.tpl | 2 +- auth/assets/templates/inc_header.html.tpl | 4 +- auth/assets/templates/inc_nav.html.tpl | 46 ++++++++++++++++--- auth/assets/templates/login.html.tpl | 29 +++++++++--- auth/assets/templates/logout.html.tpl | 6 ++- auth/assets/templates/mfa-totp.html.tpl | 11 ++++- .../oauth2-authorize-client.html.tpl | 4 +- .../password-reset-requested.html.tpl | 6 ++- auth/assets/templates/profile.html.tpl | 20 ++++++-- .../templates/request-password-reset.html.tpl | 18 ++++++-- auth/assets/templates/reset-password.html.tpl | 16 +++++-- auth/assets/templates/security.html.tpl | 43 +++++++++++++++-- auth/assets/templates/sessions.html.tpl | 1 + auth/assets/templates/signup.html.tpl | 16 ++++--- 17 files changed, 223 insertions(+), 54 deletions(-) diff --git a/auth/assets/templates/authorized-clients.html.tpl b/auth/assets/templates/authorized-clients.html.tpl index af6d9f80e..d7a13bcf4 100644 --- a/auth/assets/templates/authorized-clients.html.tpl +++ b/auth/assets/templates/authorized-clients.html.tpl @@ -22,6 +22,7 @@ + diff --git a/auth/assets/templates/create-password.html.tpl b/auth/assets/templates/create-password.html.tpl index 2281a7c2c..ac7582180 100644 --- a/auth/assets/templates/create-password.html.tpl +++ b/auth/assets/templates/create-password.html.tpl @@ -8,7 +8,11 @@ > {{ .csrfField }} {{ if .form.error }} -
+ aria-label="{{ tr "create-password.template.form.password.label" }}" + >
- +
diff --git a/auth/assets/templates/inc_footer.html.tpl b/auth/assets/templates/inc_footer.html.tpl index 317b24b29..30cacedb3 100644 --- a/auth/assets/templates/inc_footer.html.tpl +++ b/auth/assets/templates/inc_footer.html.tpl @@ -1,7 +1,7 @@ {{ template "inc_toasts.html.tpl" .alerts }} diff --git a/auth/assets/templates/inc_header.html.tpl b/auth/assets/templates/inc_header.html.tpl index e27e0bd4e..714d3ec74 100644 --- a/auth/assets/templates/inc_header.html.tpl +++ b/auth/assets/templates/inc_header.html.tpl @@ -19,9 +19,9 @@
{{ tr "inc_header.logged-in-as" }} - {{ coalesce .user.Name .user.Handle .user.Email }} + {{ coalesce .user.Name .user.Handle .user.Email }} | - {{ tr "inc_header.logout" }} + {{ tr "inc_header.logout" }}
{{ end }}
diff --git a/auth/assets/templates/inc_nav.html.tpl b/auth/assets/templates/inc_nav.html.tpl index 70b23553a..3814ec6d1 100644 --- a/auth/assets/templates/inc_nav.html.tpl +++ b/auth/assets/templates/inc_nav.html.tpl @@ -1,16 +1,24 @@
- {{ $activeNav := default "" .activeNav }} {{ if not .hideNav }} {{ if and .user .client }}
- + {{ tr "inc_nav.template.authorize-client" }} {{ .client.Name }} @@ -18,16 +26,40 @@ {{ else if .user }} {{ end }} diff --git a/auth/assets/templates/login.html.tpl b/auth/assets/templates/login.html.tpl index 04616c18b..dccead220 100644 --- a/auth/assets/templates/login.html.tpl +++ b/auth/assets/templates/login.html.tpl @@ -9,7 +9,11 @@ > {{ .csrfField }} {{ if .form.error }} - diff --git a/auth/assets/templates/logout.html.tpl b/auth/assets/templates/logout.html.tpl index c0c5a03f1..5dd32411c 100644 --- a/auth/assets/templates/logout.html.tpl +++ b/auth/assets/templates/logout.html.tpl @@ -2,7 +2,11 @@
{{ if .form.error }} -