aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-10-31 09:10:02 +0200
committerDenis Anisimov <denis@vaadin.com>2016-10-31 09:10:02 +0200
commit66724b35c5d82cc084974db28b84fc41e79bb8f3 (patch)
treec8ea32ffe90f4cd14f2cbd21daee91ed583a94cc /uitest
parent1e978a6ba0924c240803543a31d024b7c649f4ce (diff)
downloadvaadin-framework-66724b35c5d82cc084974db28b84fc41e79bb8f3.tar.gz
vaadin-framework-66724b35c5d82cc084974db28b84fc41e79bb8f3.zip
Date/time issues are fixed in the tests.
- legacy DateField declarative format tests are fixed (day light saving time is taken into account). - CalendarMonthViewDndEvent UI because you are not supposed to work on Sundays (when the test is broken). Change-Id: If7ddf238a7fab104514211df4a12fa6d071f5af2
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java b/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java
index 09739f1f73..2300268f1a 100644
--- a/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java
+++ b/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java
@@ -40,6 +40,11 @@ public class CalendarMonthViewDndEvent extends AbstractReindeerTestUI {
protected void setup(VaadinRequest request) {
final Calendar calendar = new Calendar("Test calendar");
final java.util.Calendar cal = getAdjustedCalendar();
+ if (cal.get(
+ java.util.Calendar.DAY_OF_WEEK) == java.util.Calendar.SUNDAY) {
+ // don't use Sunday: no space to move event on the left
+ cal.add(java.util.Calendar.DAY_OF_MONTH, 1);
+ }
Date from = cal.getTime();