Example #1
0
 public void GoToContactUsPageTest()
 {
     UITest(() =>
     {
         var contactUsPage = sideBar.GoToContactUsPage();
         Assert.Contains(Constants.CONTACTUS_URL_CONTAINS, contactUsPage.GetCurrentUrl());
     });
 }
Example #2
0
 public void CheckIfContactUsMessageIsVisibleInInbox()
 {
     UITest(() =>
     {
         var contactUs = sideBar.GoToContactUsPage();
         contactUs.ContactUs(Constants.EXAMPLE_EMAIL, "Name", testMessage);
         header.GoToLogInPage().SignIn(Constants.ADMIN_EMAIL, Constants.ADMIN_PASSWORD);
         var mailBox      = sideBar.GoToMailBoxPage();
         var inbox        = mailBox.InboxElementClick();
         var blocks       = inbox.GetInboxBlocksList();
         var existMessage = blocks.Any(x => x.IsEqualText(testMessage));
         Assert.True(existMessage);
     });
 }