Skip to content

Commit

Permalink
Remove logo tests, Because we cannot get mediaserver URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Mar 8, 2024
1 parent c2db5ec commit a3b04f8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/quo/components/links/link_preview/component_spec.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
{:title "Some title"
:description "Some description"
:link "status.im"
:logo "data:image/png,logo-x"
:thumbnail "data:image/png,whatever"})

(h/describe "Links - Link Preview"
Expand All @@ -21,17 +20,12 @@
(h/is-truthy (h/query-by-text (:title props)))
(h/is-truthy (h/query-by-text (:description props)))
(h/is-truthy (h/query-by-text (:link props)))
(h/is-truthy (h/query-by-label-text :logo))
(h/is-truthy (h/query-by-label-text :thumbnail)))

(h/test "does not render thumbnail if prop is not present"
(h/render [view/view (dissoc props :thumbnail)])
(h/is-null (h/query-by-label-text :thumbnail)))

(h/test "does not render logo if prop is not present"
(h/render [view/view (dissoc props :logo)])
(h/is-null (h/query-by-label-text :logo)))

(h/test "shows button to enable preview when preview is disabled"
(h/render [view/view
(assoc props
Expand Down

0 comments on commit a3b04f8

Please sign in to comment.