feat: add plugin marketplace renderer
This commit is contained in:
1 parent
8b6824a8ba
commit
97c9ad1aad
27 files changed
+1585
-23
No files matched your search
@@ -36,11 +36,13 @@ test.describe('Project Plugin Center', () => {
|
||||
schemaVersion: 1,
|
||||
project: { localProjectId: state.localProjectId, durableProjectId: '11111111-1111-4111-8111-111111111111' },
|
||||
policyStatus: 'current',
|
||||
unknownPluginIds: [],
|
||||
items: [{
|
||||
id: 'makelore.data-service', version: '1.0.0', displayName: '开发数据服务', description: '为当前项目提供数据。',
|
||||
contractVersion: 1, requiresBackend: true,
|
||||
enabled: state.enabled, state: state.enabled ? 'configuration_required' : 'disabled', backend: { status: 'unconfigured' },
|
||||
skills: [{ id: 'data-service', assignedAgentIds: [] }],
|
||||
capabilities: [{ id: 'data-service.control', operations: [{ id: 'inspect', billing: { mode: 'included', availability: 'available', notice: 'Fixed quotas apply' } }] }],
|
||||
capabilities: [{ id: 'data-service.control', operations: [{ id: 'inspect', billing: { mode: 'included', availability: 'available', notice: 'Fixed quotas apply' }, tool: null }] }],
|
||||
settingsSurface: 'data-service',
|
||||
}],
|
||||
} } };
|
||||
@@ -58,7 +60,7 @@ test.describe('Project Plugin Center', () => {
|
||||
expect(localProjectId).toBeTruthy();
|
||||
await expect(page.getByText(localProjectId as string)).toHaveCount(0);
|
||||
await expect(page.getByText('11111111-1111-4111-8111-111111111111')).toHaveCount(0);
|
||||
await page.getByRole('button', { name: '启用开发数据服务' }).click();
|
||||
await page.getByRole('button', { name: '启用到项目开发数据服务' }).click();
|
||||
await expect(page.getByRole('article').getByText('待配置')).toBeVisible();
|
||||
await expect(page.getByRole('button', { name: '创建开发数据空间' })).toBeDisabled();
|
||||
const dataServiceCalls = await app.evaluate(() => (
|
||||
|
||||
Reference in new issue
Block a user