don't show elements inspector in case of test runners
(cherry picked from commit b387376)