mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test framework [remote-driver]: fix IdeaFrameUI#toFront
(cherry picked from commit e56eb265be2cdda82dec21a85da22112c003aabe) GitOrigin-RevId: 48f153c90cb92ae929155b7e431ce6d6c750b886
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c3e251a37e
commit
3faa3dbd1d
+2
-1
@@ -15,6 +15,7 @@ import com.intellij.driver.sdk.ui.remote.Component
|
||||
import com.intellij.driver.sdk.ui.remote.Window
|
||||
import com.intellij.driver.sdk.ui.ui
|
||||
import java.awt.Frame
|
||||
import java.awt.Point
|
||||
import javax.swing.JFrame
|
||||
|
||||
fun Finder.ideFrame() = x(IdeaFrameUI::class.java) { byClass("IdeFrameImpl") }
|
||||
@@ -71,7 +72,7 @@ open class IdeaFrameUI(data: ComponentData) : WindowUiComponent(data) {
|
||||
|
||||
override fun toFront() {
|
||||
super.toFront()
|
||||
mainToolbar.click()
|
||||
click(Point(component.width / 2, 0))
|
||||
}
|
||||
|
||||
fun isMinimized() = ideaFrameComponent.getState() == Frame.ICONIFIED
|
||||
|
||||
Reference in New Issue
Block a user