expect(page).tohave_content('Sorry, we cannot revert this commit automatically.')
end
end
context'with creating a new merge request'do
beforedo
click_revert
end
it'reverts a commit'do
page.within('#modal-revert-commit')do
click_button('Revert')
end
revert_commit(create_merge_request: true)
expect(page).tohave_content('The commit has been successfully reverted. You can now submit a merge request to get this change into the original branch.')
expect(page).tohave_content("From revert-#{Commit.truncate_sha(sample_commit.id)} into master")