-
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
[Cases] Fix edit tags flaky tests #175763
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
|
||
userEvent.type(screen.getByRole('combobox'), `${sampleTags[0]}{enter}`); | ||
userEvent.type(screen.getByRole('combobox'), `${sampleTags[0]}{enter}`); |
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.
userEvent.type(screen.getByRole('combobox'), `${sampleTags[0]}{enter}`); | |
userEvent.type(await screen.findByRole('combobox'), `${sampleTags[0]}{enter}`); |
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 forgot them, thanks!
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.
Done!
|
||
await waitFor(() => { | ||
expect(screen.getByText('A tag must contain at least one non-space character.')); |
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.
expect(screen.getByText('A tag must contain at least one non-space character.')); | |
expect(await screen.findByText('A tag must contain at least one non-space character.')); |
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.
Done!
expect( | ||
screen.getByText('The length of the tag is too long. The maximum length is 256 characters.') | ||
); | ||
await waitFor(() => { |
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.
Is the await waitFor(...
still necessary?
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.
Thanks for catching this. I forgot them. I fixed it in 26389a4
(#175763)
|
||
userEvent.paste(screen.getByRole('combobox'), `${longTag}`); | ||
userEvent.keyboard('{enter}'); | ||
userEvent.paste(screen.getByRole('combobox'), `${longTag}`); |
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.
findByRole
|
||
userEvent.type(screen.getByRole('combobox'), ' {enter}'); | ||
userEvent.type(screen.getByRole('combobox'), ' {enter}'); |
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.
findByRole
|
||
userEvent.type(screen.getByRole('combobox'), 'new{enter}'); | ||
userEvent.type(screen.getByRole('combobox'), 'new{enter}'); |
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.
findByRole
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @cnasikas |
## Summary Fixes: elastic#175655, elastic#175623, elastic#175622, elastic#175619, elastic#175618 ### Checklist Delete any items that are not applicable to this PR. - [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 ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
## Summary Fixes: elastic#175655, elastic#175623, elastic#175622, elastic#175619, elastic#175618 ### Checklist Delete any items that are not applicable to this PR. - [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 ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Summary
Fixes: #175655, #175623, #175622, #175619, #175618
Checklist
Delete any items that are not applicable to this PR.
For maintainers