Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Deflake UI test teardown (#5466)
Some UI tests would fail with a timeout during teardown. This may indicate some condition in which player.destroy() could hang, though I have been unable to replicate that hypothetical condition in an explicit unit test. Since that issue has nothing to do with the UI tests, set a 10-second timeout for UI teardown, after which we move on without a failure. This also adds a check for container.parentElement before removing child elements, since at least once I saw an exception during test teardown from an element that was already removed from its parent by that point.
- Loading branch information