}
static class PreviewInteractiveTest extends MyDoggyInteractiveTest {
public void interactiveTest(InteractiveUI interactiveUI) {
InteractiveMouse mouse = interactiveUI.getInteractiveMouse();
InteractiveAssertor assertor = interactiveUI.getInteractiveAssertor();
ToolWindow toolWindow = myDoggySet.getToolWindowManager().getToolWindow("Tool 1");
moveToolTo(interactiveUI, "Tool 7", ToolWindowAnchor.BOTTOM);
DockedTypeDescriptor descriptor = (DockedTypeDescriptor) toolWindow.getTypeDescriptor(ToolWindowType.DOCKED);
descriptor.setPreviewEnabled(true);
descriptor.setPreviewDelay(1000);
mouse.moveTo("toolWindow.rb.Tool 6");
interactiveUI.delay(1100);
assertor.askForConfirm("Is preview visible?");
moveToolTo(interactiveUI, "Tool 1", ToolWindowAnchor.RIGHT);
moveToolTo(interactiveUI, "Tool 3", ToolWindowAnchor.RIGHT);
mouse.moveTo("toolWindow.rb.Tool 1");
interactiveUI.delay(1100);
assertor.askForConfirm("Is preview visible?");
mouse.moveTo("toolWindowManager.mainContainer");
interactiveUI.delay(1000);
assertor.askForConfirm("Is preview not visible?");
}