Пример #1
0
        public void SignInAccountTest()
        {
            LoginPageView loginPageView = new LoginPageView();

            loginPageView.SetTextCreateEmail("standard_user");
            loginPageView.SetTextCreatePassword("secret_sauce");
            loginPageView.LoginButtonTest();
            loginPageView.AddToCartTest();
            loginPageView.GoToCartTest();
            loginPageView.RemoveTest();
            loginPageView.ContinueShoppingTest();
            loginPageView.Addonesie();
            loginPageView.GoToCartTest();
            loginPageView.ContionueShopTest();
            loginPageView.AddToCartTest();
            loginPageView.GoToCartTest();
            loginPageView.CheckoutTest();
            loginPageView.SetTextId("Zorba");
            loginPageView.SetTextLastName("Test");
            loginPageView.SetTextZipCode("12345");
            loginPageView.ContinueAfterMessage();
            loginPageView.ClickForFinishTest();
            Assert.AreEqual("THANK YOU FOR YOUR ORDER", loginPageView.GetTextForAfterClickFinishButton());
            Console.WriteLine(loginPageView.GetTextForAfterClickFinishButton());
            loginPageView.HamburgerMenuButton();
            loginPageView.LogoutTEst();
        }