mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Update reporter to use username instead of full name (#121820)
* Update reporter fto use username instead of full name * Fix test for username Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
This commit is contained in:
parent
5e174d2b1a
commit
f7dee0088f
2 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ describe('AllCasesListGeneric', () => {
|
|||
wrapper.find(`span[data-test-subj="case-table-column-tags-0"]`).first().prop('title')
|
||||
).toEqual(useGetCasesMockState.data.cases[0].tags[0]);
|
||||
expect(wrapper.find(`[data-test-subj="case-table-column-createdBy"]`).first().text()).toEqual(
|
||||
useGetCasesMockState.data.cases[0].createdBy.fullName
|
||||
useGetCasesMockState.data.cases[0].createdBy.username
|
||||
);
|
||||
expect(
|
||||
wrapper
|
||||
|
|
|
@ -211,7 +211,7 @@ export const useCasesColumns = ({
|
|||
size="s"
|
||||
/>
|
||||
<Spacer data-test-subj="case-table-column-createdBy">
|
||||
{createdBy.fullName ? createdBy.fullName : createdBy.username ?? i18n.UNKNOWN}
|
||||
{createdBy.username ?? i18n.UNKNOWN}
|
||||
</Spacer>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue