[IFT] UI detection fix for i18n case
authorAlexey Merkulov <alexey.merkulov@jetbrains.com>
Thu, 17 Sep 2020 15:28:21 +0000 (18:28 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Wed, 23 Sep 2020 09:21:48 +0000 (09:21 +0000)
GitOrigin-RevId: 768c5cf19d99c9d4af6415ff616cccf92a03f768

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)