| 12345678910111213141516171819202122232425262728 |
- // kilocode_change - new file
- import { test, type TestFixtures } from "./playwright-base-test"
- import {
- sendMessage,
- waitForWebviewText,
- verifyExtensionInstalled,
- configureApiKeyThroughUI,
- getChatInput,
- } from "../helpers"
- test.describe("E2E Chat Test", () => {
- test("should configure credentials and send a message", async ({ workbox: page, takeScreenshot }: TestFixtures) => {
- await verifyExtensionInstalled(page)
- await waitForWebviewText(page, "Welcome to Kilo Code!")
- await configureApiKeyThroughUI(page)
- await waitForWebviewText(page, "Generate, refactor, and debug code with AI assistance")
- await page.waitForTimeout(5000) // Let the page settle to avoid flakes
- await takeScreenshot("ready-to-chat")
- // Don't take any more screenshots after the reponse starts-
- // llm responses aren't deterministic any capturing the reponse would cause screenshot flakes
- await (await getChatInput(page)).focus()
- await sendMessage(page, "Fill in the blanks for this phrase: 'hello w_r_d'")
- await waitForWebviewText(page, "hello world", 30_000)
- })
- })
|