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:
parent
79d2040fcf
commit
d0900fd0c5
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user