Search in sources :

Example 1 with InvitationMessageDisplayElement

use of org.xwiki.invitation.test.po.InvitationMessageDisplayElement in project xwiki-platform by xwiki.

the class InvitationTest method testPreviewMessage.

@Test
@IgnoreBrowser(value = "internet.*", version = "8\\.*", reason = "See https://jira.xwiki.org/browse/XE-1146")
public void testPreviewMessage() {
    InvitationMessageDisplayElement preview = getSenderPage().preview();
    Assert.assertTrue(preview.getSubjectLine().contains("has invited you to join"));
    Assert.assertTrue(preview.getMessageBody().contains("If this message looks like abuse of our system"));
    Assert.assertTrue(preview.getValidRecipients().get(0).getText().contains("user@localhost.localdomain"));
}
Also used : InvitationMessageDisplayElement(org.xwiki.invitation.test.po.InvitationMessageDisplayElement) AbstractTest(org.xwiki.test.ui.AbstractTest) Test(org.junit.Test) IgnoreBrowser(org.xwiki.test.ui.browser.IgnoreBrowser)

Aggregations

Test (org.junit.Test)1 InvitationMessageDisplayElement (org.xwiki.invitation.test.po.InvitationMessageDisplayElement)1 AbstractTest (org.xwiki.test.ui.AbstractTest)1 IgnoreBrowser (org.xwiki.test.ui.browser.IgnoreBrowser)1