diff --git a/primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/datepicker/DatePicker011Test.java b/primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/datepicker/DatePicker011Test.java index 43faa0e273..f1f2f272d7 100644 --- a/primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/datepicker/DatePicker011Test.java +++ b/primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/datepicker/DatePicker011Test.java @@ -370,7 +370,9 @@ private void testDatePickerPart1(DatePicker datePicker, Page page, DatePickerBeh private void testDatePickerPart2(DatePicker datePicker, Page page, DatePickerBehaviour behaviour) { // Assert initial state Messages messages = page.messages; - assertEmptyMessages(messages); + if (!datePicker.isLazy() || behaviour != DatePickerBehaviour.viewChange) { + assertEmptyMessages(messages); + } // Act - 1st show panel datePicker.click();