Based on the test activation logic, divertTo will activate the test for users even when set to staging.
I understand we don't use divertTo frequently in staging mode, but I think that may be confusing to users. If staging may be used for development and preview of tests before they are published, we should protect users.
This PR makes divertTo respect live/staging modes.
Based on the test activation logic, divertTo will activate the test for users even when set to
staging
.I understand we don't use
divertTo
frequently instaging
mode, but I think that may be confusing to users. Ifstaging
may be used for development and preview of tests before they are published, we should protect users.This PR makes divertTo respect
live
/staging
modes.