Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix(ui): snapshot errors in tests list
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 24, 2022
1 parent 4bd73d0 commit f872e7f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/peeky-client/src/features/test/TestItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ mutation openInEditor ($id: ID!, $line: Int!, $col: Int!) {
<div class="relative">
<div class="flex items-baseline space-x-1 p-2">
<div class="flex-1 font-mono text-sm truncate">
{{ test.error.snippet }}
<div v-if="test.error.snippet">
{{ test.error.snippet }}
</div>
<div
v-else
class="font-semibold truncate"
v-html="test.error.message"
/>
</div>
<span
class="text-red-300 hover:text-red-400 cursor-pointer"
Expand All @@ -102,6 +109,7 @@ mutation openInEditor ($id: ID!, $line: Int!, $col: Int!) {
</div>

<div
v-if="test.error.snippet"
class="p-2 font-semibold border-t border-red-200 dark:border-red-800 truncate"
v-html="test.error.message"
/>
Expand Down

0 comments on commit f872e7f

Please sign in to comment.