test(jetbrains): stabilize question view assertion

This commit is contained in:
kirillk
2026-05-22 15:11:02 -04:00
parent 2e753bb039
commit 8bbadd5f0e
@@ -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)