예제 #1
0
        public void VerifySnowCheckBuilds()
        {
            List <string> snowBuildUrls = ApiDataProvider.GetBuildUrls(Brand.SNO, YEAR, DEALER);

            var urls = string.Empty;

            foreach (var item in snowBuildUrls)
            {
                urls += item + "\n";
            }
            foreach (var buildUrl in snowBuildUrls)
            {
                CPQNavigate.GoToUrl(buildUrl);
                Colors.WaitForChooseColorTitleToDisplay();
                Colors.FooterModule.ClickFooterNextButton();
                Options.SelectRandomOptionsUntilAccessories();
                Accessories.ClikIamFinishedButton();
                Quote.FillQuoteFormDefaultData();
                Quote.ClickGetInternetPriceButton();
                Confirmation.WaitUntilConfirmationPageLoads();
                Assert.IsTrue(Confirmation.IsBuildSummaryHeaderDisplayed(), "Confrimation page header is not displayed");
                Assert.IsTrue(Confirmation.IsOptionsSectionDisplayed(), "Accessories/Options section is not displayed");
                Confirmation.VerifyConfirmationModelNameMatcUrlModel(buildUrl);
            }
        }
        public void VerifyStartingPriceOpensBuildSummary()
        {
            string snowCheckUrl = Options.GetNonStockSnowcheckColorPage();

            CPQNavigate.GoToUrl(snowCheckUrl);
            Colors.WaitForChooseColorTitleToDisplay();

            while (Colors.IsStockModelInfoDisplayed())
            {
                snowCheckUrl = Options.GetNonStockSnowcheckColorPage();
                CPQNavigate.GoToUrl(snowCheckUrl);
                Colors.WaitForChooseColorTitleToDisplay();
            }

            Colors.FooterModule.ClickFooterStartingPrice();
            Assert.IsFalse(Options.IsOptionsBuildSummaryDialogDisplayed(), "Options build summary dialog was not expected");
            Options.FooterModule.ClickFooterNextButton();
            Options.VerifyDefaultSubstepOptionSelected("Starter");
            ClickStartingPriceAndValidateBuildSummaryDialog();
            Options.FooterModule.ClickFooterNextButton();
            Options.VerifyDefaultSubstepOptionSelected("Windshield");
            ClickStartingPriceAndValidateBuildSummaryDialog();
            Options.FooterModule.ClickFooterNextButton();
            Options.VerifyDefaultSubstepOptionSelected("Handlebar");
            ClickStartingPriceAndValidateBuildSummaryDialog();
            Options.FooterModule.ClickFooterNextButton();
            Options.VerifyDefaultSubstepOptionSelected("Shocks");
            ClickStartingPriceAndValidateBuildSummaryDialog();
            Options.FooterModule.ClickFooterNextButton();
            Options.VerifyDefaultSubstepOptionSelected("Gauge");
            ClickStartingPriceAndValidateBuildSummaryDialog();
            Options.FooterModule.ClickFooterNextButtonOpenSummary();
            Options.FooterModule.ClickFooterStartingPrice();
            Assert.IsFalse(Options.IsOptionsBuildSummaryDialogDisplayed(), "Options build summary dialog was not expected");
        }
예제 #3
0
        public void VerifyOptionsNavigationBack()
        {
            string snowCheckUrl = Options.GetNonStockSnowcheckColorPage();

            CPQNavigate.GoToUrl(snowCheckUrl);
            Colors.WaitForChooseColorTitleToDisplay();

            while (Colors.IsStockModelInfoDisplayed())
            {
                snowCheckUrl = Options.GetNonStockSnowcheckColorPage();
                CPQNavigate.GoToUrl(snowCheckUrl);
                Colors.WaitForChooseColorTitleToDisplay();
            }

            Colors.FooterModule.ClickFooterNextButton();
            Options.SelectRandomOptionsUntilAccessories();
            Options.FooterModule.OpenBuildSummary();
            Options.ClickOptionHeadingByName("Shocks");
            Assert.IsTrue(Options.VerifyOptionPageTitleAsExpected("Shocks"), "Options page title was not as per selected option");
            Options.ClickOptionHeadingByName("Handlebar");
            Assert.IsTrue(Options.VerifyOptionPageTitleAsExpected("Handlebar"), "Options page title was not as per selected option");
            Options.ClickOptionHeadingByName("Windshield");
            Assert.IsTrue(Options.VerifyOptionPageTitleAsExpected("Windshield"), "Options page title was not as per selected option");
            Options.ClickOptionHeadingByName("Starter");
            Assert.IsTrue(Options.VerifyOptionPageTitleAsExpected("Starter"), "Options page title was not as per selected option");
        }
        public void VerifyAddAdditionalAccessoriesLink()
        {
            string snowCheckUrl = Options.GetNonStockSnowcheckColorPage();

            CPQNavigate.GoToUrl(snowCheckUrl);
            Colors.WaitForChooseColorTitleToDisplay();

            while (Colors.IsStockModelInfoDisplayed())
            {
                snowCheckUrl = Options.GetNonStockSnowcheckColorPage();
                CPQNavigate.GoToUrl(snowCheckUrl);
                Colors.WaitForChooseColorTitleToDisplay();
            }
            Colors.FooterModule.ClickFooterNextButton();
            Options.SelectRandomOptionsUntilAccessories();
            Options.ClickSummaryAddAdditionalAccessories();
            Assert.IsTrue(Accessories.IsChooseAccessoriesTitleDisplayed(), "Accessories page is not displayed");
        }
        public void VerifySubstepOptionsNotDuplicate()
        {
            string snowCheckUrl = Options.GetNonStockSnowcheckColorPage();

            CPQNavigate.GoToUrl(snowCheckUrl);
            Colors.WaitForChooseColorTitleToDisplay();

            while (Colors.IsStockModelInfoDisplayed())
            {
                snowCheckUrl = Options.GetNonStockSnowcheckColorPage();
                CPQNavigate.GoToUrl(snowCheckUrl);
                Colors.WaitForChooseColorTitleToDisplay();
            }
            Colors.FooterModule.ClickFooterNextButton();
            Assert.IsTrue(Options.VerifySubstepListOptionsNotDuplicate("Starter"));
            Options.FooterModule.ClickFooterNextButton();
            Assert.IsTrue(Options.VerifySubstepListOptionsNotDuplicate("Windshield"));
            Options.FooterModule.ClickFooterNextButton();
            Assert.IsTrue(Options.VerifySubstepListOptionsNotDuplicate("Handlebar"));
            Options.FooterModule.ClickFooterNextButton();
            Assert.IsTrue(Options.VerifySubstepListOptionsNotDuplicate("Shocks"));
            Options.FooterModule.ClickFooterNextButton();
            Assert.IsTrue(Options.VerifySubstepListOptionsNotDuplicate("Gauge"));
        }