Esempio n. 1
0
        public void RequestAccepted()
        {
            _grid.LoginCoder();
            _grid.GoToProjectsGrid();
            _grid.ClickTheSecondProject();
            _details.EditMessage("I want to join");
            _details.Logout();
            _grid.LoginOwner();
            _grid.GoToProjectsGrid();
            _grid.ClickTheSecondProject();
            _details.ClickShowRequestsButton();
            Assert.True(_request.CheckMessage(2, "I want to join"));
            _request.AcceptButtonClick();
            _request.GoToProjectsGrid();
            _grid.ClickTheSecondProject();
            Assert.True(_details.GetMembers().Contains("*****@*****.**"));
            Assert.False(_details.IsShowRequestsButtonOnPage());
            _details.Logout();

            _grid.LoginCoder();
            _grid.GoToProjectsGrid();
            _grid.ClickTheSecondProject();
            Assert.False(_details.IsSendButtonOnPage());
        }