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 f1f2f272d7..f3a429c7ce 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 @@ -203,7 +203,9 @@ void lazyMetaDataCloseBehaviour3(Page page) { private void testDatePickerPart1(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.showPanel(); @@ -427,7 +429,9 @@ private void testDatePickerPart2(DatePicker datePicker, Page page, DatePickerBeh private void testDatePickerPart3(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.showPanel();