Test for next_run_at in the view.
This commit is contained in:
parent
63e88526e1
commit
b3b30c947e
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@ feature 'Pipeline Schedules', :feature do
|
||||||
include WaitForAjax
|
include WaitForAjax
|
||||||
|
|
||||||
let!(:project) { create(:project) }
|
let!(:project) { create(:project) }
|
||||||
let!(:pipeline_schedule) { create(:ci_pipeline_schedule, project: project) }
|
let!(:pipeline_schedule) { create(:ci_pipeline_schedule, :nightly, project: project ) }
|
||||||
let!(:pipeline) { create(:ci_pipeline, pipeline_schedule: pipeline_schedule) }
|
let!(:pipeline) { create(:ci_pipeline, pipeline_schedule: pipeline_schedule) }
|
||||||
let(:scope) { nil }
|
let(:scope) { nil }
|
||||||
let!(:user) { create(:user) }
|
let!(:user) { create(:user) }
|
||||||
|
@ -32,6 +32,7 @@ feature 'Pipeline Schedules', :feature do
|
||||||
it 'displays the required information description' do
|
it 'displays the required information description' do
|
||||||
page.within('.pipeline-schedule-table-row') do
|
page.within('.pipeline-schedule-table-row') do
|
||||||
expect(page).to have_content('pipeline schedule')
|
expect(page).to have_content('pipeline schedule')
|
||||||
|
expect(page).to have_content(pipeline_schedule.real_next_run.strftime('%b %d, %Y'))
|
||||||
expect(page).to have_link('master')
|
expect(page).to have_link('master')
|
||||||
expect(page).to have_link("##{pipeline.id}")
|
expect(page).to have_link("##{pipeline.id}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue