Exemplo n.º 1
0
        public void VerifyThatUserCanLogin(string login, string name, string password, User user)
        {
            loginPage = new LoginPage(Driver);

            var dashboard = loginPage.EnterUsername(login, user)
                            .EnterPassword(password)
                            .ClickLoginButton();

            switch (loginPage.userProfile)
            {
            case User.Manager:
                teamDashboard = (TeamDashboardPage)dashboard;
                Assert.IsTrue(teamDashboard.IsPageLoadComplete());
                Assert.IsTrue(teamDashboard.IsManagerNameDisplayed(name));
                break;

            case User.Officer:
                myDashboard = (MyDashboardPage)dashboard;
                Assert.IsTrue(myDashboard.IsPageLoadComplete());
                Assert.IsTrue(myDashboard.IsOfficerNameDisplayed(name));
                break;
            }
        }
Exemplo n.º 2
0
 public void ThenIShouldBeTakenToTeamDashboard()
 {
     Assert.IsTrue(teamDashboard.IsPageLoadComplete());
 }