-
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 case view participants tests #162612
Conversation
@@ -971,6 +971,81 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { | |||
expect(lastBreadcrumb).to.be(theCase.title); | |||
}); | |||
}); | |||
|
|||
describe('reporter', () => { |
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.
cc @adcoelho
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
@elasticmachine merge upstream |
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.
looks good 👍
}); | ||
|
||
after(async () => { | ||
await cases.api.deleteAllCases(); |
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.
nit: since we do it too in afterEach
, this one is redundant no?
const elasticUserText = await participants[1].getVisibleText(); | ||
const testUserText = await participants[2].getVisibleText(); | ||
|
||
expect(casesAllUserText).to.be('cases all_user'); |
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.
Which of them is the assignee?
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.
The casesAllUserText
. I will put a comment.
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.
lgtm, thank you for the reporters test!
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @cnasikas |
## Summary I removed the participants' tests from `x-pack/plugins/cases/public/components/case_view/components/case_view_activity.test.tsx` There were a few things being tested: | Old Test | Where is it covered | | ------------- | ------------- | | should render the participants correctly | Moved to an e2e test | | should render Unknown users correctly | Moved to `UserList` | | should render assignees in the participants section | Moved to an e2e test | I also added a small test for reporters. Fixes elastic#152204 Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2734 ### 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) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
I removed the participants' tests from
x-pack/plugins/cases/public/components/case_view/components/case_view_activity.test.tsx
There were a few things being tested:
UserList
I also added a small test for reporters.
Fixes #152204
Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2734
Checklist
Delete any items that are not applicable to this PR.
For maintainers