Complete platform management workflows
This commit is contained in:
@@ -31,6 +31,8 @@ describe("PluginsPage", () => {
|
||||
const html = renderToStaticMarkup(<PluginsPage initialState={{ listState: "loading" }} />);
|
||||
|
||||
expect(html).toContain("插件市场");
|
||||
expect(html).toContain("page-summary-chip");
|
||||
expect(html).not.toContain("metric-card");
|
||||
expect(html).toContain("正在加载插件市场");
|
||||
});
|
||||
|
||||
@@ -54,6 +56,7 @@ describe("PluginsPage", () => {
|
||||
expect(html).toContain("安装");
|
||||
expect(html).toContain("启用");
|
||||
expect(html).toContain("停用");
|
||||
expect(html).toContain('role="dialog"');
|
||||
expect(html).not.toContain("billing");
|
||||
expect(html).not.toContain("/Users/");
|
||||
expect(html).not.toContain("unix://");
|
||||
@@ -71,4 +74,12 @@ describe("PluginsPage", () => {
|
||||
expect(html).toContain("本地演示数据");
|
||||
expect(html).toContain("本地演示数据仅用于前端开发");
|
||||
});
|
||||
|
||||
it("does not open a plugin detail pane until a plugin is selected", () => {
|
||||
const html = renderToStaticMarkup(<PluginsPage initialState={{ listState: "ready", plugins: [marketplacePlugin] }} />);
|
||||
|
||||
expect(html).toContain("Example Server");
|
||||
expect(html).not.toContain('role="dialog"');
|
||||
expect(html).not.toContain("manifest validated");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user