Improve tests feature tests for logs to check for date in a local timezone
Goal
We should improve the tests at spec/features/projects/environments_pod_logs_spec.rb
to ensure the dates are being displayed correctly.
Our test should pass no matter which timezone we use locally.
Why work on this?
In !29409 (merged) we started displaying the logs using the local timezone, but lost the ability to check that dates are correct in our feature/specs
.
This could leave us open to regressions related to dates in the logs in the future.
Original Discussion
The following discussion from !29409 (merged) should be addressed:
-
@mrincon started a discussion: (+2 comments) 👋 @svistas I could not make this test pass, even if I callTime.use_zone('UTC')
the spec result is matching my local timezone.Could you help me? Thanks a lot!
Edited by Miguel Rincon