Allow to quarantine end-to-end tests per environment
What does this MR do?
This builds upon !35668 (merged) and allows to quarantine end-to-end tests only when they run against specific environments.
Does this MR meet the acceptance criteria?
Closes #39458 (closed).
Edited by Rémy Coutable