mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
test(jetbrains): stabilize question view assertion
This commit is contained in:
+1
-2
@@ -322,8 +322,7 @@ class BaseQuestionViewTest : BasePlatformTestCase() {
|
||||
edt {
|
||||
val panel = BaseQuestionView()
|
||||
panel.setHeader("Title", "Hint")
|
||||
// The description text area is the non-bold one
|
||||
val desc = findAll<JBTextArea>(panel).firstOrNull { !it.font.isBold }
|
||||
val desc = findAll<JBTextArea>(panel).firstOrNull { it.text == "Hint" }
|
||||
assertNotNull(desc)
|
||||
val ins = desc!!.border.getBorderInsets(desc)
|
||||
assertEquals("description should not add extra top padding", 0, ins.top)
|
||||
|
||||
Reference in New Issue
Block a user