Example #1
0
        public void testMainPage()
        {
            //login
            LoggedInPage loggedIn = Login().LoginWithUser(TestContext.Parameters["username"], TestContext.Parameters["password"]);

            Assert.IsTrue(loggedIn.isHeaderDisplayed());
        }
Example #2
0
        public void testLogin()
        {
            //assign
            GitSignIn gitSignIn = new GitSignIn(driver);

            //act
            LoggedInPage loggedIn = gitSignIn.LoginWithUser(TestContext.Parameters["username"], TestContext.Parameters["password"]);

            //assert
            Assert.IsTrue(driver.FindElement(loggedIn.loggedInXPath).Displayed);
            Assert.That(loggedIn.getLogInName().Contains(TestContext.Parameters["username"]));
        }