lundi 27 juillet 2020

Testcafe - Invoking a RequestHook on all tests in a single declaration?

I have a RequestHook that adds some header values to every HTTP request that is made, but currently I have to import the hook into each seperate fixture file and attach it to the fixture with .requestHooks().

What would be great is if I could attach the RequestHook to all fixtures in one declaration, possibly using the scripting API?

Aucun commentaire:

Enregistrer un commentaire