mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-08 15:15:02 -04:00
feat(test): added e2e tests
This commit is contained in:
parent
ebfdb64fde
commit
ec7cb9351c
11 changed files with 245 additions and 5 deletions
|
@ -8,13 +8,21 @@
|
|||
<n-input-group>
|
||||
<n-tooltip trigger="hover" placement="bottom">
|
||||
<template #trigger>
|
||||
<n-button secondary @click.prevent="copyPrevious(tokens.previous)">{{ tokens.previous }}</n-button>
|
||||
<n-button data-test-id="previous-otp" secondary @click.prevent="copyPrevious(tokens.previous)">{{
|
||||
tokens.previous
|
||||
}}</n-button>
|
||||
</template>
|
||||
<div>{{ previousCopied ? 'Copied !' : 'Copy previous OTP' }}</div>
|
||||
</n-tooltip>
|
||||
<n-tooltip trigger="hover" placement="bottom">
|
||||
<template #trigger>
|
||||
<n-button tertiary type="primary" class="current-otp" @click.prevent="copyCurrent(tokens.current)">
|
||||
<n-button
|
||||
tertiary
|
||||
type="primary"
|
||||
data-test-id="current-otp"
|
||||
class="current-otp"
|
||||
@click.prevent="copyCurrent(tokens.current)"
|
||||
>
|
||||
{{ tokens.current }}
|
||||
</n-button>
|
||||
</template>
|
||||
|
@ -22,7 +30,9 @@
|
|||
</n-tooltip>
|
||||
<n-tooltip trigger="hover" placement="bottom">
|
||||
<template #trigger>
|
||||
<n-button secondary @click.prevent="copyNext(tokens.next)">{{ tokens.next }}</n-button>
|
||||
<n-button secondary data-test-id="next-otp" @click.prevent="copyNext(tokens.next)">{{
|
||||
tokens.next
|
||||
}}</n-button>
|
||||
</template>
|
||||
<div>{{ nextCopied ? 'Copied !' : 'Copy next OTP' }}</div>
|
||||
</n-tooltip>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue