fix(tests): move plugin tab assertion to EditorGroupTabBar and lift TreeItem computed budget
This commit is contained in:
2 files changed
+3
-4
No files matched your search
@@ -3,7 +3,7 @@ import { describe, expect, it } from "vitest";
|
||||
|
||||
const appSource = readFileSync(new URL("../../../App.vue", import.meta.url), "utf8");
|
||||
const toolbarSource = readFileSync(new URL("../../../components/layout/AppToolbar.vue", import.meta.url), "utf8");
|
||||
const tabBarSource = readFileSync(new URL("../../../components/layout/AppTabBar.vue", import.meta.url), "utf8");
|
||||
const editorGroupTabBarSource = readFileSync(new URL("../../../components/layout/EditorGroupTabBar.vue", import.meta.url), "utf8");
|
||||
const driverStoreSource = readFileSync(new URL("../../../components/config/DriverStoreDialog.vue", import.meta.url), "utf8");
|
||||
const appDialogsSource = readFileSync(new URL("../../../components/layout/AppDialogs.vue", import.meta.url), "utf8");
|
||||
const connectionDialogSource = readFileSync(new URL("../../../components/connection/ConnectionDialog.vue", import.meta.url), "utf8");
|
||||
@@ -15,7 +15,7 @@ describe("plugin center integration", () => {
|
||||
expect(toolbarSource).toContain("emit('open-plugin-center')");
|
||||
expect(appSource).toContain('@open-plugin-center="openPluginCenterPage()"');
|
||||
expect(appSource).toContain("<PluginCenterPage");
|
||||
expect(tabBarSource).toContain("data-plugin-center-tab");
|
||||
expect(editorGroupTabBarSource).toContain("data-plugin-center-tab");
|
||||
});
|
||||
|
||||
it("keeps plugin management out of Driver Manager", () => {
|
||||
@@ -53,6 +53,5 @@ describe("plugin center integration", () => {
|
||||
expect(template).toContain("<SelectTrigger");
|
||||
expect(template).not.toContain("max-w-md grid-cols-3");
|
||||
expect(template).not.toContain("marketplaceCategory");
|
||||
expect(template).toContain("repeat(auto-fit");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user