Exemplo n.º 1
0
        public void SecondScenarioLoginTest()
        {
            LoginPageView loginPageView = new LoginPageView();

            loginPageView.SetTextCreateEmail("standard_user");
            loginPageView.SetTextCreatePassword("secret_sauce");
            loginPageView.LoginButtonTest();
            loginPageView.GoToCartTest();
            loginPageView.CheckoutTest();
            loginPageView.ContinueAfterMessage();
            Assert.AreEqual("Error: First Name is required", loginPageView.GetTextErorMEssage());
            Console.WriteLine(loginPageView.GetTextErorMEssage());
            loginPageView.HamburgerMenuButton();
            loginPageView.LogoutTEst();
        }