2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
require 'spec_helper'
|
2018-11-20 20:47:30 +05:30
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
RSpec.describe 'Commit > User uses quick actions', :js, feature_category: :source_code_management do
|
2018-11-20 20:47:30 +05:30
|
|
|
include Spec::Support::Helpers::Features::NotesHelpers
|
|
|
|
include RepoHelpers
|
|
|
|
|
|
|
|
let(:project) { create(:project, :public, :repository) }
|
|
|
|
let(:user) { project.creator }
|
|
|
|
let(:commit) { project.commit }
|
|
|
|
|
|
|
|
before do
|
|
|
|
project.add_maintainer(user)
|
|
|
|
sign_in(user)
|
|
|
|
|
|
|
|
visit project_commit_path(project, commit.id)
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'Tagging a commit' do
|
|
|
|
let(:tag_name) { 'v1.2.3' }
|
|
|
|
let(:tag_message) { 'Stable release' }
|
|
|
|
let(:truncated_commit_sha) { Commit.truncate_sha(commit.sha) }
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
it_behaves_like 'tag quick action'
|
2018-11-20 20:47:30 +05:30
|
|
|
end
|
|
|
|
end
|