コード例 #1
0
ファイル: GuestCheckout.cs プロジェクト: jopor/TestStore
        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
ファイル: GuestCheckout.cs プロジェクト: jopor/TestStore
        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");
        }