public void Can_Add_Praise_To_Goal() { FeedbackPage feedbackPage = new FeedbackPage(browser); feedbackPage.GoTo(); feedbackPage.SelectPraise(); var titleOfSelectedGoal = feedbackPage.AddFeedbackToGoal(); Assert.AreEqual(titleOfSelectedGoal, feedbackPage.GetTitleOfAttachedGoal()); }
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); }