Commit abed2c1a authored by Regis's avatar Regis

remove data attribute test since endpoint is in Vue state for stage component

parent 5e558af7
...@@ -276,29 +276,19 @@ describe 'Pipelines', :feature, :js do ...@@ -276,29 +276,19 @@ describe 'Pipelines', :feature, :js do
before do before do
visit namespace_project_pipelines_path(project.namespace, project) visit namespace_project_pipelines_path(project.namespace, project)
end wait_for_vue_resource
it 'should render a mini pipeline graph' do
endpoint = stage_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline, stage: build.name)
expect(page).to have_selector('.mini-pipeline-graph')
expect(page).to have_selector(".js-builds-dropdown-button[data-stage-endpoint='#{endpoint}']")
end end
context 'when clicking a graph stage' do context 'when clicking a graph stage' do
it 'should open a dropdown' do it 'should open a dropdown' do
find('.js-builds-dropdown-button').trigger('click') find('.js-builds-dropdown-button').trigger('click')
wait_for_ajax
expect(page).to have_link build.name expect(page).to have_link build.name
end end
it 'should be possible to retry the failed build' do it 'should be possible to retry the failed build' do
find('.js-builds-dropdown-button').trigger('click') find('.js-builds-dropdown-button').trigger('click')
wait_for_ajax
find('a.ci-action-icon-container').trigger('click') find('a.ci-action-icon-container').trigger('click')
expect(page).not_to have_content('Cancel running') expect(page).not_to have_content('Cancel running')
end end
......
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