feat: data-test

This commit is contained in:
Pasha8914 2022-05-16 22:08:17 +10:00 committed by Danil Kovtonyuk
parent a8a497a8a3
commit 4cac9d663f
25 changed files with 207 additions and 62 deletions

View file

@ -22,10 +22,10 @@
</template>
</div>
<div class="buttons buttons__halfwidth mt-3">
<b-button type="is-primary" outlined @click="onClose">
<b-button type="is-primary" outlined data-test="button_close_your_note_popup" @click="onClose">
{{ $parent.$t('account.modals.decryptInfo.close') }}
</b-button>
<b-button type="is-primary" @click="handleRedirect">
<b-button type="is-primary" data-test="button_main_page_your_notes_popup" @click="handleRedirect">
{{ $parent.$t('account.modals.decryptInfo.redirect') }}
</b-button>
</div>

View file

@ -14,6 +14,7 @@
class="is-disabled-resize"
rows="2"
:placeholder="$t('enterRecoveryKey')"
data-test="input_enter_recovery_key"
:class="{ 'is-warning': hasAndValidKey }"
@input="onInput"
></b-input>
@ -33,6 +34,7 @@
type="is-primary is-fullwidth"
:disabled="hasAndValidKey"
:loading="recoverAccountFromKeyRequest.isFetching"
data-test="button_connect_recovery_key"
@click="handleRecoverAccount"
>
{{ $t('account.modals.recoverAccount.connect') }}

View file

@ -44,6 +44,7 @@
<b-button
v-if="!isBackuped && isSaveOnChain"
type="is-primary is-fullwidth"
data-test="button_confirm_setup_account"
:loading="setupAccountRequest.isFetching"
@click="onSetupAccount"
>