in intellij.tools.ide.starter.examples.plugins/src/integrationTest/kotlin/PluginTest.kt [46:65]
fun simpleTest() {
Starter.newContext("testExample", TestCase(IdeProductProvider.IC, NoProject).withVersion("2024.3")).apply {
val pathToPlugin = System.getProperty("path.to.build.plugin")
PluginConfigurator(this).installPluginFromFolder(File(pathToPlugin))
}.runIdeWithDriver().useDriverAndCloseIde {
welcomeScreen {
clickPlugins()
x { byAccessibleName("Installed") }.click()
shouldBe("Plugin is installed") {
x {
and(
byVisibleText("Demo"),
byJavaClass("javax.swing.JLabel")
)
}.present()
}
}
}
}