This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/3_0_X by this push:
     new 428d2af5cf [SYNCOPE-1841] Fix tests
428d2af5cf is described below

commit 428d2af5cf0f8f99e00fdea37fa36314acc4019a
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Thu Apr 17 15:08:23 2025 +0200

    [SYNCOPE-1841] Fix tests
---
 .../client/console/wicket/markup/html/form/MultiPanel.html     | 10 +++++++---
 .../java/org/apache/syncope/fit/console/PoliciesITCase.java    |  3 +--
 .../test/java/org/apache/syncope/fit/console/UsersITCase.java  |  6 +++---
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git 
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiPanel.html
 
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiPanel.html
index 08cd3bbb54..c7198879bd 100644
--- 
a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiPanel.html
+++ 
b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiPanel.html
@@ -49,15 +49,19 @@ under the License.
               <div class="multipanel-box box">
                 <span wicket:id="panel">[form field]</span>
               </div>
-              <div class="multipanel-btn-minus input-group-addon">
-                <a wicket:id="drop" class="btn btn-danger btn-circle 
btn-lg"><i class="fa fa-minus"></i></a>
-              </div>
+              <span wicket:id="panelMinus">[plus]</span>
             </div>
             <span wicket:id="panelPlus">[plus]</span>
           </div>
         </span>
       </wicket:fragment>
 
+      <wicket:fragment wicket:id="fragmentMinus">
+        <div class="multipanel-btn-minus input-group-addon">
+          <a wicket:id="drop" class="btn btn-danger btn-circle btn-lg"><i 
class="fa fa-minus"></i></a>
+        </div>
+      </wicket:fragment>
+
       <wicket:fragment wicket:id="fragmentPlus">
         <div class="multipanel-btn-plus input-group-addon">
           <a wicket:id="add" class="btn btn-success btn-circle btn-lg"><i 
class="fa fa-plus"></i></a>
diff --git 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/PoliciesITCase.java
 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/PoliciesITCase.java
index cd5d8a33b7..cb9a6d2a8c 100644
--- 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/PoliciesITCase.java
+++ 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/PoliciesITCase.java
@@ -700,8 +700,7 @@ public class PoliciesITCase extends AbstractConsoleITCase {
                 
"body:content:tabbedPanel:panel:outerObjectsRepeater:1:outer:container:content:"
                 + 
"togglePanelContainer:container:actions:actions:actionRepeater:2:action:action");
 
-        
TESTER.assertComponent("body:content:tabbedPanel:panel:outerObjectsRepeater:5:outer",
-                Modal.class);
+        
TESTER.assertComponent("body:content:tabbedPanel:panel:outerObjectsRepeater:5:outer",
 Modal.class);
 
         Component modal = TESTER.getComponentFromLastRenderedPage(
                 "body:content:tabbedPanel:panel:outerObjectsRepeater:5:outer");
diff --git 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/UsersITCase.java
 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/UsersITCase.java
index 77a93e17d9..a363a1072f 100644
--- 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/UsersITCase.java
+++ 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/UsersITCase.java
@@ -184,7 +184,7 @@ public class UsersITCase extends AbstractConsoleITCase {
         
formTester.setValue("view:relationships:specification:type:dropDownChoiceField",
 "neighborhood");
         TESTER.executeAjaxEvent(TAB_PANEL + 
"outerObjectsRepeater:0:outer:form:content:form:view:relationships:"
                 + "specification:type:dropDownChoiceField", 
Constants.ON_CHANGE);
-         
formTester.setValue("view:relationships:specification:type:dropDownChoiceField",
 "neighborhood");
+        
formTester.setValue("view:relationships:specification:type:dropDownChoiceField",
 "neighborhood");
         // The ON_CHANGE above should enable this component, but it doesn't; 
doing it by hand
         Component otherType = findComponentById(
                 TAB_PANEL + 
"outerObjectsRepeater:0:outer:form:content:form:view:relationships:specification",
@@ -518,11 +518,11 @@ public class UsersITCase extends AbstractConsoleITCase {
         // ... remove all values from multivalue field
         TESTER.executeAjaxEvent(TAB_PANEL + "outerObjectsRepeater:0:"
                 + 
"outer:form:content:form:view:membershipsPlainSchemas:0:membershipPlainSchemas:tabs:0:body:"
-                + 
"content:schemas:5:panel:multiValueContainer:innerForm:content:view:1:drop",
+                + 
"content:schemas:5:panel:multiValueContainer:innerForm:content:view:1:panelMinus:drop",
                 Constants.ON_CLICK);
         TESTER.executeAjaxEvent(TAB_PANEL + "outerObjectsRepeater:0:"
                 + 
"outer:form:content:form:view:membershipsPlainSchemas:0:membershipPlainSchemas:tabs:0:body:"
-                + 
"content:schemas:5:panel:multiValueContainer:innerForm:content:view:0:drop",
+                + 
"content:schemas:5:panel:multiValueContainer:innerForm:content:view:0:panelMinus:drop",
                 Constants.ON_CLICK);
 
         formTester = TESTER.newFormTester(TAB_PANEL + 
"outerObjectsRepeater:0:outer:form:content:form");

Reply via email to