Skip to content
Open
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
21 changes: 21 additions & 0 deletions src/ui/src/components/shaves/NoShaves.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { NoShaves } from "./NoShaves";

describe("NoShaves (#966)", () => {
it("uses a sad face emoji instead of the stop-sign emoji (AC1)", () => {
render(<NoShaves />);

const title = screen.getByText(/You don't have any YakShaves yet!/i);
expect(title.textContent).toContain("😢");
expect(title.textContent).not.toContain("⛔️");
});
Comment on lines +9 to +12

it("has no dash between the emoji and the message text (AC2)", () => {
render(<NoShaves />);

const title = screen.getByText(/You don't have any YakShaves yet!/i);
expect(title.textContent).toBe("😢 You don't have any YakShaves yet!");
expect(title.textContent).not.toMatch(/-\s*You don't have any YakShaves yet!/);
});
Comment on lines +17 to +20
});
2 changes: 1 addition & 1 deletion src/ui/src/components/shaves/NoShaves.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function NoShaves() {
return (
<Empty>
<EmptyHeader className="gap-6 items-start!">
<EmptyTitle>⛔️ - You don't have any YakShaves yet!</EmptyTitle>
<EmptyTitle>😢 You don't have any YakShaves yet!</EmptyTitle>
<EmptyDescription>Get started in 3 easy steps:</EmptyDescription>
</EmptyHeader>
<div className="flex flex-col gap-6">
Expand Down
Loading