From c3e703989a87f4deafd77eb644d73af8ef93f110 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 19 Feb 2024 11:15:41 -0300
Subject: better name to links and buttons

---
 packages/demobank-ui/src/pages/admin/AccountList.tsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'packages/demobank-ui/src/pages/admin/AccountList.tsx')

diff --git a/packages/demobank-ui/src/pages/admin/AccountList.tsx b/packages/demobank-ui/src/pages/admin/AccountList.tsx
index 5528b5226..4e3f4afe3 100644
--- a/packages/demobank-ui/src/pages/admin/AccountList.tsx
+++ b/packages/demobank-ui/src/pages/admin/AccountList.tsx
@@ -81,6 +81,7 @@ export function AccountList({
           <div class="mt-4 sm:ml-16 sm:mt-0 sm:flex-none">
             <a
               href={routeCreate.url({})}
+              name="create account"
               type="button"
               class="block rounded-md bg-indigo-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
             >
@@ -128,6 +129,7 @@ export function AccountList({
                         <tr key={idx}>
                           <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">
                             <a
+                              name={`show account ${item.username}`}
                               href={routeShowAccount.url({
                                 account: item.username,
                               })}
@@ -163,6 +165,7 @@ export function AccountList({
                           </td>
                           <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-0">
                             <a
+                              name={`update password ${item.username}`}
                               href={routeUpdatePasswordAccount.url({
                                 account: item.username,
                               })}
@@ -175,6 +178,7 @@ export function AccountList({
                               <Fragment>
 
                                 <a
+                                  name={`show cashout ${item.username}`}
                                   href={routeShowCashoutsAccount.url({
                                     account: item.username,
                                   })}
@@ -187,6 +191,7 @@ export function AccountList({
                               : undefined}
                             {noBalance ? (
                               <a
+                                name={`remove account ${item.username}`}
                                 href={routeRemoveAccount.url({
                                   account: item.username,
                                 })}
-- 
cgit v1.2.3

