提交 abed2c1a 编写于 作者: R Regis

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

上级 5e558af7
......@@ -276,29 +276,19 @@ describe 'Pipelines', :feature, :js do
before do
visit namespace_project_pipelines_path(project.namespace, project)
end
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}']")
wait_for_vue_resource
end
context 'when clicking a graph stage' do
it 'should open a dropdown' do
find('.js-builds-dropdown-button').trigger('click')
wait_for_ajax
expect(page).to have_link build.name
end
it 'should be possible to retry the failed build' do
find('.js-builds-dropdown-button').trigger('click')
wait_for_ajax
find('a.ci-action-icon-container').trigger('click')
expect(page).not_to have_content('Cancel running')
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册