Esempio n. 1
0
        public void EditDetailView()
        {
            _grid.LoginOwner();
            _grid.GoToProjectsGrid();
            _grid.ClickTheFirstProject();
            Assert.True(_details.GetTitle() == "FirstProject");
            Assert.False(_details.IsOwnerNameEditable());
            Assert.True(_details.GetDescription() == "Our first project will be SUPRISE Hello World");
            Assert.False(_details.IsCreationDateEditable());
            Assert.True(_details.GetNewMembers() == false);
            Assert.True(_details.GetProjectState() == 2);
            Assert.True(_details.GetSelectedTechnologies().Count == 0);

            _details.EditTitle("FirstProject2");
            _details.EditDescription("Our first project will be SUPRISE Hello World - changed");
            _details.EditNewMembers(true);
            _details.SelectTechnology(1);
            _details.SelectProjectState(1);

            _details.EditSave();

            Assert.True(_grid.IsOnPage_ProjectsGrid());
            _grid.ClickTheFirstProject();

            Assert.True(_details.GetTitle() == "FirstProject2");
            Assert.True(_details.GetDescription() == "Our first project will be SUPRISE Hello World - changed");
            Assert.True(_details.GetNewMembers() == true);
            Assert.True(_details.GetProjectState() == 1);
            Assert.True(_details.GetSelectedTechnologies().Count == 1);
        }