wait for elements instead of an arbitrary duration in tests
Merge pull request #176 from zaach/change-tests

Use waitForElementByCssSelector instead of an arbitrary duration