Exemplo n.º 1
0
        public void UserAskedQuestion()
        {
            var sharedSteps = new SharedSteps();

            sharedSteps.LoggedAsUser();

            WebBrowser.Current.GoTo(UrlHelper.AbsoluteUrl("/"));

            WhenIChooseCategoryAndTypeQuestionText("Dom", "Pytanie testowe");

            sharedSteps.WhenIClickButton("Zadaj pytanie ekspertowi!");

            sharedSteps.WhenIClickButton("Pomiń ten krok");

            new PaymentsSteps().WhenIFillPaymentForm();

            sharedSteps.WhenIClickButton("Uzyskaj odpowiedź");
        }
Exemplo n.º 2
0
        public void UserAddedPostToHisQuestion()
        {
            var sharedSteps = new SharedSteps();

            sharedSteps.LoggedAsUser();

            WebBrowser.Current.GoTo(UrlHelper.AbsoluteUrl("/moje-pytania"));

            sharedSteps.WhenIClickButton("Pytanie testowe z ekspertem");

            sharedSteps.WhenIClickButton("Odpowiedz");

            WhenITypeQuestionText("Kolejne testowe pytanie");

            sharedSteps.WhenIClickButton("Dodaj odpowiedź");

            AuthenticationHelper.LogoutUser();
        }