Make it easier to write specs for LDAP-enabled states
There have been a few regressions introduced as part of the Login UX upgrade that only occur in LDAP-enabled environments (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7274 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6993 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7058).
When I was working on that feature, I did some manual testing by reconfiguring and restarting my local GitLab instance. But testing each change across multiple configurations (signup, crowd, and/or signin enabled/disabled) was virtually impossible. The best I could do was temporarily change certain flags in the UI to force certain components to render.
In working on some of the regressions, I have attempted to write tests to cover LDAP-enabled states, but even with help from other devs I haven't been able to get them working.
It seems to me that we should provide a clearer path for writing automated tests for variously configured instances of GitLab. At this point, it seems that many configurations are untested and perhaps untestable.
I'm out of my depth here, so I have no idea what would be involved in fixing this, and/or it's possible that I'm missing a very simple solution. If someone can provide insight on how this can be done already, perhaps we just need to provide better documentation.