Skip to content

Commit

Permalink
feat: remove word "Dashboard" from header (#236)
Browse files Browse the repository at this point in the history
based on suggestion: #157 (comment)
  • Loading branch information
kantord authored Jan 30, 2025
1 parent e39dbc3 commit 89a6dc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
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

0 comments on commit 89a6dc4

Please sign in to comment.