Exemplo n.º 1
0
        public void WhenAdminSetDepartmentMessagePermissionsForUser(string permissionName, bool value, string user, string dept)
        {
            userManagerPage = new UserManagerPage(driver);
            userManagerPage.NavigateToUserManager(driver);
            Assert.IsTrue(userManagerPage.IsAt(driver, userManagerPage.title));

            permissionsPage = userManagerPage.OpenPermissions(driver, new ReadFromConfig().GetValue(user));
            permissionsPage.IncludeDeptMessagePermissions(driver, readFromConfig.GetDeptName(dept), permissionName, value);
        }
Exemplo n.º 2
0
        public void AdminSetSystemMessagePermissionsForUser(string permissionName, bool value, string user)
        {
            userManagerPage = new UserManagerPage(driver);
            userManagerPage.NavigateToUserManager(driver);
            Assert.IsTrue(userManagerPage.IsAt(driver, userManagerPage.title));

            permissionsPage = userManagerPage.OpenPermissions(driver, new ReadFromConfig().GetValue(user));
            permissionsPage.IncludeSystemMessagePermissions(driver, permissionName, value);
        }