Exemple #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");
        }
Exemple #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");
        }