When trying to make the assertion "Does the current url equal homepage url?", should the current url logic be put directly into the test method. Like so, let currentUrl = browser.getCurrentUrl();
or can this logic be put into a page object like a home page.
To me it feels uncomfortable to ask a page object about the current url, if that url doesn't have anything to do with the page object itself. At the same time it is discouraged to put webdriver api calls directly in the test methods. How should I go about testing this type of logic?