diff options
Diffstat (limited to 'spec/features/commits_spec.rb')
-rw-r--r-- | spec/features/commits_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb index 6d07c68dd13..b72e08b854e 100644 --- a/spec/features/commits_spec.rb +++ b/spec/features/commits_spec.rb @@ -8,7 +8,6 @@ RSpec.describe 'Commits', feature_category: :source_code_management do describe 'CI' do before do - stub_feature_flags(pipeline_details_header_vue: false) sign_in(user) stub_ci_pipeline_to_return_yaml_file end @@ -41,7 +40,11 @@ RSpec.describe 'Commits', feature_category: :source_code_management do wait_for_requests end - it { expect(page).to have_content pipeline.sha[0..7] } + it 'contains commit short id' do + page.within('[data-testid="pipeline-details-header"]') do + expect(page).to have_content pipeline.sha[0..7] + end + end it 'contains generic commit status build' do page.within('[data-testid="jobs-tab-table"]') do @@ -92,7 +95,6 @@ RSpec.describe 'Commits', feature_category: :source_code_management do it 'shows pipeline data' do expect(page).to have_content pipeline.sha[0..7] - expect(page).to have_content pipeline.git_commit_message.gsub!(/\s+/, ' ') expect(page).to have_content pipeline.user.name end end @@ -120,7 +122,7 @@ RSpec.describe 'Commits', feature_category: :source_code_management do describe 'Cancel build' do it 'cancels build', :js, :sidekiq_might_not_need_inline do visit pipeline_path(pipeline) - find('[data-testid="cancelPipeline"]').click + find('[data-testid="cancel-pipeline"]').click expect(page).to have_content 'canceled' end end @@ -136,7 +138,6 @@ RSpec.describe 'Commits', feature_category: :source_code_management do it 'renders header' do expect(page).to have_content pipeline.sha[0..7] - expect(page).to have_content pipeline.git_commit_message.gsub!(/\s+/, ' ') expect(page).to have_content pipeline.user.name expect(page).not_to have_link('Cancel pipeline') expect(page).not_to have_link('Retry') |