Refactor end-to-end test to make it more robust
What does this MR do?
Refactor end-to-end test to make it more robust, and simpler.
Closes #36688 (closed).
The removed expectation is based on #39208 (comment 259377790).
Does this MR meet the acceptance criteria?
Conformity
Edited by Walmyr Lima e Silva Filho