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"));
}
Aggregations