[IFT] UI detection fix for i18n case
[idea/contrib.git] / ide-features-trainer / src / training / learn / lesson / general / navigation / DeclarationAndUsagesLesson.kt
index 69fb5889dbb991c79ff7fdfccf3bc7c8f97c624c..c2511e0294a90239501b0ec8cda2fcd610b08d35 100644 (file)
@@ -62,7 +62,7 @@ abstract class DeclarationAndUsagesLesson(module: Module, lang: String)
         text(LessonsBundle.message("declaration.and.usages.find.usages", action(it)))
 
         triggerByUiComponentAndHighlight { ui: BaseLabel ->
-          ui.text?.contains("Usages of") ?: false
+          ui.text?.contains(LearnBundle.message("usages.tab.name")) ?: false
         }
         test {
           actions(it)