Commit e138646a authored by Filipa Lacerda's avatar Filipa Lacerda

Fix broken tests

parent 281237d7
......@@ -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:nth-child(2) .build:first-child') do
page.within('.stage-column:nth-child(3) .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')
......@@ -48,7 +48,7 @@ describe "Pipelines", feature: true, js: true do
end
it 'shows the success icon and a retry action for the successfull build' do
page.within('.stage-column:nth-child(3)') do
page.within('.stage-column:nth-child(2) .build:first-child') do
expect(page).to have_selector('.ci-status-icon-success')
expect(page).to have_content('build')
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:nth-child(2) .build:nth-child(2)') do
page.within('.stage-column:nth-child(3) .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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment