Пример #1
0
        public void ShouldDisplayMessageAboutMandatoryFieldsOnStep2ForGuest()
        {
            step1 = PrepareProductsToChekout();
            step1.CheckGuest();

            step2 = step1.FinishStep1(isGuest: true);
            step2.TryToFinishStep2();
            step2.GetValidationMessage().Should().Contain("must be", "Invalid mandatory field message");
        }
Пример #2
0
        public void ShouldDisplayMessageAboutMandatoryAcceptedPrivacyPolicyForRegister()
        {
            step1 = PrepareProductsToChekout();
            step1.CheckRegister();

            step2 = step1.FinishStep1();
            step2.SetPersonalDetails();
            step2.SetPassword();
            step2.SetAddress();
            step2.TryToFinishStep2();
            step2.GetAlertMessage().Should().Contain("You must agree to the Privacy Policy!", "Invalid mandatory Privacy Policy message");
        }
Пример #3
0
        public void ShouldSuccessfullyOrderTwoProductsForGuest()
        {
            step1 = PrepareProductsToChekout();
            step1.CheckGuest();

            step2 = step1.FinishStep1(isGuest: true);
            step2.SetPersonalDetails();
            step2.SetAddress();

            step3 = step2.FinishStep2();

            step4 = step3.FinishStep3();

            step5 = step4.FinishStep4();
            step5.AgreeTerms();

            step6 = step5.FinishStep5();

            success = step6.ConfirmOrder();
            success.GetMessage().Should().Contain("Your order has been placed!", "Invalid success message");
        }