Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Flaky test: SeleniumJavaScriptTest.shouldGenerateIDsOnComplexSeriesOfEvents() #209

Open
asnare opened this issue Apr 18, 2018 · 0 comments
Assignees
Labels

Comments

@asnare
Copy link
Member

asnare commented Apr 18, 2018

This test is a bit flaky due to a race condition. The pages load the script with defer/async. Although most actions in the test include a wait to ensure the script loads prior to proceeding, the driver.findElement(By.id("custom")).click() action has no such guard. This means it presumably can sometimes run prior to the script loading. In this situation the event behind that action won't be delivered and the test will fail.

The fix for this bug is to ensure the divolte JS module is available before the action fires.

@asnare asnare added the bug label Apr 18, 2018
@asnare asnare self-assigned this Apr 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant