mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add data-test attributes to vue pages for e2e testing
This commit is contained in:
parent
0812beb050
commit
3ae58ca6a9
@ -24,10 +24,20 @@
|
|||||||
</b-container>
|
</b-container>
|
||||||
<b-container v-else>
|
<b-container v-else>
|
||||||
<message
|
<message
|
||||||
:headline="success ? $t('message.title') : $t('message.errorTitle')"
|
v-if="success"
|
||||||
:subtitle="success ? $t('message.email') : $t('error.email-already-sent')"
|
:headline="$t('message.title')"
|
||||||
|
:subtitle="$t('message.email')"
|
||||||
:buttonText="$t('login')"
|
:buttonText="$t('login')"
|
||||||
linkTo="/login"
|
linkTo="/login"
|
||||||
|
data-test="forgot-password-success"
|
||||||
|
/>
|
||||||
|
<message
|
||||||
|
v-else
|
||||||
|
:headline="$t('message.errorTitle')"
|
||||||
|
:subtitle="$t('error.email-already-sent')"
|
||||||
|
:buttonText="$t('login')"
|
||||||
|
linkTo="/login"
|
||||||
|
data-test="forgot-password-error"
|
||||||
/>
|
/>
|
||||||
</b-container>
|
</b-container>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col class="d-flex justify-content-end">
|
<b-col class="d-flex justify-content-end">
|
||||||
<router-link to="/forgot-password" class="mt-3" data-test=forgot-password-link>
|
<router-link to="/forgot-password" class="mt-3" data-test="forgot-password-link">
|
||||||
{{ $t('settings.password.forgot_pwd') }}
|
{{ $t('settings.password.forgot_pwd') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</b-col>
|
</b-col>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<b-form role="form" @submit.prevent="handleSubmit(onSubmit)">
|
<b-form role="form" @submit.prevent="handleSubmit(onSubmit)">
|
||||||
<input-password-confirmation v-model="form" />
|
<input-password-confirmation v-model="form" />
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<b-button type="submit" variant="gradido" class="mt-4">
|
<b-button type="submit" variant="gradido" class="mt-4" data-test="submit-new-password-btn">
|
||||||
<!-- eslint-disable-next-line @intlify/vue-i18n/no-dynamic-keys-->
|
<!-- eslint-disable-next-line @intlify/vue-i18n/no-dynamic-keys-->
|
||||||
{{ $t(displaySetup.button) }}
|
{{ $t(displaySetup.button) }}
|
||||||
</b-button>
|
</b-button>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user