and also when the window is reloaded, the unit tests crashes and the build is stopped. So I thought that stubs was my friends to solve it but navigator.location.reload is read-only and wrapping this one is forbidden. Thx