From 91b0ef46231ddec446324cd892afb799429d3dd0 Mon Sep 17 00:00:00 2001 From: Guillaume Lepoetre Date: Mon, 30 Oct 2023 16:51:58 +0100 Subject: [PATCH] feat: Add spinner data-test, update boutton --- packages/components/button/src/button.vue | 2 +- packages/components/button/stories/button.stories.ts | 2 +- packages/components/spinner-loader/src/spinner-loader.ts | 5 +++++ packages/components/spinner-loader/src/spinner-loader.vue | 1 + .../spinner-loader/stories/spinner-loader.stories.ts | 4 ++++ 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/components/button/src/button.vue b/packages/components/button/src/button.vue index 745abac1..25dcbca6 100644 --- a/packages/components/button/src/button.vue +++ b/packages/components/button/src/button.vue @@ -10,7 +10,7 @@ { 'puik-button--fluid': fluid }, ]" :disabled="disabled" - :data-test="`button-${dataTest}`" + :data-test="`${dataTest}`" @click="setSelected" > diff --git a/packages/components/spinner-loader/src/spinner-loader.vue b/packages/components/spinner-loader/src/spinner-loader.vue index 332d8cf5..89b649d3 100644 --- a/packages/components/spinner-loader/src/spinner-loader.vue +++ b/packages/components/spinner-loader/src/spinner-loader.vue @@ -8,6 +8,7 @@ ]" aria-live="polite" role="status" + :data-test="dataTest" >