Commit 2ee1010a authored by Jose Vargas's avatar Jose Vargas

Refactor pipelines spec file

parent 6becd151
...@@ -681,8 +681,6 @@ RSpec.describe 'Pipelines', :js do ...@@ -681,8 +681,6 @@ RSpec.describe 'Pipelines', :js do
end end
.to change { Ci::Pipeline.count }.by(1) .to change { Ci::Pipeline.count }.by(1)
wait_for_requests
expect(Ci::Pipeline.last).to be_web expect(Ci::Pipeline.last).to be_web
end end
...@@ -725,22 +723,6 @@ RSpec.describe 'Pipelines', :js do ...@@ -725,22 +723,6 @@ RSpec.describe 'Pipelines', :js do
end end
end end
describe 'Run Pipelines' do
let(:project) { create(:project, :repository) }
before do
visit new_project_pipeline_path(project)
end
describe 'new pipeline page' do
it 'has field to add a new pipeline' do
expect(page).to have_selector("[data-testid='ref-select']")
expect(find("[data-testid='ref-select']")).to have_content project.default_branch
expect(page).to have_content('Run for')
end
end
end
describe 'Reset runner caches' do describe 'Reset runner caches' do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
...@@ -781,7 +763,6 @@ RSpec.describe 'Pipelines', :js do ...@@ -781,7 +763,6 @@ RSpec.describe 'Pipelines', :js do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
before do before do
stub_feature_flags(new_pipeline_form: false)
visit new_project_pipeline_path(project) visit new_project_pipeline_path(project)
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