Search in sources :

Example 1 with AlbumListPage

use of com.iluwatar.pageobject.pages.AlbumListPage in project java-design-patterns by iluwatar.

the class AlbumPageTest method testCancelChanges.

@Test
public void testCancelChanges() {
    AlbumListPage albumListPage = albumPage.cancelChanges();
    albumListPage.navigateToPage();
    assertTrue(albumListPage.isAt());
}
Also used : AlbumListPage(com.iluwatar.pageobject.pages.AlbumListPage) Test(org.junit.jupiter.api.Test)

Example 2 with AlbumListPage

use of com.iluwatar.pageobject.pages.AlbumListPage in project java-design-patterns by iluwatar.

the class LoginPageTest method testLogin.

@Test
public void testLogin() {
    AlbumListPage albumListPage = loginPage.enterUsername("admin").enterPassword("password").login();
    albumListPage.navigateToPage();
    assertTrue(albumListPage.isAt());
}
Also used : AlbumListPage(com.iluwatar.pageobject.pages.AlbumListPage) Test(org.junit.jupiter.api.Test)

Aggregations

AlbumListPage (com.iluwatar.pageobject.pages.AlbumListPage)2 Test (org.junit.jupiter.api.Test)2