summaryrefslogtreecommitdiff
path: root/spec/features/projects
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-12-09 17:24:21 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-12-09 17:24:21 +0000
commit1e8271b60bcd16b6fcc20d574c9583d593084eef (patch)
tree3882121dbea1ee40de190866d7b560008fa7789c /spec/features/projects
parent78757a0d372b306aefbd16d9c0178d86e02fcb51 (diff)
downloadgitlab-ce-1e8271b60bcd16b6fcc20d574c9583d593084eef.tar.gz
Adds new partial for graph icons.
Fix tests
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/pipelines/pipeline_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb
index e21de05ac64..7358931b9f0 100644
--- a/spec/features/projects/pipelines/pipeline_spec.rb
+++ b/spec/features/projects/pipelines/pipeline_spec.rb
@@ -40,7 +40,7 @@ describe "Pipelines", feature: true, js: true do
context 'pipeline graph' do
it 'shows a running icon and a cancel action for the running build' do
- page.within('.stage-column:first-child .build:first-child') do
+ page.within('.stage-column:nth-child(2) .build:first-child') do
expect(page).to have_selector('.ci-status-icon-running')
expect(page).to have_content('deploy')
expect(page).to have_selector('.ci-action-icon-container .fa-ban')
@@ -56,7 +56,7 @@ describe "Pipelines", feature: true, js: true do
end
it 'shows the failed icon and a retry action for the failed build' do
- page.within('.stage-column:nth-child(2) .build') do
+ page.within('.stage-column:first-child .build') do
expect(page).to have_selector('.ci-status-icon-failed')
expect(page).to have_content('test')
expect(page).to have_selector('.ci-action-icon-container .fa-refresh')
@@ -64,7 +64,7 @@ describe "Pipelines", feature: true, js: true do
end
it 'shows the skipped icon and a play action for the manual build' do
- page.within('.stage-column:first-child .build:nth-child(2)') do
+ page.within('.stage-column:nth-child(2) .build:nth-child(2)') do
expect(page).to have_selector('.ci-status-icon-skipped')
expect(page).to have_content('manual')
expect(page).to have_selector('.ci-action-icon-container .ci-play-icon')