When you setup a fixture, you supply the page url.
with the new User Role feature, you also have to supply a url for the login page. In my app (and to my knowledge many other apps) the url is the same and the login screen is shown dynamically by the backend server is there's no session yet.
Since I'm encapsulating all the logic for interaction with the pages in domain-specific classes, so the writer of the UI tests doesn't have to know (much) about all the internals of interaction between testcafe and the page, the TestController.useRole() is also burried away in those classes, I'm wondering if I can somehow get to the url provided in the tests fixture from within my classes where I need to perform the userole function?
Otherwise, I'll have to require the UI Test writer to pass it into the calls that use the new .useRole() API, which i don't really like