I am in the beginning stages of learning Selenium/POM and I am curious how something like this would be laid out...
Let's say I have an app with multiple pages, and I have a Class created per page (i.e. HomePage.cs, LogInPage.cs etc....) that has all the locators and actions/logic within the page. If I want to create some Smoke Test that hits all the pages, would I do something like this?
[TestMethod]
public void SmokeTest()
{
LogIn login = new LogIn();
//do something
HomePage homepage = new HomePage();
//do something
//do something
PostsPage postspage = new PostsPage();
// do something
// do something
}
Instantiate each class as I come to it? Or is that not the correct way to structure the test? I understand the basic one page test, but I am really confused as to how my tests need to be structured if they are hitting multiple pages, given the POM design.