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

[Security Solution] Fix flaky timeline pagination tests #173531

Merged
merged 4 commits into from
Dec 20, 2023

Conversation

lgestc
Copy link
Contributor

@lgestc lgestc commented Dec 18, 2023

Summary

Fixes #169413 #169619

and colocates related tests cases.

Flaky TR pipeline: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4614

@lgestc
Copy link
Contributor Author

lgestc commented Dec 18, 2023

/ci

@lgestc lgestc changed the title Iss 169413 flaky timeline pagination [Security Solution] Fix flaky timeline pagination tests Dec 18, 2023
@lgestc
Copy link
Contributor Author

lgestc commented Dec 19, 2023

/ci

1 similar comment
@lgestc
Copy link
Contributor Author

lgestc commented Dec 19, 2023

/ci

@lgestc lgestc force-pushed the iss_169413_flaky_timeline_pagination branch from 12b927f to 6cb1c40 Compare December 19, 2023 14:45
@lgestc
Copy link
Contributor Author

lgestc commented Dec 19, 2023

/ci

@lgestc lgestc marked this pull request as ready for review December 19, 2023 16:01
@lgestc lgestc requested a review from a team as a code owner December 19, 2023 16:01
@lgestc lgestc added Team:Threat Hunting:Investigations Security Solution Investigations Team release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting labels Dec 19, 2023
Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

I approved the PR, but I feel like we should extract the click event into separate methods to follow the convention. I'll let you decide if you want to do it or not! 😄

Also I feel like the string in the top level describe (Pagination) and the title of the actual test (should paginate records correctly) isn't super descriptive of what the test is actually testing. Is it in timeline? (I'm guessing yes because it's in the timeline folder). Is it a specific tab? I feel like to make this easier to understand one or both should be changed/impdoved... Thoughts?


it('should be able to go to next / previous page', () => {
// should be able to go to next / previous page
Copy link
Contributor

Choose a reason for hiding this comment

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

should we extract the next 2 lines in a tasks functions?

const itemsPerPage = 100;
cy.get(TIMELINE_EVENTS_COUNT_PER_PAGE_BTN).first().click({ force: true });
cy.get(TIMELINE_EVENTS_COUNT_PER_PAGE_BTN).first().click();
Copy link
Contributor

Choose a reason for hiding this comment

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

should we extract the next 2 lines in a tasks functions?

@lgestc lgestc force-pushed the iss_169413_flaky_timeline_pagination branch from d294a32 to c94ed80 Compare December 20, 2023 13:56
@lgestc lgestc enabled auto-merge (squash) December 20, 2023 14:01
@lgestc lgestc merged commit bada436 into elastic:main Dec 20, 2023
37 checks passed
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

  • 💚 Build #184289 succeeded d294a32caf631c9fce440cebbb09af925caf2d06
  • 💔 Build #183963 failed fb6298d422504633818f5674c93192c520560563

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

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 release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.13.0
Projects
None yet
4 participants