You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by GitBox <gi...@apache.org> on 2021/08/30 14:30:51 UTC

[GitHub] [shiro] bdemers commented on a change in pull request #319: SonarCloud issues fixed

bdemers commented on a change in pull request #319:
URL: https://github.com/apache/shiro/pull/319#discussion_r698538773



##########
File path: samples/guice/src/main/webapp/login.jsp
##########
@@ -58,11 +61,12 @@
     </style>
 
 
-    <table class="sample">
+    <table class="sample" style="padding: 10px;">
+    	<caption style="padding: 10px;"> Sample accounts </caption>
         <thead>
         <tr>
-            <th>Username</th>
-            <th>Password</th>
+            <th id="username">Username</th>
+            <th id="password">Password</th>

Review comment:
       Can you explain this change?  I'm guessing if `id` attributes are set they should probably be set on the actual inputs?
   
   I don't have the context of why this change is suggested, by my assumption adding the `id` attr base it easier to drive test frameworks like Selenium (so a `getById()` can be used instead of a more complicated selector?) 
   
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org