testlens-app[bot] commented on PR #16204:
URL: https://github.com/apache/grails-core/pull/16204#issuecomment-5387033110

   ## 🚨 TestLens detected 1 failed test 🚨
   
   Here is what you can do:
   
   1) Inspect the test failures carefully.
   2) If you are convinced that some of the tests are flaky, you can mute them 
below.
   3) Finally, trigger a rerun by checking the rerun checkbox.
   
   ### Test Summary
   
   #### [CI / Spring Security Tests \(Java 25, shard 
1\)](https://github.com/apache/grails-core/actions/runs/32650602591/job/97221463745?pr=16204)
 > 
:grails-test-examples-spring-security-core-misc-functional-test-app-group:integrationTest
   
   | Test | Runs | Flakiness |
   |---|---|--:|
   | SecuredControllerSpec > test login as watson, watson belongs to detective 
groups. All detectives have the role ADMIN | ❌ | 
[1% 🟡](https://github.com/apache/grails-core/issues/16030) |
   
   🏷️ Commit: b0f3b142fad216dedd4d8373decd2ff2709e99f6
   ▶️ Tests:  10968 executed
   🟡 Checks: 20/64 completed
   
   ### Test Failures
   
   <details>
   
   <summary><strong>SecuredControllerSpec > test login as watson, watson 
belongs to detective groups. All detectives have the role ADMIN</strong> 
(:grails-test-examples-spring-security-core-misc-functional-test-app-group:integrationTest
 in <a 
href="https://github.com/apache/grails-core/actions/runs/32650602591/job/97221463745?pr=16204";>CI
 / Spring Security Tests (Java 25, shard 1)</a>)</summary>
   
   ```
   Condition not satisfied:
   
   pageSource.contains('you have ROLE_ADMIN')
   |          |
   |          false
   <html lang="en" class="no-js"><head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <meta http-equiv="X-UA-Compatible" content="IE=edge">
       <title>
           Login
       </title>
       <meta name="viewport" content="width=device-width, initial-scale=1">
       
       <meta name="layout" content="main">
       
    
   </head>
   <body>
    
   <div class="container py-5">
       <div class="row justify-content-center">
           <div class="col-11 col-sm-9 col-md-7 col-lg-5 col-xl-4">
               <div class="card shadow-sm">
                   <div class="card-body p-4 p-sm-5">
                       <h1 class="h4 card-title text-center mb-4">Please 
Login</h1>
    
                       
    
                       <form action="/login/authenticate" method="POST" 
id="loginForm" autocomplete="off">
                           <div class="mb-3">
                               <label for="username" 
class="form-label">Username</label>
                               <input type="text" class="form-control" 
name="username" id="username" autocapitalize="none" autocomplete="username">
                           </div>
    
                           <div class="mb-3">
                               <label for="password" 
class="form-label">Password</label>
                               <div class="input-group">
                                   <input type="password" class="form-control" 
name="password" id="password" autocomplete="current-password">
                                   <button class="btn btn-outline-secondary" 
type="button" id="passwordToggler" onclick="passwordDisplayToggle()" 
aria-pressed="false" aria-label="Show or hide password">
                                       <i id="passwordTogglerIcon" class="bi 
bi-eye" aria-hidden="true"></i>
                                   </button>
                               </div>
                           </div>
    
                           <div class="mb-3 form-check">
                               <input type="checkbox" class="form-check-input" 
name="remember-me" id="remember_me">
                               <label class="form-check-label" 
for="remember_me">Remember me</label>
                           </div>
    
                           <button type="submit" id="submit" class="btn 
btn-primary w-100">Login</button>
                       </form>
                   </div>
               </div>
           </div>
       </div>
   </div>
   <script type="text/javascript">
       document.addEventListener("DOMContentLoaded", function () {
           var form = document.forms['loginForm'];
           if (form) {
               form.elements['username'].focus();
           }
       });
    
       function passwordDisplayToggle() {
           var button = document.getElementById("passwordToggler");
           var icon = document.getElementById("passwordTogglerIcon");
           var field = document.getElementById("password");
           var hiding = field.type === "text";
           field.type = hiding ? "password" : "text";
           icon.classList.toggle("bi-eye", hiding);
           icon.classList.toggle("bi-eye-slash", !hiding);
           button.setAttribute("aria-pressed", String(!hiding));
       }
   </script>
    
    
    
   </body></html>
   
        at 
demo.SecuredControllerSpec.$tt__$spock_feature_1_1(SecuredControllerSpec.groovy:70)
        at demo.SecuredControllerSpec.test login as watson, watson belongs to 
detective groups. All detectives have the role 
ADMIN_closure3(SecuredControllerSpec.groovy)
        at 
grails.gorm.transactions.GrailsTransactionTemplate$1.doInTransaction(GrailsTransactionTemplate.groovy:72)
        at 
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
        at 
grails.gorm.transactions.GrailsTransactionTemplate.executeAndRollback(GrailsTransactionTemplate.groovy:69)
        at demo.SecuredControllerSpec.test login as watson, watson belongs to 
detective groups. All detectives have the role 
ADMIN(SecuredControllerSpec.groovy)
   ```
   
   </details>
   
   ### Rerun Controls
   > [!NOTE]
   > Checks are currently running using the configuration below.
   
   Select tests to mute in this pull request:
   
   🔲 SecuredControllerSpec > test login as watson, watson belongs to detective 
groups. All detectives have the role ADMIN <!-- 
uniqueId=[engine:spock]/[spec:demo.SecuredControllerSpec]/[feature:$spock_feature_1_1]
 -->
   
   Reuse successful test results:
   
   🔲 ♻️ Only rerun the tests that failed or were muted before
   
   Click the checkbox to trigger a rerun:
   
   🔲 **Rerun jobs**
   
   ---
   _Learn more about TestLens at 
[testlens.app/docs](https://testlens.app/docs/features/pr-comment/)._
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to