Exemplo n.º 1
0
        public void EnteredAllInfo_ClickConfirm_ThankYouPage()
        {
            var reviewPage = new ReviewPage();

            reviewPage.Open();
            reviewPage.FillOutEverything();
            reviewPage.ConfirmButton.Click();
            var thankYouMessage = reviewPage._wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//h1")));

            Assert.IsTrue(thankYouMessage.Displayed);
            reviewPage.Dispose();
        }
Exemplo n.º 2
0
        public void AccessReviewPage_ClickEditContactInformation_WelcomePageOpens()
        {
            var reviewPage = new ReviewPage();

            reviewPage.OpenSpousePage("Illidan", "Stormrage", "*****@*****.**", "9199199191", "For the Horde, Inc");
            reviewPage.OpenBusinessInfoPage("Mirana", "Moon", "*****@*****.**", "9198958597");
            reviewPage.OpenReviewPage("Independent", "100000", "Less than 2 months");
            reviewPage.EditContactInfoLink.Click();

            Assert.AreEqual("Welcome - Guidant Business Financial Survey", reviewPage._driver.Title);
            reviewPage.Dispose();
        }
Exemplo n.º 3
0
        public void SkipSpousePage_AccessReviewPage_SpouseBallTrackerShowsWhite()
        {
            var reviewPage = new ReviewPage();

            reviewPage.OpenSpousePage("Illidan", "Stormrage", "*****@*****.**", "9199199191", "For the Horde, Inc");
            reviewPage._action.Click(reviewPage.RightArrowKey).Build().Perform();
            reviewPage.OpenReviewPage("Independent", "100000", "Less than 2 months");

            var spouseTrackerColor = reviewPage._wait.Until(ExpectedConditions.ElementExists(
                                                                By.XPath("//div[@class='col-lg-4 mt-lg-4 mb-lg-2 text-center d-none d-lg-block']/div[2]"))).GetAttribute("class");

            Assert.AreEqual("tracker tracker-lg tracker-lg-white rounded-circle", spouseTrackerColor);
            reviewPage.Dispose();
        }
Exemplo n.º 4
0
        public void EditBusinessInfo_ChangeCost_ReviewPageUpdatedwithNewCost()
        {
            var reviewPage = new ReviewPage();

            reviewPage.Open();
            reviewPage.FillOutEverything();
            reviewPage.EditBusinessInfoLink.Click();
            reviewPage.EnterNewProjCost("9999");
            reviewPage.ContinueButton.Click();
            reviewPage._wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@class='text-muted']")));
            var newProjCost = reviewPage.reviewProjCostText;

            Assert.AreEqual("$9999", newProjCost.Text);
            reviewPage.Dispose();
        }