From 4df32b28a69a7863686192134c84963455c85dd6 Mon Sep 17 00:00:00 2001 From: Marco Collovati Date: Fri, 18 Sep 2026 15:08:00 +0000 Subject: [PATCH] test: expect the hidden-duplicate item in the context menu item texts The shared `ContextMenuView` gained a visible "Duplicated Hidden" item after the `getItemTexts()` test was written, so the expected texts were one item short and the test failed once both changes were on `main`. --- .../flow/component/contextmenu/ContextMenuTesterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/junit6/src/test/java/com/vaadin/flow/component/contextmenu/ContextMenuTesterTest.java b/junit6/src/test/java/com/vaadin/flow/component/contextmenu/ContextMenuTesterTest.java index cad6f1a7..dc7f7159 100644 --- a/junit6/src/test/java/com/vaadin/flow/component/contextmenu/ContextMenuTesterTest.java +++ b/junit6/src/test/java/com/vaadin/flow/component/contextmenu/ContextMenuTesterTest.java @@ -481,7 +481,8 @@ void getItemTexts_hiddenItemIgnored_componentItemHasNoText() { Assertions.assertIterableEquals( List.of("Foo", "Bar", "Text", "Duplicated", "Duplicated", "", - "Checkable", "Disabled", "Hierarchical"), + "Checkable", "Disabled", "Hierarchical", + "Duplicated Hidden"), menu_.getItemTexts(), "texts should be the visible items, in the order the browser shows them"); }