From 9406673dd060517dbd31fd674d21119e4329b20f Mon Sep 17 00:00:00 2001 From: Simeon Andreev Date: Sun, 17 May 2026 10:19:25 +0300 Subject: [PATCH] Improve fail message in QuickAccessDialogTest.testPreviousChoicesAvailableForExtension This change includes quick assist dialog table contents in the fail message of QuickAccessDialogTest.testPreviousChoicesAvailableForExtension, in case the table contents dont contain the expected test proposal. See: https://github.com/eclipse-platform/eclipse.platform.ui/issues/4009 --- .../eclipse/ui/tests/quickaccess/QuickAccessDialogTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/quickaccess/QuickAccessDialogTest.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/quickaccess/QuickAccessDialogTest.java index 807eb9df5f3..7669a624305 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/quickaccess/QuickAccessDialogTest.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/quickaccess/QuickAccessDialogTest.java @@ -300,7 +300,8 @@ public void testPreviousChoicesAvailableForExtension() { text.setText(TestQuickAccessComputer.TEST_QUICK_ACCESS_PROPOSAL_LABEL); final Table firstTable = dialog.getQuickAccessContents().getTable(); assertTrue(DisplayHelper.waitForCondition(text.getDisplay(), TIMEOUT, - () -> dialogContains(dialog, TestQuickAccessComputer.TEST_QUICK_ACCESS_PROPOSAL_LABEL))); + () -> dialogContains(dialog, TestQuickAccessComputer.TEST_QUICK_ACCESS_PROPOSAL_LABEL)), + "Unexpected dialog contents: " + getAllEntries(dialog.getQuickAccessContents().getTable())); firstTable.select(0); activateCurrentElement(dialog); // then try in a new SearchField