Create several cohorts (not necessary to have members in them)
Create course, go to enrolment methods page
Add a cohort enrolment method, press "Add method and create new", add another, press "Add method". Make sure workflow is working, methods are added
Edit a cohort enrolment method, make sure the new button does not appear and editing works as expected
Pick any other enrolment method, add an instance
Make sure you are taken back to the enrolment methods page
Button was added in MDL-49439 for enrol_meta and enrol_cohort and worked in 3.0
It disappeared in 3.1, it is no longer needed for enrol_meta but still needed for enrol_cohort