Selenium/How-to/Take screenshots
Appearance
By default screenshots are only taken for failing tests. If you want screenshots for all tests you need to configure it. You can do that in your wdio configuration file:
screenshotsOnFailureOnly: false
Or if you can pass on the parameter:
npm run selenium-test -- --screenshotsOnFailureOnly false