I have a script that needs to be run after passing all the tests, how can this be done in Wdio?
after: async function () {
await deleteAllDataFromAccount()
},
Such code in the configuration file does not help. How to solve this problem?
I have a script that needs to be run after passing all the tests, how can this be done in Wdio?
after: async function () {
await deleteAllDataFromAccount()
},
Such code in the configuration file does not help. How to solve this problem?
I'm not sure I understand properly, but you want to run this method after a suite ends?
For this you have afterSuite
hook.
If you want to run it after all tests from all of suites, you have onComplete
hook. Please see the configuration file example from wdio docs (https://webdriver.io/docs/configurationfile).