Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 34b93d4

Browse files
authored
add data-test attributes (#26)
1 parent a3470e1 commit 34b93d4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Fix pasting on MacOS.
66
* Add stylelint.
7+
* Add data-test attributes.
78

89
## 1.3.1 (2024-10-31)
910

ui/apos/components/AposTotp.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,21 @@
1919
<canvas
2020
ref="canvas"
2121
class="apos-totp__qrcode"
22+
data-apos-test="totpQrcode"
2223
/>
2324
<p class="apos-totp__text-grey">
2425
{{ $t('aposTotp:setupText3') }}
2526
</p>
2627
<div class="apos-totp__token-container">
27-
<p class="apos-totp__token">
28+
<p
29+
class="apos-totp__token"
30+
data-apos-test="totpToken"
31+
>
2832
{{ token }}
2933
</p>
3034
<button
3135
class="apos-totp__text-grey apos-totp__copy-token-btn"
36+
data-apos-test="totpCopyToken"
3237
@click="copyToken(token)"
3338
>
3439
<AposIndicator
@@ -65,6 +70,7 @@
6570
</p>
6671
<form
6772
class="apos-totp__login-form"
73+
data-apos-test="totpForm"
6874
@submit.prevent="sendCode"
6975
>
7076
<input

0 commit comments

Comments
 (0)