mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-19 16:55:02 +02:00
test(editor): Cover the owner in the project admin fallback
This commit is contained in:
parent
200790fe2f
commit
48aababd42
|
|
@ -146,6 +146,13 @@ describe('ContactAdminModal', () => {
|
|||
type: 'team',
|
||||
relations: [projectEditor],
|
||||
implicitMembers: [
|
||||
{
|
||||
id: 'global-owner-1',
|
||||
firstName: 'Katherine',
|
||||
lastName: 'Johnson',
|
||||
email: 'katherine@example.com',
|
||||
globalRole: { slug: 'global:owner', displayName: 'Owner' },
|
||||
},
|
||||
{
|
||||
id: 'global-admin-1',
|
||||
firstName: 'Margaret',
|
||||
|
|
@ -161,6 +168,7 @@ describe('ContactAdminModal', () => {
|
|||
|
||||
const list = await findByTestId('contact-admin-list');
|
||||
|
||||
expect(list).toHaveTextContent('Katherine Johnson');
|
||||
expect(list).toHaveTextContent('Margaret Hamilton');
|
||||
expect(list).not.toHaveTextContent('Alan Turing');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user