diff --git a/packages/components/accordion/src/accordion.ts b/packages/components/accordion/src/accordion.ts
index 8c14194e..bf71a2b1 100644
--- a/packages/components/accordion/src/accordion.ts
+++ b/packages/components/accordion/src/accordion.ts
@@ -27,6 +27,11 @@ export const accordionProps = buildProps({
required: false,
default: false,
},
+ dataTest: {
+ type: String,
+ required: false,
+ default: undefined,
+ },
} as const)
export const accordionEmits = ['click']
diff --git a/packages/components/accordion/src/accordion.vue b/packages/components/accordion/src/accordion.vue
index bebae64a..c54e078f 100644
--- a/packages/components/accordion/src/accordion.vue
+++ b/packages/components/accordion/src/accordion.vue
@@ -11,6 +11,7 @@
:aria-controls="id"
class="puik-accordion__header"
:disabled="disabled"
+ :data-test="dataTest != undefined ? `button-${dataTest}` : undefined"
@click="onClick"
>
{{ title }}
++ {{ title }} +