mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
goto action: fix flaky test
Only the first 30 actions are fetched from popup, so we need to use longer pattern.
This commit is contained in:
@@ -131,8 +131,8 @@ class GotoActionTest extends LightCodeInsightFixtureTestCase {
|
||||
|
||||
void "test detected action groups"() {
|
||||
assert getPresentableGroupName(project, "Zoom", "Images.Editor.ZoomIn", false) == "Images"
|
||||
assert getPresentableGroupName(project, "Tab", "SearchEverywhere.NextTab", false) == "Search Everywhere"
|
||||
assert getPresentableGroupName(project, "Tab", "NextTab", false) == "Window | Editor Tabs"
|
||||
assert getPresentableGroupName(project, "Next Tab", "SearchEverywhere.NextTab", false) == "Search Everywhere"
|
||||
assert getPresentableGroupName(project, "Next Tab", "NextTab", false) == "Window | Editor Tabs"
|
||||
assert getPresentableGroupName(project, "Next Tab", "NextEditorTab", false) == "Tabs"
|
||||
}
|
||||
|
||||
@@ -224,7 +224,9 @@ class GotoActionTest extends LightCodeInsightFixtureTestCase {
|
||||
return computeWithCustomDataProvider(passFlag) {
|
||||
def result = getActionsFromPopup(project, pattern)
|
||||
def matches = result.findAll { it.action == testAction }
|
||||
assert matches.size() == 1
|
||||
if (matches.size() != 1) {
|
||||
fail("Matches: " + matches + "\nPopup actions: " + result.size() + " - " + result)
|
||||
}
|
||||
|
||||
ActionWrapper wrapper = matches[0]
|
||||
wrapper.getPresentation() // update before show
|
||||
|
||||
Reference in New Issue
Block a user