From 69cdc7a3456916e86ba4ffc614d34e85c5ae2c72 Mon Sep 17 00:00:00 2001 From: "Mariia.Fadeeva" Date: Mon, 3 Feb 2025 18:10:08 +0200 Subject: [PATCH] [ai-assistant][ui-tests] AT-1787 Implemented VcsLogGraphTable page object GitOrigin-RevId: 26ab8e12fd5910ef521f357c3854f8376896ee5a --- .../common/toolwindows/VcsLogGraphTable.kt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/VcsLogGraphTable.kt diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/VcsLogGraphTable.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/VcsLogGraphTable.kt new file mode 100644 index 000000000000..7f41b27dd11b --- /dev/null +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/VcsLogGraphTable.kt @@ -0,0 +1,17 @@ +package com.intellij.driver.sdk.ui.components.common.toolwindows + +import com.intellij.driver.sdk.ui.Finder +import com.intellij.driver.sdk.ui.components.ComponentData +import com.intellij.driver.sdk.ui.components.elements.JTableUiComponent +import com.intellij.driver.sdk.ui.xQuery +import org.intellij.lang.annotations.Language + +fun Finder.vcsLogGraphTable(@Language("xpath") xpath: String? = null, action: VcsLogGraphTable.() -> Unit) { + x(xpath ?: xQuery { byClass("VcsLogMainGraphTable") }, VcsLogGraphTable::class.java).action() +} + +fun Finder.vcsLogGraphTable(@Language("xpath") xpath: String? = null): VcsLogGraphTable { + return x(xpath ?: xQuery { byClass("VcsLogMainGraphTable") }, VcsLogGraphTable::class.java) +} + +class VcsLogGraphTable(data: ComponentData) : JTableUiComponent(data)