feat: move plugin center into project configuration
This commit is contained in:
1 parent
b3f4166f21
commit
e237941399
13 files changed
+260
-103
No files matched your search
@@ -36,7 +36,7 @@ describe('Plugin Marketplace pages', () => {
|
||||
onSearch={onSearch} onSelect={vi.fn()} onAcquire={onAcquire}
|
||||
/></MemoryRouter>);
|
||||
|
||||
expect(screen.getByRole('heading', { name: '插件中心' })).toHaveClass('text-balance');
|
||||
expect(screen.getByRole('heading', { name: '发现插件' })).toHaveClass('text-balance');
|
||||
expect(screen.getByText('部分能力包含,部分按 Token Point 用量计费')).toBeVisible();
|
||||
expect(screen.getByText('1')).toHaveClass('tabular-nums');
|
||||
fireEvent.change(screen.getByRole('searchbox', { name: '搜索插件' }), { target: { value: '笔记' } });
|
||||
@@ -94,7 +94,7 @@ describe('My Plugins', () => {
|
||||
expect(onReacquire).toHaveBeenCalledWith('makelore.removed');
|
||||
const projectLinks = screen.getAllByRole('link', { name: '启用到项目' });
|
||||
expect(projectLinks.length).toBeGreaterThan(0);
|
||||
expect(projectLinks[0]).toHaveAttribute('href', '/project-config?resource=plugins');
|
||||
expect(projectLinks[0]).toHaveAttribute('href', '/project-config?resource=plugins&pluginTab=project');
|
||||
expect(screen.getAllByRole('link', { name: '分配给伙伴' }).length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('运行已暂停')).toBeVisible();
|
||||
expect(screen.getByText('已退役,移除后不可重新获取')).toBeVisible();
|
||||
@@ -131,7 +131,7 @@ describe('My Plugins', () => {
|
||||
expect(screen.getByRole('link', { name: '分配给伙伴' })).toBeVisible();
|
||||
});
|
||||
|
||||
it('renders as the account/device tab inside the unified plugin hub', () => {
|
||||
it('renders as the account/device tab inside project plugin services', () => {
|
||||
render(<MemoryRouter><MyPluginsView
|
||||
embedded library={{ ...library, items: [] }} installations={{}} state="ready"
|
||||
pending={{}} onRefresh={vi.fn()} onInstall={vi.fn()} onUpdate={vi.fn()}
|
||||
@@ -140,6 +140,7 @@ describe('My Plugins', () => {
|
||||
|
||||
expect(screen.getByRole('heading', { name: '我的插件', level: 2 })).toBeVisible();
|
||||
expect(screen.getByTestId('my-plugins-page').tagName).toBe('SECTION');
|
||||
expect(screen.getByRole('link', { name: '浏览插件' })).toHaveAttribute('href', '/project-config?resource=plugins&pluginTab=discover');
|
||||
});
|
||||
|
||||
it('updates an installed Beta package only through the explicit Beta action', () => {
|
||||
|
||||
Reference in new issue
Block a user