[go: up one dir, main page]

Skip to content

Combine similar feature spec of Editing and Creating Merge Request

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

There are currently seemingly similar feature spec for Editing and Creating Merge Request. Are these actually similar? If so, can we combine them to avoid confusion 🙂

Edit MR

  • spec/features/merge_request/user_edits_merge_request_spec.rb
  • spec/features/merge_request/user_edits_mr_spec.rb

Create MR

  • spec/features/merge_request/user_creates_merge_request_spec.rb
  • spec/features/merge_request/user_creates_mr_spec.rb

Background information

The following discussion from !35392 (merged) should be addressed:

  • @a_mcdonald started a discussion:

    Since there are so many scenarios that are squash-related, should it be a separate file that is called accordingly - e.g. user_edits_squash_settings_spec? The fact that we have to have two describe within the same test seems quite strange to me.

    To make things worse, there is also user_edits_mr_spec in the same folder that makes it even more confusing. Perhaps it could be combined with that lonely it 'changes the target branch' that is outside of describe 'Squash commits'?

    Would be nice to have naming a bit more logical but I am not very familiar with this test suite so there might be some historic reasons for that. Leaving this up to you 🙂

Edited by 🤖 GitLab Bot 🤖