diff --git a/packages/components/accordion/src/accordion.ts b/packages/components/accordion/src/accordion.ts
index 7ef6ac2f..bf71a2b1 100644
--- a/packages/components/accordion/src/accordion.ts
+++ b/packages/components/accordion/src/accordion.ts
@@ -7,46 +7,31 @@ export const accordionProps = buildProps({
type: String,
required: true,
},
- buttonDataTest: {
- type: String,
- required: false,
- default: undefined,
- },
title: {
type: String,
required: false,
default: undefined,
},
- titleDataTest: {
- type: String,
- required: false,
- default: undefined,
- },
subTitle: {
type: String,
required: false,
default: undefined,
},
- subTitleDataTest: {
- type: String,
- required: false,
- default: undefined,
- },
icon: {
type: String,
required: false,
default: undefined,
},
- iconDataTest: {
- type: String,
- required: false,
- default: undefined,
- },
disabled: {
type: Boolean,
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 6657a4ad..e3d1bdf4 100644
--- a/packages/components/accordion/src/accordion.vue
+++ b/packages/components/accordion/src/accordion.vue
@@ -11,7 +11,7 @@
:aria-controls="id"
class="puik-accordion__header"
:disabled="disabled"
- :data-test="buttonDataTest"
+ :data-test="`button-${dataTest}`"
@click="onClick"
>
+
{{ title }}