Exemplo n.º 1
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");
        }
Exemplo n.º 2
0
        public void ShouldSuccessfullyOrderTwoProductsForRegister()
        {
            step1 = PrepareProductsToChekout();
            step1.CheckRegister();
            step2 = step1.FinishStep1();

            step2.SetPersonalDetails();
            step2.SetPassword();
            step2.SetAddress();
            step2.CheckPrivacyPolicy();
            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");
        }