mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test: update TypingCursor tests for new hero copy and 5s interval
This commit is contained in:
@@ -66,13 +66,15 @@ describe("Hero", () => {
|
||||
describe("TypingCursor", () => {
|
||||
it("renders the first phrase", () => {
|
||||
render(<TypingCursor />);
|
||||
expect(screen.getByText("No signups. No accounts.")).toBeDefined();
|
||||
expect(
|
||||
screen.getByText("Your images never leave your server. Novel concept, right?"),
|
||||
).toBeDefined();
|
||||
});
|
||||
|
||||
it("uses a 3-second interval for rotation", () => {
|
||||
it("uses a 5-second interval for rotation", () => {
|
||||
vi.useFakeTimers();
|
||||
render(<TypingCursor />);
|
||||
const first = screen.getByText("No signups. No accounts.");
|
||||
const first = screen.getByText("Your images never leave your server. Novel concept, right?");
|
||||
expect(first).toBeDefined();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user