WebHare community

Disable wh-debug settings in JS frontend testing

Is there a way in a JS frontend test to disable the wh-debug settings, but only in the JS test env? (eg not removing the wh-debug cookie or something other that resets my normal wh-debug settings)

As far as I can tell they’re combined by whdebug.whlib, so not at this moment…

Okay. Is there any way to tell if I’m in the middle of a unit test, other than “site is in iframe”?

checking for window.parent.testfw probably works

Yup, works perfectly, thanks