Search in sources :

Example 1 with AlbumPage

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

the class AlbumListPageTest method testSelectAlbum.

@Test
public void testSelectAlbum() {
    AlbumPage albumPage = albumListPage.selectAlbum("21");
    albumPage.navigateToPage();
    assertTrue(albumPage.isAt());
}
Also used : AlbumPage(com.iluwatar.pageobject.pages.AlbumPage) Test(org.junit.jupiter.api.Test)

Example 2 with AlbumPage

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

the class AlbumPageTest method testSaveAlbum.

@Test
public void testSaveAlbum() {
    AlbumPage albumPageAfterChanges = albumPage.changeAlbumTitle("25").changeArtist("Adele Laurie Blue Adkins").changeAlbumYear(2015).changeAlbumRating("B").changeNumberOfSongs(20).saveChanges();
    assertTrue(albumPageAfterChanges.isAt());
}
Also used : AlbumPage(com.iluwatar.pageobject.pages.AlbumPage) Test(org.junit.jupiter.api.Test)

Aggregations

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