Esempio n. 1
0
		public void Test002_EditSecurityRoleGroup()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit the Security Role Group'");

			var manageRolesPage = new ManageRolesPage(_driver);

			manageRolesPage.OpenUsingControlPanel(_baseUrl);

			manageRolesPage.AddDescriptionToSecurityRoleGroup(_roleGroupName, _roleGroupDescription);

			manageRolesPage.OpenUsingControlPanel(_baseUrl);
			manageRolesPage.EditSecurityRoleGroup(_roleGroupName);

			Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the Security role Group description is present in the box");
			Assert.That(_roleGroupDescription,
			            Is.EqualTo(manageRolesPage.WaitForElement(By.XPath(ManageRolesPage.RoleGroupNameDescriptionTextBox)).Text),
			            "The role description is not added correctly");
		}