Issue #3139404 by mondrake, longwave, munish.kumar, pavnish: Replace usages of AssertLegacyTrait::assertText, that is deprecated