in intellij.tools.ide.starter.examples.plugins/src/integrationTest/kotlin/PluginTest.kt [80:113]
fun oneMoreTest(splitMode: Boolean) {
if (splitMode) {
di = DI {
extend(di)
bindProvider<TestContainer<*>>(overrides = true) { TestContainer.newInstance<RemDevTestContainer>() }
bindProvider<DriverRunner> { RemDevDriverRunner() }
}
}
Starter.newContext(
"oneMoreTest-" + if (splitMode) "split-mode" else "no-split-mode",
TestCase(
IdeProductProvider.WS,
GitHubProject.fromGithub(branchName = "master", repoRelativeUrl = "JetBrains/ij-perf-report-aggregator")
).useEAP()
).apply {
setLicense(System.getenv("LICENSE_KEY"))
val pathToPlugin = System.getProperty("path.to.build.plugin")
PluginConfigurator(this).installPluginFromFolder(File(pathToPlugin))
}.runIdeWithDriver().useDriverAndCloseIde {
waitForIndicators(5.minutes)
openFile("package.json")
ideFrame {
// This action processed by Demo plugin
invokeAction("ShowDialogAction", now = false)
dialog(title = "Test Dialog") {
button("OK").click()
}
waitForNoOpenedDialogs()
}
}
}