Your solution is not how it should be solved.
We already have a default Date.now when step.end is called.
While you are trying to fix some webdriver.io issue you may break some other test framework plugins.
I replied back to my issue. There are cases where step.end is not called. We simply should have a guard against that while those root issues are investigated and fixed.
Your solution is not how it should be solved. We already have a default
Date.now
whenstep.end
is called. While you are trying to fix some webdriver.io issue you may break some other test framework plugins.Let's keep more conversation in your issue first.