summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-04 20:22:44 +0900
committerShinya Maeda <shinya@gitlab.com>2017-08-04 20:22:44 +0900
commit73146801e6b350c731a26dcfa68d79268fa314d4 (patch)
treea04e3ea65b1362569708eb008cf5fade1f2e688b
parentace7d7a2b51dd8d11c1ef21eaab5cc8372762704 (diff)
downloadgitlab-ce-73146801e6b350c731a26dcfa68d79268fa314d4.tar.gz
-rw-r--r--spec/features/projects/pipeline_schedules_spec.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/features/projects/pipeline_schedules_spec.rb b/spec/features/projects/pipeline_schedules_spec.rb
index 280c8a183e6..24b335a7068 100644
--- a/spec/features/projects/pipeline_schedules_spec.rb
+++ b/spec/features/projects/pipeline_schedules_spec.rb
@@ -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