Commit 8622763e authored by Shinya Maeda's avatar Shinya Maeda

Use regex for the extecped time

parent f056bb1d
......@@ -291,9 +291,8 @@ describe 'Environments page', :js do
it "has link to the delayed job's action" do
find('.js-environment-actions-dropdown').click
time_diff = [0, delayed_job.scheduled_at - Time.now].max
expect(page).to have_button('Delayed job')
expect(page).to have_content(Time.at(time_diff).utc.strftime("%H:%M:%S"))
expect(page).to have_content(/\d{2}:\d{2}:\d{2}/)
end
context 'when delayed job is expired already' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment