public void Can_Send_Praise_Back() { FeedbackPage feedbackPage = new FeedbackPage(browser); PraisePage praisePage = new PraisePage(browser); HomePage homePage = new HomePage(browser); feedbackPage.GoTo(); feedbackPage.SelectPraise(); feedbackPage.SendPraiseBack(); var nameOfReceiver = praisePage.GetNameOfReceiver(); praisePage.SendPraise(); praisePage.AllDoneHere(); var nameOfSender = homePage.GetNameOfSender(); var lastPublicPraise = homePage.GetLastPublicPraise(); Assert.AreEqual($"{nameOfSender} sent praise to {nameOfReceiver}", lastPublicPraise); }
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); }