Skip to content

Is there a way to do a {{@now}} + 2 days ? #34

Discussion options

You must be logged in to vote

Yes, here is an example :

  Scenario: we can set the time in our tests
    Given that the current time is {{{[@2 days from now at midnight]}}}
    Then now is equal to "2022-02-18T00:00:00Z"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LewandowskiAnthony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants