Load assets functions in acceptance test

I am using components which load some functions (e.g: Menu, loading sliders) from public/assets. But acceptance tests give errors that these assets functions are not defined. Any idea how to solve this and what is the best way to load them? Thanks a lots !