This PR essentially wraps all the page functions used in the test suite around a try..catch so we can log the stack trace for errors in tests, making it easier to debug them.
To do this, it adds a safeEvaluate function to window which the page functions are now wrapped with, which just saves us from having to write the try... catch block for every single page function in each test.
This PR essentially wraps all the page functions used in the test suite around a try..catch so we can log the stack trace for errors in tests, making it easier to debug them.
To do this, it adds a
safeEvaluate
function towindow
which the page functions are now wrapped with, which just saves us from having to write thetry... catch
block for every single page function in each test.