-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] Fix flaky timeline pagination tests #173531
Conversation
/ci |
/ci |
1 similar comment
/ci |
12b927f
to
6cb1c40
Compare
/ci |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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?
d294a32
to
c94ed80
Compare
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
Summary
Fixes #169413 #169619
and colocates related tests cases.
Flaky TR pipeline: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4614