You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can add data-specific filters to make it easier to use our new date type in our asserts.
To test a date value than can change (such an SSL certification expiration date), we can use the interval between this date and the current execution time (now)
Starting with a duration in days: daysFromNow and/or daysUntilNow
Should we allow negative value? daysFromNow would be positive if the date in the future while daysUntilNow would be positive if the date is in the past.
Or provide these 2 filters and only allow positive value?
The text was updated successfully, but these errors were encountered:
we will therefore implement the 2 flavors xxxAfterNow/xxxBeforeNow for each duration unit: days, hours, minutes, ....
They can both return negative value, but using the one returning the positive value will be recommended.
For example, assert that the certificate is still valid for the next 30 days.
We can add data-specific filters to make it easier to use our new date type in our asserts.
To test a date value than can change (such an SSL certification expiration date), we can use the interval between this date and the current execution time (
now
)Starting with a duration in days:
daysFromNow and/or daysUntilNow
Should we allow negative value?
daysFromNow
would be positive if the date in the future whiledaysUntilNow
would be positive if the date is in the past.Or provide these 2 filters and only allow positive value?
The text was updated successfully, but these errors were encountered: