Add E2E test coverage for group compliance report
Add E2E test coverage for group compliance report
The compliance report lists violations on merge requests. Here is a list of all the potential violation types that we need to cover https://docs.gitlab.com/ee/user/compliance/compliance_report/#violation-types
FYI when developing these E2E tests there is a separation of duties to consider https://docs.gitlab.com/ee/user/compliance/compliance_report/#separation-of-duties
Context: gitlab-org/gitlab#389840 (closed)
Test scenarios/ flows
Below table lists down possible scenarios (WIP)
| Category | Test | Comment |
|---|---|---|
| Separation of Duties | Author merges MR - check violation shows up in report | E2E spec |
| Separation of Duties | Committer merges MR - check violation shows up in report | E2E spec |
| Separation of Duties | MR merged with less than two approvals - check violation shows up in report | E2E spec |
| Separation of Duties | MR merged with two approvals - check violation DOES NOT show up in report | E2E spec |
| MR Drawer | Merge request drawer shows correct MR details | Front end spec |
| Code Coverage | Code coverage violations show up in compliance report | Feature not available yet |
| Pipeline results | MR merged with failed pipeline | Feature not available yet |
| Pipeline results | MR merged with passed pipeline with warnings | Feature not available yet |
Potential bugs
- Separation of duties => "Author approved merge request" and "Committers approved merge request" not available - Status => Confirmed working as intended
Edited by Harsha Muralidhar