Refactor ProfileResourceFragmentTest#getText