Exemple #1
0
 public void Test_GroupFormIsNotAdd_NameFail(string groupName, int location, int direction, string startDate, string finishDate, string teacher, string experts)
 {
     groupsForm.setName(groupName)
     .setLocationDDL(location)
     .setDirectionDDL(direction)
     .setStartDate(startDate)
     .setFinishDate(finishDate)
     .setTeachers(teacher)
     .setExperts(experts)
     .SubmitButton.Click();
     expectedResult = groupsForm.RememberGroup();
     index          = groupsForm.NameField.GetAttribute("value");
     Assert.IsFalse(table.FindRowInTable(expectedResult));
 }
Exemple #2
0
 public void Initialize()
 {
     wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
     driver.Manage().Window.Maximize();
     driver.Url        = @"http://*****:*****@"http://localhost:3000/admin";
     wait.Until((d) => CreateEditGroupsForm.IsAdminPageOpened(d));
     groupsForm = new CreateEditGroupsForm(driver);
     groupsForm.GoToGroups.Click();
     groupsForm.addGroups();
     groupsForm.IsOpened(wait);
     groupsForm.setName("groupNet")
     .setLocationDDL(0)
     .setDirectionDDL(3)
     .setStartDate("02/13/2018")
     .setFinishDate("05/13/2018")
     .setTeachers("K. Kozak")
     .setExperts("Expert")
     .SubmitButton.Click();
     index = groupsForm.NameField.GetAttribute("value");
 }
Exemple #3
0
 public void Test_GroupFormNameFieldIsEdit(string groupName, int location, bool budgetOwner, int direction, string startDate, string finishDate, string teacher, string experts)
 {
     groupsForm.NameField.Clear();
     groupsForm.setName(groupName);
     index = groupsForm.NameField.GetAttribute("value");
     groupsForm.SubmitButton.Click();
     expectedResult = groupsForm.RememberGroup();
     Assert.IsTrue(table.FindRowInTable(expectedResult));
 }
Exemple #4
0
        public void Test_GroupFormNameFieldIsNotEdit(string groupName, string startDate, string finishDate, string teacher, string experts)
        {
            groupsForm.NameField.Clear();
            groupsForm.setName(groupName)
            .SubmitButton.Click();
            List <string> expectedResult = groupsForm.RememberGroup();

            index = groupsForm.NameField.GetAttribute("value");
            Assert.IsFalse(table.FindRowInTable(expectedResult));
        }
Exemple #5
0
 public void Test_NameFieldDisplayedText()
 {
     groupForm.setName("someText");
     Assert.AreEqual("someText", groupForm.NameField.GetAttribute("value"));
 }