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

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new b473fa6b8 [OPENMEETINGS-2784] tests are fixed
b473fa6b8 is described below

commit b473fa6b872820bc64f6db56c06cc34fd2e13df5
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Wed Jul 3 22:53:50 2024 +0700

    [OPENMEETINGS-2784] tests are fixed
---
 .../src/test/java/org/apache/openmeetings/web/TestCalendar.java     | 6 ++++--
 pom.xml                                                             | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/openmeetings-web/src/test/java/org/apache/openmeetings/web/TestCalendar.java 
b/openmeetings-web/src/test/java/org/apache/openmeetings/web/TestCalendar.java
index 4d6557f59..a3c852e4d 100644
--- 
a/openmeetings-web/src/test/java/org/apache/openmeetings/web/TestCalendar.java
+++ 
b/openmeetings-web/src/test/java/org/apache/openmeetings/web/TestCalendar.java
@@ -19,6 +19,8 @@
 package org.apache.openmeetings.web;
 
 import static java.util.UUID.randomUUID;
+import static java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME;
+import static java.time.ZoneOffset.UTC;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
@@ -55,8 +57,8 @@ class TestCalendar extends AbstractWicketTesterTest {
                        User u = userDao.getByLogin(regularUsername, 
User.Type.USER, null);
                        //test create month
                        tester.getRequest().setParameter("allDay", 
String.valueOf(false));
-                       tester.getRequest().setParameter("startDate", 
LocalDateTime.of(2017, 11, 13, 13, 13).toString());
-                       tester.getRequest().setParameter("endDate", 
LocalDateTime.of(2017, 11, 13, 13, 13).toString());
+                       tester.getRequest().setParameter("startDate", 
LocalDateTime.of(2017, 11, 13, 13, 
13).atOffset(UTC).format(ISO_OFFSET_DATE_TIME));
+                       tester.getRequest().setParameter("endDate", 
LocalDateTime.of(2017, 11, 13, 13, 
13).atOffset(UTC).format(ISO_OFFSET_DATE_TIME));
                        tester.getRequest().setParameter("viewName", 
CalendarView.dayGridMonth.name());
                        
tester.executeBehavior((AbstractAjaxBehavior)cal.get("form:calendar").getBehaviorById(0));
 //select-event
                        FormTester appTester = 
tester.newFormTester(PATH_APPOINTMENT_DLG_FRM);
diff --git a/pom.xml b/pom.xml
index ce119f801..189f29603 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1488,7 +1488,7 @@
                                        
<artifactId>frontend-maven-plugin</artifactId>
                                        
<version>${frontend-maven-plugin.version}</version>
                                        <configuration>
-                                               
<nodeVersion>v16.18.1</nodeVersion>
+                                               
<nodeVersion>v20.15.0</nodeVersion>
                                                
<installDirectory>${project.build.directory}</installDirectory>
                                        </configuration>
                                </plugin>

Reply via email to