示例#1
0
 public void SocialStream_Congrats_WS_1148()
 {
     if (!DataParser.ReturnExecution("WS_1148"))
     {
         Assert.Ignore();
     }
     else
     {
         MainHomePage mainHomePage = InitialPage.Go().Logon().ClickLogin();
         Assert.IsTrue(mainHomePage.IsEveryoneSelected(), "Everyone is not selected in display options");
         int quantComments = Int32.Parse(mainHomePage.CongratsCount());
         mainHomePage.ClickCongrats();
         mainHomePage.AddCongrats("QA Test Submision").SendCongrats();
         Assert.AreEqual("Your message has been sent!", mainHomePage.GetCongratsMsg(),
                         "Congrats msg was not sent");
         Assert.AreEqual(quantComments + 1, Int32.Parse(mainHomePage.CongratsCount()),
                         "Congrats was not plus well 1");
     }
 }