Skip to content

Test: add additional auto-merge scenarios

Jay McCure requested to merge jmc-add-auto-merge-tests into master

What does this MR do and why?

This MR adds additional tests to verify the behaviour of the set to auto-merge button. This is to ensure that the merge widget is in the correct state depending on:

  1. the outcome of CI
  2. the project setting requiring a passing pipeline

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

rspec --format documentation --color spec/features/merge_request/user_merges_only_if_pipeline_succeeds_spec.rb

Edited by Jay McCure

Merge request reports