Selenium/How-to/Debug a flaky test

Category:DraftsCategory:Drafts

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

Category:Selenium/Node.js
Category:Drafts Category:Selenium/Node.js