Skip to content

Commit 4a6d874

Browse files
committed
Fix notification crash
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
1 parent 08c141d commit 4a6d874

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<depends>com.intellij.modules.platform</depends>
88

99
<extensions defaultExtensionNs="com.intellij">
10-
<notificationGroup id="SDK changed notification"
10+
<notificationGroup id="Python SDK change"
1111
displayType="BALLOON"/>
1212
<projectViewNodeDecorator implementation="com.github.pyvenvmanage.VenvProjectViewNodeDecorator"/>
1313
</extensions>

src/test/kotlin/com/github/pyvenvmanage/UITest.kt

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ class UITest {
7878
// open test project
7979
remoteRobot.welcomeFrame {
8080
openLink.click()
81-
dialog("Open File or Project") {
82-
button(byXpath("//div[@myicon='refresh.svg']")).click()
83-
Thread.sleep(500)
84-
val tree = find<JTreeFixture>(byXpath("//div[@class='Tree']"))
85-
tree.expand(tree.getValueAtRow(0), *demo.map { it.name }.toTypedArray())
86-
tree.clickPath(tree.getValueAtRow(0), *demo.map { it.name }.toTypedArray(), fullMatch = true)
87-
button("OK").click()
88-
}
81+
}
82+
dialog("Open File or Project") {
83+
button(byXpath("//div[@myicon='refresh.svg']")).click()
84+
Thread.sleep(500)
85+
val tree = find<JTreeFixture>(byXpath("//div[@class='Tree']"))
86+
tree.expand(tree.getValueAtRow(0), *demo.map { it.name }.toTypedArray())
87+
tree.clickPath(tree.getValueAtRow(0), *demo.map { it.name }.toTypedArray(), fullMatch = true)
88+
button("OK").click()
8989
}
9090
Thread.sleep(1000)
9191
// wait for indexing to finish
@@ -97,14 +97,6 @@ class UITest {
9797
@AfterAll
9898
@JvmStatic
9999
fun cleanUp() {
100-
// CommonSteps(remoteRobot).closeProject()
101-
// // remove the test project from recent
102-
// remoteRobot.welcomeFrame {
103-
// findText("demo").click(MouseButton.RIGHT_BUTTON)
104-
// remoteRobot.actionMenuItem("Remove from Recent Projects…").click()
105-
// button("Remove").click()
106-
// }
107-
// tmpDir.toFile().deleteRecursively()
108100
}
109101
}
110102

@@ -114,7 +106,7 @@ class UITest {
114106
with(projectViewTree) {
115107
findText("ve").click(MouseButton.RIGHT_BUTTON)
116108
remoteRobot.actionMenuItem("Set as Project Interpreter").click()
117-
// findText("Updated SDK for project demo to:")
109+
findText("Updated SDK for project demo to:")
118110
// wait for indexing to finish
119111
waitFor(ofMinutes(1)) { isDumbMode().not() }
120112
}
@@ -127,7 +119,7 @@ class UITest {
127119
with(projectViewTree) {
128120
findText("ve").click(MouseButton.RIGHT_BUTTON)
129121
remoteRobot.actionMenuItem("Set as Module Interpreter").click()
130-
// findText("Updated SDK for module demo to:")
122+
findText("Updated SDK for module demo to:")
131123
// wait for indexing to finish
132124
waitFor(ofMinutes(1)) { isDumbMode().not() }
133125
}

0 commit comments

Comments
 (0)