Example #1
0
        public void RequestDeclined()
        {
            _grid.LoginCoder();
            _grid.GoToProjectsGrid();
            _grid.ClickTheFirstProject();
            _details.EditMessage("I want to join");
            _details.Logout();
            _grid.LoginOwner();
            _grid.GoToProjectsGrid();
            _grid.ClickTheFirstProject();
            _details.ClickShowRequestsButton();
            Assert.True(_request.CheckMessage(1, "I want to join"));
            _request.DeclineButtonClick();
            _request.GoToProjectsGrid();
            _grid.ClickTheFirstProject();
            Assert.False(_details.GetMembers().Contains("*****@*****.**"));
            Assert.False(_details.IsShowRequestsButtonOnPage());
            _details.Logout();

            _grid.LoginCoder();
            _grid.GoToProjectsGrid();
            _grid.ClickTheFirstProject();
            Assert.True(_details.GetReqestStatusMessage().Contains("Your unable to send a join request until"));
        }