I have created a folder called PageObjects and kept all Object relared .js files inside it.
I have created another folder in my project called Sanity and kept my Sanity test case (spec) inside it.
When I am trying to access the page object file from the directory, I am getting the below error.
My project structure looks like below
If we keep every js (PageObject, Spec, config) file within core project directory, everything works fine. But, if we use specific directory structure, there is hiccup.
Please advise how we can handle this.
I feel directory structure is more powerful with respect to maintainability.
Can you please advise how I can access Object & Tests which are in separate directories?