11< div class ="bu-py-1 bu-px-4 cly-vue-drawer-step__section-group--filled ">
22 < div class ="cly-vue-drawer-step__section ">
3- < div class ="text-small text-heading bu-pb-1 "> {{i18n('rating.drawer.consent.text')}}</ div >
3+ < div class ="text-small text-heading bu-pb-1 " data-test-id =" consent-text-label " > {{i18n('rating.drawer.consent.text')}}</ div >
44 < validation-provider name ="value.consent " rules ="required|max:93 " v-slot ="v ">
55 < el-input
6+ test-id ="consent-text-input "
67 :class ="{'is-error': v.errors.length > 0} "
78 :placeholder ="i18n('rating.drawer.consent.placeholder') "
89 v-model ="value.finalText "
1112 >
1213 </ el-input >
1314 </ validation-provider >
14- < div class ="bu-pt-4 text-small text-heading ">
15+ < div class ="bu-pt-4 text-small text-heading " data-test-id =" consent-links-label " >
1516 {{i18n('rating.drawer.consent.links')}}
16- < cly-tooltip-icon :tooltip ="i18n('rating.drawer.links.tooltip') " icon ="ion-help-circled "> </ cly-tooltip-icon >
17+ < cly-tooltip-icon :tooltip ="i18n('rating.drawer.links.tooltip') " icon ="ion-help-circled " data-test-id =" consent-links-tooltip " > </ cly-tooltip-icon >
1718 </ div >
1819 < div style ="gap:8px " class ="bu-is-flex bu-is-justify-content-space-between bu-is-align-items-center bu-py-1 " :key ="idx " v-for ="(item, idx) in value.link ">
1920 < div class ="cly-vue-surveys-drawer__consent__basis-text ">
2021 < validation-provider :name ="item.text " rules ="required " v-slot ="v ">
2122 < el-input
23+ :test-id ="'consent-link-text-input-' + idx "
2224 :class ="{'is-error': v.errors.length > 0} "
2325 :placeholder =item.text
2426 v-model ="item.textValue ">
2830 < div class ="cly-vue-surveys-drawer__consent__basis ">
2931 < validation-provider name ="item.link " rules ="required " v-slot ="v ">
3032 < el-input
33+ :test-id ="'consent-link-link-input-' + idx "
3134 :class ="{'is-error': v.errors.length > 0} "
3235 :placeholder =item.link
3336 v-model ="item.linkValue ">
3437 </ el-input >
3538 </ validation-provider >
3639 </ div >
37- < div @click ="onDelete(idx) " class ="cly-icon-button--gray bu-has-text-right "> < i class ="ion-ios-close-empty bu-is-clickable ratings-drawer__consent__close-icon "> </ i > </ div >
40+ < div @click ="onDelete(idx) " class ="cly-icon-button--gray bu-has-text-right " :data-test-id =" 'consent-delete-link-icon-' + idx " > < i class ="ion-ios-close-empty bu-is-clickable ratings-drawer__consent__close-icon " :data-test-id =" 'consent-delete-link-' + idx "> </ i > </ div >
3841 </ div >
39- < el-button v-if ="newLinkAllowed " @click ="add " type ="text "> {{i18n('rating.drawer.consent.add.link')}}</ el-button >
42+ < el-button v-if ="newLinkAllowed " @click ="add " type ="text " data-test-id =" consent-add-link-button " > {{i18n('rating.drawer.consent.add.link')}}</ el-button >
4043 </ div >
4144</ div >
0 commit comments