janna leave queue gen ai test #34
Annotations
2 errors
Run npm test:
test/genAIformQueueView.Lee.test.jsx#L59
TestingLibraryElementError: Unable to find an element with the placeholder text of: /enter your name/i
Ignored nodes: comments, script, style
<body>
<div>
<div
class="min-h-screen p-4"
>
<div
class="max-w-6xl mx-auto"
>
<div
class="mb-2 sm:mb-6 border border-blue-500 rounded-md p-2 sm:p-5"
>
<div
class="text-2xl text-blue-500 font-bold"
>
OH
</div>
</div>
<div
class="grid grid-cols-1 md:grid-cols-2 gap-6"
>
<div
class=" overflow-y-auto bg-white shadow rounded sm:h-[calc(100vh-200px)]"
>
<div
class="p-4 sm:h-full p-4"
>
<div
class="h-full flex flex-col"
>
<h2
class="text-xl font-semibold mb-4"
>
Submit Your Question
</h2>
<form
class="flex-1 flex flex-col space-y-4"
>
<div>
<label
class="block text-sm font-medium mb-1"
>
Your Name:
</label>
<input
class="w-full p-2 border rounded-md"
required=""
type="text"
value=""
/>
</div>
<div
class="flex-1"
>
<label
class="block text-sm font-medium mb-1"
>
Your Question:
</label>
<textarea
class="w-full h-[calc(100%-2rem)] p-2 border rounded-md resize-none"
required=""
/>
</div>
<div
class="flex space-x-4"
>
<button
class="flex-1 bg-blue-500 text-white py-2 px-4 rounded"
type="submit"
>
Submit Question
</button>
</div>
</form>
</div>
</div>
</div>
<div
class="h-[calc(100vh-350px)] sm:h-[calc(100vh-200px)] bg-gray-50 rounded p-4 flex flex-col"
>
<h2
class="text-xl font-semibold mb-4 text-gray-600"
>
Current Queue
</h2>
<div
class="flex-1 overflow-y-auto"
>
<div
class="space-y-2"
>
<div
class="text-center text-gray-500 mt-4"
>
Queue is currently empty
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ test/genAIformQueueView.Lee.test.jsx:59:30
|
Run npm test
Process completed with exit code 1.
|
Loading