[Test] //2 public void CheckSendingEmoticons() { MailBoxPageSteps mailPage = new MailBoxPageSteps(); LetterPageSteps letterPage = new LetterPageSteps(); loginPage.Authorize(Data.user3, Data.password); mailPage.AddEmoticons(Data.user2, "emoticons", "Hi!"); logoutPage.CommonExit(); loginPage.Authorize(Data.user2, Data.password); mainPage.OpenLetter(); Assert.True(letterPage.ConfirmEmoticons()); }
public void CheckForwardingOfMessages() { string path = TestContext.CurrentContext.TestDirectory; // SettingPageSteps sett = new SettingPageSteps(); FormOfForwardPageSteps formPage = new FormOfForwardPageSteps(); LetterPageSteps letter = new LetterPageSteps(); MailBoxPageSteps mess = new MailBoxPageSteps(); BinPageSteps binPage = new BinPageSteps(); loginPage.Authorize(Data.user2, Data.password); mainPage.GoToSettings(); settPage.GoToForward(); forwardPage.SetForward(Data.user3); logoutPage.CommonExit(); loginPage.Authorize(Data.user3, Data.password); mainPage.OpenLetter(); letter.GoByLinkToConfirm(); logoutPage.CommonExit(); loginPage.Authorize(Data.user2, Data.password); mainPage.GoToSettings(); settPage.GoToForward(); forwardPage.CreateFilter(); mainPage.GoToSettings(); settPage.GoToForward(); forwardPage.AddFilter(); formPage.ConfirmForward(Data.user1); logoutPage.CommonExit(); loginPage.Authorize(Data.user1, Data.password); mess.WriteMessageWithAttach(Data.user2, "With attach", "attach", path + Data.txtFile); mess.WriteMessage(Data.user2, "Without attach", "There is no attachment here."); logoutPage.CommonExit(); loginPage.Authorize(Data.user2, Data.password); Assert.True(mainPage.CheckUserInInbox()); Assert.False(mainPage.CheckLabel()); mainPage.GoToBin(); Assert.True(binPage.CheckLabelInBin()); Assert.True(binPage.CheckUserInBin()); logoutPage.CommonExit(); loginPage.Authorize(Data.user3, Data.password); Assert.True(mainPage.CheckUserInInbox()); Assert.False(mainPage.CheckLabel()); //************ //logoutPage.CommonExit(); //loginPage.Authorize(Data.user2, Data.password); //mainPage.GoToSettings(); //settPage.GoToForward(); //forwardPage.RemoveFilter(); //*********** }