Simplify it block of a test
What does this MR do?
This change removes duplications, improves readability, and makes the code a bit shorter.
Fun fact: this test was my first contribution to GitLab.
😄
Does this MR meet the acceptance criteria?
Conformity
Edited by Walmyr Lima e Silva Filho