public void AnonymousPushModeNotAcceptInvalidValueWhenCreatingRepo() { app.NavigateTo <RepositoryController>(c => c.Create()); var form = app.FindFormFor <RepositoryDetailModel>(); form.Field(f => f.Name).SetValueTo(ITH.MakeName()); ITH.SetCheckbox(form.Field(f => f.AllowAnonymous).Field, true); var select = new SelectElement(form.Field(f => f.AllowAnonymousPush).Field); select.SelectByValue(((int)RepositoryPushMode.Global).ToString()); ITH.SetElementAttribute(select.Options[(int)RepositoryPushMode.Global], "value", "47"); form.Submit(); ITH.AssertThatValidationErrorContains(Resources.Repository_Edit_InvalidAnonymousPushMode); }