public void ShouldDisplayMessageAboutMandatoryFieldsOnStep2ForGuest() { step1 = PrepareProductsToChekout(); step1.CheckGuest(); step2 = step1.FinishStep1(isGuest: true); step2.TryToFinishStep2(); step2.GetValidationMessage().Should().Contain("must be", "Invalid mandatory field message"); }
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"); }