Пример #1
0
        public void EditDetailsWrongDataInput()
        {
            _grid.LoginOwner();
            _grid.GoToProjectsGrid();
            _grid.ClickTheFirstProject();

            Assert.True(_details.GetTitle() == "FirstProject");
            Assert.True(_details.GetDescription() == "Our first project will be SUPRISE Hello World");

            string title       = "";
            string description = "";
            string error       = "Please fill this field";

            _details.EditTitle(title);
            _details.EditSave();
            _details.ErrorDisplayed(error);

            _details.EditDescription(description);
            _details.EditSave();
            _details.ErrorDisplayed(error);

            title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
                    "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";

            description = new string('+', 10).Replace("+", title);

            _details.EditTitle(title);
            _details.EditSave();
            _details.ErrorDisplayed(error);

            _details.EditDescription(description);
            _details.EditSave();
            _details.ErrorDisplayed(error);
        }