diff options
Diffstat (limited to 'spec/features/projects/pipelines/pipeline_spec.rb')
-rw-r--r-- | spec/features/projects/pipelines/pipeline_spec.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb index 2fc8345fb47..f042a12884c 100644 --- a/spec/features/projects/pipelines/pipeline_spec.rb +++ b/spec/features/projects/pipelines/pipeline_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do +RSpec.describe 'Pipeline', :js, feature_category: :continuous_integration do include RoutesHelpers include ProjectForksHelper include ::ExclusiveLeaseHelpers @@ -224,7 +224,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do expect(page).not_to have_content('Retry job') within('[data-testid="pipeline-details-header"]') do - expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'running') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Running') end end end @@ -278,7 +278,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do expect(page).not_to have_content('Retry job') within('[data-testid="pipeline-details-header"]') do - expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'running') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Running') end end @@ -312,7 +312,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do expect(page).not_to have_content('Play job') within('[data-testid="pipeline-details-header"]') do - expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'running') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Running') end end end @@ -537,7 +537,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do it 'shows running status in pipeline header', :sidekiq_might_not_need_inline do within('[data-testid="pipeline-details-header"]') do - expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'running') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Running') end end end @@ -900,7 +900,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do subject within('[data-testid="pipeline-details-header"]') do - expect(page).to have_content('pending') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Pending') end within('.js-pipeline-graph') do @@ -925,7 +925,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do subject within('[data-testid="pipeline-details-header"]') do - expect(page).to have_content('running') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Running') end within('.js-pipeline-graph') do @@ -954,7 +954,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do subject within('[data-testid="pipeline-details-header"]') do - expect(page).to have_content('waiting') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Waiting') end within('.js-pipeline-graph') do @@ -974,7 +974,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do subject within('[data-testid="pipeline-details-header"]') do - expect(page).to have_content('running') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Running') end within('.js-pipeline-graph') do @@ -1002,7 +1002,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do subject within('[data-testid="pipeline-details-header"]') do - expect(page).to have_content('waiting') + expect(page).to have_selector('[data-testid="ci-badge-link"]', text: 'Waiting') end within('.js-pipeline-graph') do @@ -1303,7 +1303,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do page.within('[data-testid="pipeline-details-header"]') do expect(page).to have_selector( - %{span[title="#{pipeline.yaml_errors}"]}) + %(span[title="#{pipeline.yaml_errors}"])) end end @@ -1316,7 +1316,7 @@ RSpec.describe 'Pipeline', :js, feature_category: :groups_and_projects do page.within('[data-testid="pipeline-details-header"]') do expect(page).to have_selector( - %{span[title="#{pipeline.present.failure_reason}"]}) + %(span[title="#{pipeline.present.failure_reason}"])) end end end |