fix(marketplace): close release lifecycle gaps
This commit is contained in:
1 parent
8925f37b16
commit
c56ddb9d3b
8 files changed
+382
-22
No files matched your search
@@ -112,6 +112,23 @@ describe('My Plugins', () => {
|
||||
expect(screen.getByText('稳定版 2.0.0')).toBeVisible();
|
||||
});
|
||||
|
||||
it('shows system-included plugins as supplied with MakeLore without device package actions', () => {
|
||||
const systemIncluded = library.items[3]!;
|
||||
render(<MemoryRouter><MyPluginsView
|
||||
library={{ ...library, items: [systemIncluded] }} installations={{}} state="ready"
|
||||
pending={{}} onRefresh={vi.fn()} onInstall={vi.fn()} onUpdate={vi.fn()}
|
||||
onInstallBeta={vi.fn()} onUninstall={vi.fn()} onRemove={vi.fn()} onReacquire={vi.fn()}
|
||||
/></MemoryRouter>);
|
||||
|
||||
expect(screen.getByText('随 MakeLore 提供')).toBeVisible();
|
||||
expect(screen.queryByText('尚未下载到设备')).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: '下载开发数据服务' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: '更新开发数据服务' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: '删除设备上的开发数据服务' })).not.toBeInTheDocument();
|
||||
expect(screen.getByRole('link', { name: '启用到项目' })).toBeVisible();
|
||||
expect(screen.getByRole('link', { name: '分配给伙伴' })).toBeVisible();
|
||||
});
|
||||
|
||||
it('updates an installed Beta package only through the explicit Beta action', () => {
|
||||
const onUpdate = vi.fn();
|
||||
const onInstallBeta = vi.fn();
|
||||
|
||||
Reference in new issue
Block a user