public void Can_Search_For_Colleague() { PraisePage praisePage = new PraisePage(browser); praisePage.GoTo(); var receiverName = praisePage.GetNameOfReceiver(); praisePage.SearchForAColleague(receiverName); Assert.AreEqual(receiverName, praisePage.GetNameOfReceiver()); }
public void Can_Send_Private_Praise() { PraisePage praisePage = new PraisePage(browser); HomePage homePage = new HomePage(browser); praisePage.GoTo(); //praisePage.SearchForAColleague(receiverName); praisePage.SelectColleague(); praisePage.SendPrivatePraise(); homePage.GoTo(); var lastPraise = homePage.GetBodyOfLastPublicPraise(); Assert.AreNotEqual("Private", lastPraise); }
public void Can_Send_Public_Praise() { PraisePage praisePage = new PraisePage(browser); PraiseDetailsPage praiseDetailsPage = new PraiseDetailsPage(browser); HomePage homePage = new HomePage(browser); praisePage.GoTo(); //praisePage.SearchForAColleague(receiverName); praisePage.SelectColleague(); // can add number as input to select specific position in list var nameOfReceiver = praisePage.GetNameOfReceiver(); praisePage.SendPraise(); praisePage.AllDoneHere(); var nameOfSender = homePage.GetNameOfSender(); var lastPublicPraise = homePage.GetLastPublicPraise(); Assert.AreEqual($"{nameOfSender} sent praise to {nameOfReceiver}", lastPublicPraise); }