chore: prettier format pass on branch files
Auto-format all files modified during the documents-hub-split feature branch that were not yet aligned with the project's Prettier config (single quotes, semicolons, trailing commas). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -22,9 +22,7 @@ test.describe('Documents hub — upload into entity folder', () => {
|
||||
await login(page, 'super_admin');
|
||||
});
|
||||
|
||||
test('file uploaded with clientId appears in the client entity folder view', async ({
|
||||
page,
|
||||
}) => {
|
||||
test('file uploaded with clientId appears in the client entity folder view', async ({ page }) => {
|
||||
const headers = await apiHeaders(page);
|
||||
|
||||
// 1. Create a client.
|
||||
@@ -157,9 +155,12 @@ test.describe('Documents hub — upload into entity folder', () => {
|
||||
}
|
||||
|
||||
// 3. List files for this client to discover the folder id.
|
||||
const listRes = await page.request.get(`/api/v1/files?entityType=client&entityId=${client.id}`, {
|
||||
headers,
|
||||
});
|
||||
const listRes = await page.request.get(
|
||||
`/api/v1/files?entityType=client&entityId=${client.id}`,
|
||||
{
|
||||
headers,
|
||||
},
|
||||
);
|
||||
if (!listRes.ok()) {
|
||||
test.skip(true, `File list returned ${listRes.status()} — folderId test skipped`);
|
||||
return;
|
||||
|
||||
@@ -78,16 +78,10 @@ test.describe('Visual regression', () => {
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
// Expand the Clients system root.
|
||||
const expandBtn = page
|
||||
.locator('aside')
|
||||
.getByRole('button', { name: 'Expand' })
|
||||
.first();
|
||||
const expandBtn = page.locator('aside').getByRole('button', { name: 'Expand' }).first();
|
||||
const hasExpand = await expandBtn.isVisible({ timeout: 5_000 }).catch(() => false);
|
||||
if (!hasExpand) {
|
||||
test.skip(
|
||||
true,
|
||||
'No expandable folder found in sidebar — hub-entity-folder baseline skipped',
|
||||
);
|
||||
test.skip(true, 'No expandable folder found in sidebar — hub-entity-folder baseline skipped');
|
||||
return;
|
||||
}
|
||||
await expandBtn.click();
|
||||
|
||||
Reference in New Issue
Block a user