Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions frontend/src/components/DashboardLayout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ describe("DashboardLayout", () => {
const banner = container.querySelector('header[aria-label="Naruon workspace header"]');
const sidebar = container.querySelector('aside[aria-label="Naruon workspace sidebar"]');
const nav = container.querySelector('nav[aria-label="Naruon workspace sections"]');
const mailNav = container.querySelector('nav[aria-label="Mail sections"]');
const aiNav = container.querySelector('nav[aria-label="AI workspace sections"]');
const mobileNav = container.querySelector('nav[aria-label="Mobile workspace sections"]');
const mobileNav = container.querySelector('nav[aria-label="Mobile workspace sections"]');
Comment thread
seonghobae marked this conversation as resolved.
const mobileMenuButton = container.querySelector<HTMLButtonElement>('button[aria-label="Open workspace menu"]');
const mobileNavButtons = Array.from(mobileNav?.querySelectorAll('button') ?? []).map(
(button) => button.textContent,
Expand All @@ -50,9 +48,7 @@ describe("DashboardLayout", () => {
expect(banner).not.toBeNull();
expect(sidebar).not.toBeNull();
expect(nav).not.toBeNull();
expect(mailNav).not.toBeNull();
expect(aiNav).not.toBeNull();
expect(mobileNav).not.toBeNull();
expect(mobileNav).not.toBeNull();
Comment thread
seonghobae marked this conversation as resolved.
expect(mobileMenuButton?.getAttribute("aria-expanded")).toBe("false");
expect(mobileMenuButton?.getAttribute("aria-controls")).toBe("mobile-workspace-menu");
expect(mobileNavButtons).toEqual(["받은편지함", "맥락 검색", "AI 실행", "일정"]);
Expand All @@ -61,14 +57,10 @@ describe("DashboardLayout", () => {
expect(logo?.getAttribute("src")).toBe("/brand/naruon-logo.svg");
expect(sidebar?.textContent ?? "").toContain("Naruon");
expect(sidebar?.textContent ?? "").toContain("흐름을 건너, 더 나은 판단과 실행으로.");
expect(mailNav?.textContent ?? "").toContain("받은 메일");
expect(mailNav?.textContent ?? "").toContain("중요 메일");
expect(nav?.textContent ?? "").toContain("받은편지함");
expect(nav?.textContent ?? "").toContain("맥락 종합");
expect(nav?.textContent ?? "").toContain("판단 포인트");
expect(nav?.textContent ?? "").toContain("실행 항목");
expect(nav?.textContent ?? "").toContain("일정 연결");
expect(aiNav?.textContent ?? "").toContain("판단 포인트");
expect(nav?.textContent ?? "").toContain("받은 메일");
expect(nav?.textContent ?? "").toContain("AI Hub");
Comment thread
seonghobae marked this conversation as resolved.
expect(nav?.textContent ?? "").toContain("Prompt Studio");
expect(nav?.textContent ?? "").toContain("워크스페이스 설정");
expect(banner?.textContent ?? "").toContain("캘린더 반영");
expect(banner?.textContent ?? "").toContain("답장 초안");
expect(banner?.textContent ?? "").toContain("할 일 만들기");
Expand Down
Loading