Search in sources :

Example 1 with ChangeAvatarPage

use of org.xwiki.user.test.po.ChangeAvatarPage in project xwiki-platform by xwiki.

the class UserProfileTest method testChangeAvatarImage.

/**
 * Functionality check: changing the profile picture.
 */
@Test
@IgnoreBrowsers({ @IgnoreBrowser(value = "internet.*", version = "8\\.*", reason = "See https://jira.xwiki.org/browse/XE-1146"), @IgnoreBrowser(value = "internet.*", version = "9\\.*", reason = "See https://jira.xwiki.org/browse/XE-1177") })
public void testChangeAvatarImage() {
    ChangeAvatarPage changeAvatarImage = this.customProfilePage.changeAvatarImage();
    changeAvatarImage.setAvatarImage(IMAGE_NAME);
    changeAvatarImage.submit();
    Assert.assertEquals(IMAGE_NAME, this.customProfilePage.getAvatarImageName());
}
Also used : ChangeAvatarPage(org.xwiki.user.test.po.ChangeAvatarPage) IgnoreBrowsers(org.xwiki.test.ui.browser.IgnoreBrowsers) Test(org.junit.Test) AbstractTest(org.xwiki.test.ui.AbstractTest)

Aggregations

Test (org.junit.Test)1 AbstractTest (org.xwiki.test.ui.AbstractTest)1 IgnoreBrowsers (org.xwiki.test.ui.browser.IgnoreBrowsers)1 ChangeAvatarPage (org.xwiki.user.test.po.ChangeAvatarPage)1