1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-04-22 01:15:48 +02:00

Use a different way of waiting till the SDK is detected

This commit is contained in:
Alex Plate 2025-03-14 14:41:38 +02:00
parent 79d2040fcf
commit d0900fd0c5
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -8,6 +8,8 @@
import com.automation.remarks.junit5.Video
import com.intellij.remoterobot.RemoteRobot
import com.intellij.remoterobot.fixtures.ComponentFixture
import com.intellij.remoterobot.search.locators.byXpath
import com.intellij.remoterobot.steps.CommonSteps
import com.intellij.remoterobot.utils.keyboard
import com.intellij.remoterobot.utils.waitFor
@ -71,7 +73,8 @@ class PyCharmTest {
createNewProjectLink.click()
waitFor(duration = Duration.ofSeconds(30)) {
// Waiting till the SDK will be detected by PyCharm
findAllText("detected in the system").isNotEmpty()
this@startNewProject.findAll<ComponentFixture>(byXpath("//div[@class='SimpleColoredComponent']"))
.any { it.hasText { text -> text.text.contains("detected in the system") } }
}
button("Create").click()
}