Selenium/How-to/Debug a flaky test

Jump to navigation Jump to search

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.


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

More information[edit]