Skip to content
Snippets Groups Projects
Commit 73146801 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Fix spec

parent ace7d7a2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -224,19 +224,15 @@ feature 'Pipeline Schedules', :js do
background do
create(:ci_pipeline_schedule, project: project, owner: user).tap do |pipeline_schedule|
pipeline_schedule.update_attribute(:cron, nil) # Consequently next_run_at will be nil
pipeline_schedule.reload
expect(pipeline_schedule.active).to be_truthy
expect(pipeline_schedule.next_run_at).to be_nil
end
visit_pipelines_schedules
find(".content-list .pipeline-schedule-table-row:nth-child(1) .btn-group a[title='Edit']").click
end
 
scenario 'user edit and recover the problematic pipeline schedule' do
expect(find("#schedule_cron").value).to eq('')
visit_pipelines_schedules
find(".content-list .pipeline-schedule-table-row:nth-child(1) .btn-group a[title='Edit']").click
fill_in 'schedule_cron', with: '* 1 2 3 4'
click_button 'Save pipeline schedule'
page.within('.pipeline-schedule-table-row:nth-child(1)') do
expect(page).to have_css(".next-run-cell time")
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment