Skip to content

[Functional tests] Flakiness caused by needing to click buttons twice #71256

@wylieconlon

Description

@wylieconlon

I've noticed in the last few months that we have a high number of flaky tests where our usual attempts to retry are failing. For one example, we had a flaky test where we needed to click the "Save" button inside a modal, and then verify that the modal was closed and that the save went through. The fix for this was to click the "Save" button twice if it didn't take effect the first time, but we still don't understand why this was necessary: #69519

Another example that I found was flaky was the tests that click the "user profile" button. These tests would click the button, but fail to detect that the profile popover was opened. Clicking the button a second time fixes it.

There have been other instances of this, and the common factors seem to be that these components all use modals or popover in EUI, which involve click detection in a few places.

I would like to see if the operations team can help with understanding the cause of these failures, and finding some mitigation for them.

cc @jbudz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions