test(editor): Cover the owner in the project admin fallback

This commit is contained in:
Theo Nastos 2026-10-19 14:39:26 +03:00
parent 200790fe2f
commit 48aababd42
No known key found for this signature in database

View File

@ -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');
});