I have a test case for checking forgot password, so I need to read a link from the email. In order to do it I made a custom command in wdio.conf.js
browser.addCommand('readLastUnseenLink', function async(){ ... }
It works fine when testing locally on the laptop, it also works well when testing with WebdriverIO Local testing in Browserstack. But, for some reasons, when I push code to Trvais, I got.
browser.readLastUnseenLink is not a function
Does anyone had that issue before or maybe there is some trivial solution?