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

            Line data    Source code
       1              : <template>
       2              :   <div :class="cn('p-4', ui.body)">
       3              :     <p class="m-0 text-muted-foreground">{{ translate('blocked.body') }}</p>
       4              :   </div>
       5              :   <div :class="footerBarClass(ui, 'justify-end')">
       6              :     <a
       7              :       v-if="checkoutUrl"
       8              :       :href="checkoutUrl"
       9              :       target="_blank"
      10              :       rel="noopener noreferrer"
      11              :       :class="primaryActionClass(ui)"
      12              :       data-testid="add-credits-open-checkout"
      13              :       @click="emit('follow')"
      14              :     >
      15              :       {{ translate('blocked.action') }}
      16              :       <i class="icon-[lucide--arrow-up-right]" aria-hidden="true" />
      17              :     </a>
      18              :     <button
      19              :       v-else-if="reissues"
      20              :       type="button"
      21              :       :class="primaryActionClass(ui)"
      22              :       :disabled="!canReissue"
      23              :       data-testid="add-credits-open-checkout"
      24              :       @click="emit('reissue')"
      25              :     >
      26              :       {{ translate('blocked.action') }}
      27              :       <i class="icon-[lucide--arrow-up-right]" aria-hidden="true" />
      28              :     </button>
      29              :     <button
      30              :       v-else
      31              :       type="button"
      32              :       :class="primaryActionClass(ui)"
      33              :       disabled
      34              :       aria-busy="true"
      35              :     >
      36              :       {{ translate('opening') }}
      37              :     </button>
      38              :   </div>
      39              : </template>
      40              : 
      41              : <script setup lang="ts">
      42              : import type { AddCreditsTranslate } from '@comfyorg/account-core/billing'
      43              : import { cn } from '@comfyorg/tailwind-utils'
      44              : 
      45              : import type { AddCreditsUi } from './addCreditsPresentation'
      46              : import { footerBarClass, primaryActionClass } from './addCreditsPresentation'
      47              : 
      48              : const {
      49              :   checkoutUrl,
      50              :   reissues = false,
      51              :   canReissue = true,
      52              :   translate,
      53              :   ui
      54              : } = defineProps<{
      55              :   checkoutUrl: string | undefined
      56              :   reissues?: boolean
      57              :   canReissue?: boolean
      58              :   translate: AddCreditsTranslate
      59              :   ui: AddCreditsUi
      60              : }>()
      61              : 
      62            0 : const emit = defineEmits<{ follow: []; reissue: [] }>()
      63              : </script>
        

Generated by: LCOV version 2.0-1