diff --git a/src/components/AppShell.test.tsx b/src/components/AppShell.test.tsx new file mode 100644 index 0000000..6d75c3d --- /dev/null +++ b/src/components/AppShell.test.tsx @@ -0,0 +1,16 @@ +import { render, screen } from "@testing-library/react"; +import { describe, expect, it } from "vitest"; +import { AppShell } from "./AppShell"; + +describe("AppShell", () => { + it("не показывает общую ленту навигации между приложениями", () => { + const view = render( + +
Рабочая область QWord
+
+ ); + + expect(screen.getByText("Рабочая область QWord")).toBeInTheDocument(); + expect(view.container.querySelector(".ribbon")).not.toBeInTheDocument(); + }); +}); diff --git a/src/components/AppShell.tsx b/src/components/AppShell.tsx index 5871b28..f1286e5 100644 --- a/src/components/AppShell.tsx +++ b/src/components/AppShell.tsx @@ -57,16 +57,6 @@ export function AppShell({ activeApp, status, children }: AppShellProps) { -
-
- {["Файл", "Главная", "Вставка", "Рецензирование", "Вид", "Экспорт"].map((tab, index) => ( - - ))} -
-
-
{children}