Fix view rendering that fails in Rails 6.1
What does this MR do?
These tests fail for !59107 (merged). Let's refactor them with equivalent terms that make them pass for Rails 6.1
These tests fail for !59107 (merged). Let's refactor them with equivalent terms that make them pass for Rails 6.1