Selenium/How-to/Debug a flaky test

The first step is to reproduce the problem. Since a flaky test will fail only sometimes, that can be tricky. Running the test multiple times is the simplest thing to do.

package.json

{
	"scripts": {
		"selenium-test": "for i in $(seq 1 10); do wdio ./tests/selenium/wdio.conf.js; done"
	}
}

More information

edit