import { render, screen, fireEvent } from "@testing-library/vue"; import { defineComponent, ref } from "vue"; import { describe, it, expect, vi } from "vitest"; import CopilotKitProvider from "../../../providers/CopilotKitProvider.vue"; import CopilotChatConfigurationProvider from "../../../providers/CopilotChatConfigurationProvider.vue"; import type { ToolsMenuItem } from "../types"; import CopilotChatInput from "../CopilotChatInput.vue"; const TestWrapper = defineComponent({ components: { CopilotKitProvider, CopilotChatConfigurationProvider, }, template: `
`, }); function renderInWrapper(component: ReturnType) { const Wrapped = defineComponent({ components: { TestWrapper, UnderTest: component }, template: ` `, }); return render(Wrapped); } describe("CopilotChatInput Slot System E2E Tests", () => { describe("1. Tailwind Class Slot Override", () => { describe("textArea slot", () => { it("should apply tailwind class string to textArea", () => { const Host = defineComponent({ components: { CopilotChatInput }, template: `