Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2018-10-05 21:28:47 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-05 21:28:47 +0300
commit71961608db04740faa086e6fd7b66e7f6e55fd4e (patch)
treeed0d35bd4f0f4736d6774bae472f5e8273445e8e
parentca9b99ffbb944f9ac27814c17139add24a517962 (diff)
Fix time dependent jobs spec
-rw-r--r--spec/features/projects/jobs_spec.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb
index 67b4a520184..2076ce7b4f7 100644
--- a/spec/features/projects/jobs_spec.rb
+++ b/spec/features/projects/jobs_spec.rb
@@ -568,12 +568,8 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
end
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 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')
end