Skip to content

add app/design path #2527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix browser handling and add Chrome termination on Linux
Ensure browsers are properly closed in all scenarios by invoking `closeBrowser()` in the appropriate locations. Additionally, include termination of Chrome processes on Linux systems for better cleanup.
  • Loading branch information
VitaliyBoyko committed May 17, 2025
commit 675f88c34aaee3a02df38b3e53b50f3ca455f12d
2 changes: 0 additions & 2 deletions .github/workflows/uitests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
export DISPLAY=:99.0
pkill -f chrome || true
pkill -f chromium || true
./gradlew test -PexcludeTests="**/reference/**,**/linemarker/**,**/inspections/**,**/completion/**,**/actions/**"

# Uncomment if investigation is needed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import com.intellij.remoterobot.RemoteRobot
import com.intellij.remoterobot.data.RemoteComponent
import com.intellij.remoterobot.fixtures.*
import com.intellij.remoterobot.search.locators.byXpath
import com.intellij.remoterobot.utils.keyboard
import java.awt.event.KeyEvent.VK_ALT
import java.awt.event.KeyEvent.VK_1
import java.time.Duration


Expand All @@ -25,7 +28,14 @@ class IdeaFrame(remoteRobot: RemoteRobot, remoteComponent: RemoteComponent) :
get() = actionLink(byXpath("//div[@accessiblename='Enable Magento support for this project?' and @class='JEditorPane']"))

val projectViewTree
get() = find<ContainerFixture>(byXpath("//div[@class='ProjectViewTree']"))
get() = try {
find<ContainerFixture>(byXpath("//div[@class='ProjectViewTree']"))
} catch (e: Exception) {
keyboard {
hotKey(VK_ALT, VK_1)
}
find<ContainerFixture>(byXpath("//div[@class='ProjectViewTree']"))
}

fun isProjectViewVisible(): Boolean {
return try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SharedSteps(private val remoteRobot: RemoteRobot) {
ContainerFixture::class.java,
byXpath("//div[@visible_text='New Project']")
)
newProjectButton.click(Point(15, -15))
newProjectButton.click()
Thread.sleep(2_000)

val jTextFieldFixture = find<JTextFieldFixture>(byXpath("//div[@class='TextFieldWithBrowseButton']"))
Expand Down
Loading