2016-04-02 18:10:28 +05:30
|
|
|
@project_commits
|
|
|
|
Feature: Revert Commits
|
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
|
|
|
And I own a project
|
|
|
|
And I visit my project's commits page
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
@javascript
|
2016-04-02 18:10:28 +05:30
|
|
|
Scenario: I revert a commit
|
|
|
|
Given I click on commit link
|
|
|
|
And I click on the revert button
|
|
|
|
And I revert the changes directly
|
|
|
|
Then I should see the revert commit notice
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
@javascript
|
2016-04-02 18:10:28 +05:30
|
|
|
Scenario: I revert a commit that was previously reverted
|
|
|
|
Given I click on commit link
|
|
|
|
And I click on the revert button
|
|
|
|
And I revert the changes directly
|
|
|
|
And I visit my project's commits page
|
|
|
|
And I click on commit link
|
|
|
|
And I click on the revert button
|
|
|
|
And I revert the changes directly
|
|
|
|
Then I should see a revert error
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
@javascript
|
2016-04-02 18:10:28 +05:30
|
|
|
Scenario: I revert a commit in a new merge request
|
|
|
|
Given I click on commit link
|
|
|
|
And I click on the revert button
|
|
|
|
And I revert the changes in a new merge request
|
|
|
|
Then I should see the new merge request notice
|