示例#1
0
        public void TestUsersTable(User user, string[] columnNames)
        {
            // Test steps
            LoginPage loginPage = Application.Get().Login();
            UsersPage usersPage = loginPage.SuccessAdminLogin(user);

            // Check whether column names are presented in user table
            foreach (var columnName in columnNames)
            {
                Assert.IsTrue(usersPage.GetHeadColumnsText().Contains(columnName));
            }

            // Check whether users in appropriate columns in user table are checked
            Assert.IsTrue(usersPage.IsUserCheckedAsAdmin());
            Assert.IsTrue(usersPage.IsUserCheckedAsTeacher());
            Assert.IsTrue(usersPage.IsUserCheckedAsStudent());

            // Return to previous state
            usersPage.GotoLogOut();
        }