482f1962c1
Signed-off-by: Jack Amadeo <jackamadeo@squareup.com> Co-authored-by: block-open-source[bot] <201011344+block-open-source[bot]@users.noreply.github.com> Co-authored-by: block-open-source[bot] <1159699+block-open-source[bot]@users.noreply.github.com> Co-authored-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Matt Toohey <contact@matttoohey.com> Co-authored-by: tulsi <tulsi@block.xyz> Co-authored-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Bradley Axen <baxen@squareup.com> Co-authored-by: Alex Hancock <alexhancock@block.xyz> Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Co-authored-by: Nahiyan Khan <nahiyan.khan@gmail.com> Co-authored-by: Lifei Zhou <lifei@squareup.com>
23 lines
616 B
TypeScript
23 lines
616 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { useTestDriver } from "./lib/setup";
|
|
|
|
describe("Chat", () => {
|
|
const testDriver = useTestDriver();
|
|
|
|
it("returns formatted date when asked", async () => {
|
|
await testDriver.fill(
|
|
'textarea[placeholder*="Message Goose"]',
|
|
'Show me the date of Jan 26 2025 in format of "dd-mm-yyyy"',
|
|
);
|
|
await testDriver.keypress(
|
|
'textarea[placeholder*="Message Goose"]',
|
|
"Enter",
|
|
);
|
|
|
|
const bodyText = await testDriver.waitForText("26-01-2025", {
|
|
timeout: 30000,
|
|
});
|
|
expect(bodyText).toContain("26-01-2025");
|
|
});
|
|
});
|