Skip to content
Snippets Groups Projects
Commit 8622763e authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Use regex for the extecped time

parent f056bb1d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment