mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix async tree test
This commit is contained in:
@@ -3,6 +3,7 @@ package com.jetbrains.python;
|
||||
|
||||
import com.intellij.navigation.ItemPresentation;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.testFramework.PlatformTestUtil;
|
||||
import com.jetbrains.python.fixtures.PyTestCase;
|
||||
import com.jetbrains.python.psi.PyFunction;
|
||||
import com.jetbrains.python.structureView.PyStructureViewElement;
|
||||
@@ -134,6 +135,7 @@ public class PyStructureViewTest extends PyTestCase {
|
||||
private void doTest(final String expected, final boolean inherited) {
|
||||
myFixture.testStructureView(component -> {
|
||||
component.setActionActive("SHOW_INHERITED", !inherited);
|
||||
PlatformTestUtil.waitWhileBusy(component.getTree());
|
||||
assertTreeEqual(component.getTree(), expected);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user