ProjectProblemsViewPropertyTest: check if file has reported problems before modifications

GitOrigin-RevId: 6928ce906c06f7a189043d24379f6ca11a29a7e3
This commit is contained in:
Artemiy Sartakov
2020-03-26 05:03:33 +00:00
committed by intellij-monorepo-bot
parent 480f8ce774
commit 4fd1e215aa
@@ -56,6 +56,7 @@ class ProjectProblemsViewPropertyTest : BaseUnivocityTest() {
fun testAllFilesWithMemberNameReported() {
RecursionManager.disableMissedCacheAssertions(testRootDisposable)
PropertyChecker.customized()
.withIterationCount(50)
.checkScenarios { ImperativeCommand(this::doTestAllFilesWithMemberNameReported) }
}
@@ -73,6 +74,9 @@ class ProjectProblemsViewPropertyTest : BaseUnivocityTest() {
val members = findMembers(fileToChange)
if (members.isEmpty()) continue
rehighlight(fileToChange)
if (getFilesReportedByProblemSearch(fileToChange).isNotEmpty()) continue
env.logMessage("Selected file: ${fileToChange.name}")
val actual = changeSelectedFile(env, members, fileToChange)