import { App } from '@inertiajs/react';
import type { Page } from '@inertiajs/core';
import { renderToString } from 'react-dom/server';
import { expect, test } from 'vitest';
import PeopleIndex from '@/pages/people';
import BusinessClients from '@/pages/company/clients';
import PeopleShow from '@/pages/people/show';
import PeopleAccess from '@/pages/people/access';
import { PeopleClarifications } from '@/components/people-clarifications';
import type { ClarificationData } from '@/components/people-clarifications';
import { PeopleOperationalInsights } from '@/components/people-operational-insights';
const base = {
component: 'people/index',
url: '/pessoas',
version: 'people-regression',
props: { errors: {} },
clearHistory: false,
encryptHistory: false,
} satisfies Page;
test('third party preparation identifies its client and the providers direction', () => {
const page = {
...base,
props: {
errors: {},
ready: true,
kinds: ['service'],
canPrepare: ['service'],
clientMode: true,
clients: [
{
id: 12,
code: 'CLI-12',
name: 'Cliente identificado',
version: 3,
},
],
processes: { data: [], links: [] },
},
};
const html = renderToString(