BigW Consortium Gitlab

accept.feature 1.08 KB
Newer Older
Douwe Maan committed
1
@project_merge_requests
2 3 4 5 6 7 8 9 10 11
Feature: Project Merge Requests Acceptance
  Background:
    Given There is an open Merge Request
      And I am signed in as a developer of the project

  @javascript
  Scenario: Accepting the Merge Request and removing the source branch
    Given I am on the Merge Request detail page
    When I click on "Remove source branch" option
    And I click on Accept Merge Request
12 13
    Then I should see merge request merged
    And I should not see the Remove Source Branch button
14

15 16 17 18 19 20 21 22
  @javascript
  Scenario: Accepting the Merge Request when URL has an anchor
    Given I am on the Merge Request detail with note anchor page
    When I click on "Remove source branch" option
    And I click on Accept Merge Request
    Then I should see merge request merged
    And I should not see the Remove Source Branch button

23 24 25 26
  @javascript
  Scenario: Accepting the Merge Request without removing the source branch
    Given I am on the Merge Request detail page
    When I click on Accept Merge Request
27 28
    Then I should see merge request merged
    And I should see the Remove Source Branch button