Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cases] Fix property actions flaky tests #176709

Merged

Conversation

js-jankisalvi
Copy link
Contributor

Summary

Fixes #175314
Fixes #175313
Fixes #175312
Fixes #175311
Fixes #175310
Fixes #174667
Fixes #174384

Checklist

@js-jankisalvi js-jankisalvi added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature v8.13.0 labels Feb 12, 2024
@js-jankisalvi js-jankisalvi self-assigned this Feb 12, 2024
@js-jankisalvi js-jankisalvi requested a review from a team as a code owner February 12, 2024 15:00
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

).toBeInTheDocument();
});

it('renders the modal info correctly for one alert', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this test as it is already covered in remove alerts correctly

@@ -18,8 +18,7 @@ import {
import { RegisteredAttachmentsPropertyActions } from './registered_attachments_property_actions';
import { AttachmentActionType } from '../../../client/attachment_framework/types';

// FLAKY: https://github.com/elastic/kibana/issues/174384
describe.skip('RegisteredAttachmentsPropertyActions', () => {
describe('RegisteredAttachmentsPropertyActions', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything we can do on this test suite to improve flakiness?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked but couldn't find anything.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test that fails is called renders the correct number of actions with error Error: thrown: "Exceeded timeout of 5000 ms for a test.. Probably the waitForEuiPopoverOpen took time (it is the only one with a waitFor inside). I am wondering what if we remove it and wait for the component we expecting. Example: expect((await screen.findByTestId('property-actions-user-action-group')).toBeInTheDocument(). I am not sure if this will fix the flaky test. It is just a speculation. Also,

expect((await screen.findByTestId('property-actions-user-action-group')).children.length).toBe(
      1
    );

can be substituted by expect((await screen.findByTestId('property-actions-user-action-group')).toBeInTheDocument() right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. I could give it a try.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @js-jankisalvi

@js-jankisalvi js-jankisalvi merged commit 873ae31 into elastic:main Feb 13, 2024
18 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Feb 13, 2024
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
## Summary

Fixes elastic#175314
Fixes elastic#175313
Fixes elastic#175312
Fixes elastic#175311
Fixes elastic#175310
Fixes elastic#174667
Fixes elastic#174384


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
## Summary

Fixes elastic#175314
Fixes elastic#175313
Fixes elastic#175312
Fixes elastic#175311
Fixes elastic#175310
Fixes elastic#174667
Fixes elastic#174384


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.13.0
Projects
None yet
6 participants