From a7d049b4bfaf83bcdef011f34bb9bc8a22d3f156 Mon Sep 17 00:00:00 2001
From: Seth Sharp <58869086+SethSharp@users.noreply.github.com>
Date: Tue, 21 Oct 2025 16:06:15 +1000
Subject: [PATCH] placeholder
---
app/pages/components/Input.vue | 2 +-
src/components/input/Input.vue | 2 ++
src/components/input/input.spec.ts | 6 +++++-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/app/pages/components/Input.vue b/app/pages/components/Input.vue
index 4b81ff5..57f7203 100644
--- a/app/pages/components/Input.vue
+++ b/app/pages/components/Input.vue
@@ -3,5 +3,5 @@ import { Input } from "@/components/input"
-
+
diff --git a/src/components/input/Input.vue b/src/components/input/Input.vue
index e5a2561..674303a 100644
--- a/src/components/input/Input.vue
+++ b/src/components/input/Input.vue
@@ -7,6 +7,7 @@ const props = defineProps<{
defaultValue?: string | number
modelValue?: string | number
class?: HTMLAttributes["class"]
+ placeholder?: string
}>()
const emits = defineEmits<{
@@ -22,6 +23,7 @@ const modelValue = useVModel(props, "modelValue", emits, {
{
- it("passes", () => {
+ beforeEach(() => {
cy.visit("/components/input")
})
+
+ it("contains placeholder", () => {
+ cy.get("input").should("exist").and("have.attr", "placeholder", "Enter your name")
+ })
})