Пример #1
0
        public void CheckTextUnderTheProductInWaitingList()
        {
            string productName = "Фен Philips HP8233/00";

            homePage.GetHeader().EnterSearchField("Фен Philips HP")
            .ClickSearchButton();
            LearnAboutAdmissionWindow learnAboutAdmissionPage = homePage.GetLearnAboutAdmissionWindow()
                                                                .ClickToLearnAboutAdmissionButton(productName);

            bool isMessagesPresent = learnAboutAdmissionPage.ClickToSubmitButton()
                                     .IsRequiredFieldsPresent();

            Assert.IsTrue(isMessagesPresent, "The required massages haven't existed on page.");

            string notificationText = learnAboutAdmissionPage.EnterNameField("user")
                                      .EnterEmailField("*****@*****.**")
                                      .ClickToSubmitButton()
                                      .GetTextIntoNotificationLabel();

            Assert.AreEqual(notificationText, "Если товар появится на складе, вам придет сообщение на почту.", "The natification hasn't existed on page.");

            homePage = learnAboutAdmissionPage.ClickToCloseButton();
            bool isProductWithWaitLabel = homePage.IsProductWithWaitListLabel(productName);

            Assert.IsTrue(isProductWithWaitLabel, "The product hasn't had wait label.");
        }
Пример #2
0
 public void GivenIClickUnderTheProductByTheLinkInquireAboutReceipt(string productName)
 {
     learnAboutAdmissionPage = homePage.GetLearnAboutAdmissionWindow()
                               .ClickToLearnAboutAdmissionButton(productName);
 }