What would be your go to approach when having automated api tests for multiple endpoints for backend and ui tests for the frontend(with the mention that ui tests might use some api calls for generating test data for ex) - different module(different pom.xml- for java, maven) or same module separating ui from api?
I tried having 2 separate modules + one for common code, but I would like to know your experience and what you consider works better





