From 2b62ee386798ff0f3e2a9b19d75471d5bc9ead9e Mon Sep 17 00:00:00 2001 From: Jasper de Vries Date: Mon, 18 Mar 2024 15:40:31 +0100 Subject: [PATCH] So many flavors... --- .../integrationtests/datepicker/DatePicker011Test.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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();