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
Boxiang Sun
gitlab-ce
Commits
71961608
Commit
71961608
authored
Oct 05, 2018
by
Alessio Caiazza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix time dependent jobs spec
parent
ca9b99ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+0
-4
No files found.
spec/features/projects/jobs_spec.rb
View file @
71961608
...
@@ -568,12 +568,8 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
...
@@ -568,12 +568,8 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
end
end
it
'shows delayed job'
,
:js
do
it
'shows delayed job'
,
:js
do
time_diff
=
[
0
,
job
.
scheduled_at
-
Time
.
now
].
max
expect
(
page
).
to
have_content
(
job
.
detailed_status
(
user
).
illustration
[
:title
])
expect
(
page
).
to
have_content
(
'This is a scheduled to run in'
)
expect
(
page
).
to
have_content
(
'This is a scheduled to run in'
)
expect
(
page
).
to
have_content
(
"This job will automatically run after it's timer finishes."
)
expect
(
page
).
to
have_content
(
"This job will automatically run after it's timer finishes."
)
expect
(
page
).
to
have_content
(
Time
.
at
(
time_diff
).
utc
.
strftime
(
"%H:%M:%S"
))
expect
(
page
).
to
have_link
(
'Unschedule job'
)
expect
(
page
).
to
have_link
(
'Unschedule job'
)
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