Skip to content

Commit 89a6dc4

Browse files
authored
feat: remove word "Dashboard" from header (#236)
based on suggestion: #157 (comment)
1 parent e39dbc3 commit 89a6dc4

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/App.test.tsx

+3-9
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ describe("App", () => {
1111
expect(screen.getByText("Certificates")).toBeVisible();
1212
expect(screen.getByText("Help")).toBeVisible();
1313
expect(screen.getByRole("banner", { name: "App header" })).toBeVisible();
14-
expect(
15-
screen.getByRole("heading", { name: /codeGate dashboard/i }),
16-
).toBeVisible();
14+
expect(screen.getByRole("heading", { name: /codeGate/i })).toBeVisible();
1715

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

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

8179
await waitFor(() =>
82-
expect(
83-
screen.getByRole("link", { name: /codeGate dashboard/i }),
84-
).toBeVisible(),
80+
expect(screen.getByRole("link", { name: /codeGate/i })).toBeVisible(),
8581
);
8682
});
8783

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

9187
await waitFor(() =>
92-
expect(
93-
screen.getByRole("link", { name: "CodeGate Dashboard" }),
94-
).toBeVisible(),
88+
expect(screen.getByRole("link", { name: "CodeGate" })).toBeVisible(),
9589
);
9690

9791
const workspaceSelectionButton = screen.getByRole("button", {

src/features/header/components/header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function HomeLink() {
1111
return (
1212
<Link to="/">
1313
<h1 className="text-2xl text-primary font-title w-max flex font-semibold">
14-
CodeGate Dashboard
14+
CodeGate
1515
</h1>
1616
</Link>
1717
);

0 commit comments

Comments
 (0)