LCOV - code coverage report
Current view: top level - packages/account-ui/src/billing/addCredits - AddCreditsAmountFooter.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 2 2
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : <template>
       2           13 :   <div :class="footerBarClass(ui, 'justify-between gap-4')">
       3              :     <div class="flex min-w-0 flex-col" data-testid="add-credits-summary">
       4              :       <span class="text-base font-semibold text-foreground tabular-nums">
       5              :         <span
       6              :           v-if="footer.loading"
       7              :           class="inline-block h-4 w-24 animate-pulse rounded-sm bg-secondary align-middle"
       8              :           data-testid="add-credits-credits-loading"
       9              :         />
      10              :         <template v-else>{{ footer.credits }}</template>
      11              :       </span>
      12              :       <span class="text-muted-foreground tabular-nums">
      13              :         {{ footer.detail }}
      14              :       </span>
      15              :     </div>
      16              :     <a
      17              :       v-if="view.notice?.kind === 'needs_verification'"
      18              :       :href="view.notice.verifyUrl"
      19              :       target="_blank"
      20              :       rel="noopener noreferrer"
      21              :       :class="primaryActionClass(ui)"
      22              :     >
      23              :       {{ translate('needsVerification.action') }}
      24              :       <i class="icon-[lucide--arrow-up-right]" aria-hidden="true" />
      25              :     </a>
      26              :     <a
      27              :       v-else-if="view.notice?.kind === 'not_verified'"
      28              :       :href="supportUrl"
      29              :       target="_blank"
      30              :       rel="noopener noreferrer"
      31              :       :class="primaryActionClass(ui)"
      32              :     >
      33              :       {{ translate('notVerified.action') }}
      34              :     </a>
      35              :     <button
      36              :       v-else
      37              :       type="button"
      38              :       :class="primaryActionClass(ui)"
      39              :       :disabled="!view.canContinue"
      40              :       :aria-busy="view.opening || undefined"
      41              :       data-testid="add-credits-continue"
      42              :       @click="emit('continue')"
      43              :     >
      44              :       {{ view.opening ? translate('opening') : translate('continue') }}
      45              :       <i class="icon-[lucide--arrow-up-right]" aria-hidden="true" />
      46              :     </button>
      47              :   </div>
      48              : </template>
      49              : 
      50              : <script setup lang="ts">
      51              : import type {
      52              :   AddCreditsAmountView,
      53              :   AddCreditsTranslate
      54              : } from '@comfyorg/account-core/billing'
      55              : 
      56              : import type {
      57              :   AddCreditsFooterCopy,
      58              :   AddCreditsUi
      59              : } from './addCreditsPresentation'
      60              : import { footerBarClass, primaryActionClass } from './addCreditsPresentation'
      61              : 
      62              : const { view, footer, supportUrl, translate, ui } = defineProps<{
      63              :   view: AddCreditsAmountView
      64              :   footer: AddCreditsFooterCopy
      65              :   supportUrl: string
      66              :   translate: AddCreditsTranslate
      67              :   ui: AddCreditsUi
      68              : }>()
      69              : 
      70            4 : const emit = defineEmits<{ continue: [] }>()
      71              : </script>
        

Generated by: LCOV version 2.0-1