Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
73146801
Commit
73146801
authored
Aug 04, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
ace7d7a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
spec/features/projects/pipeline_schedules_spec.rb
spec/features/projects/pipeline_schedules_spec.rb
+3
-7
No files found.
spec/features/projects/pipeline_schedules_spec.rb
View file @
73146801
...
@@ -224,19 +224,15 @@ feature 'Pipeline Schedules', :js do
...
@@ -224,19 +224,15 @@ feature 'Pipeline Schedules', :js do
background
do
background
do
create
(
:ci_pipeline_schedule
,
project:
project
,
owner:
user
).
tap
do
|
pipeline_schedule
|
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
.
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
end
visit_pipelines_schedules
find
(
".content-list .pipeline-schedule-table-row:nth-child(1) .btn-group a[title='Edit']"
).
click
end
end
scenario
'user edit and recover the problematic pipeline schedule'
do
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'
fill_in
'schedule_cron'
,
with:
'* 1 2 3 4'
click_button
'Save pipeline schedule'
click_button
'Save pipeline schedule'
page
.
within
(
'.pipeline-schedule-table-row:nth-child(1)'
)
do
page
.
within
(
'.pipeline-schedule-table-row:nth-child(1)'
)
do
expect
(
page
).
to
have_css
(
".next-run-cell time"
)
expect
(
page
).
to
have_css
(
".next-run-cell time"
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment