Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

feat: remove word "Dashboard" from header #236

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
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
12 changes: 3 additions & 9 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ describe("App", () => {
expect(screen.getByText("Certificates")).toBeVisible();
expect(screen.getByText("Help")).toBeVisible();
expect(screen.getByRole("banner", { name: "App header" })).toBeVisible();
expect(
screen.getByRole("heading", { name: /codeGate dashboard/i }),
).toBeVisible();
expect(screen.getByRole("heading", { name: /codeGate/i })).toBeVisible();

await userEvent.click(screen.getByText("Certificates"));

Expand Down Expand Up @@ -79,19 +77,15 @@ describe("App", () => {
await userEvent.click(screen.getByText("Help"));

await waitFor(() =>
expect(
screen.getByRole("link", { name: /codeGate dashboard/i }),
).toBeVisible(),
expect(screen.getByRole("link", { name: /codeGate/i })).toBeVisible(),
);
});

it("should render workspaces dropdown", async () => {
render(<App />);

await waitFor(() =>
expect(
screen.getByRole("link", { name: "CodeGate Dashboard" }),
).toBeVisible(),
expect(screen.getByRole("link", { name: "CodeGate" })).toBeVisible(),
);

const workspaceSelectionButton = screen.getByRole("button", {
Expand Down
2 changes: 1 addition & 1 deletion src/features/header/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function HomeLink() {
return (
<Link to="/">
<h1 className="text-2xl text-primary font-title w-max flex font-semibold">
CodeGate Dashboard
CodeGate
</h1>
</Link>
);
Expand Down
Loading