Use modules in common utils
What does this MR do?
Removes utility functions from the global namespace and exports them to make it possible to only load each function in the page it's needed instead of loading them all in all the files.
For the functions in common_utils it does:
- removes the iffe
- exports them as modules
- removes some of them from
gl.utils
namespace - we have a lot of spies depending on this and we need a new tool to make this spies - imports the modules in the files where they are used
- updates some tests to not depend/fake results of the spies
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Review
-
Has been reviewed by Frontend
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together
What are the relevant issue numbers?
Edited by Filipa Lacerda