I would like functions in OSnap as a way to trigger repetitive tasks in tests. (e.g. dismissing a CookieConsent-Box).
Adding this again and again could be hard to maintain for users and it could be prone to errors.
As of API-Design I think adding a new key called functions or actions:
I would like functions in OSnap as a way to trigger repetitive tasks in tests. (e.g. dismissing a CookieConsent-Box). Adding this again and again could be hard to maintain for users and it could be prone to errors.
As of API-Design I think adding a new key called
functions
oractions
:./osnap.config.json
so we could use it in a Test like this:
./random-test.osnap.json
This would simplify maintaining and using OSnap since we can change the declaration of the function and not change all of our tests to match.