@dpa-id-components/dpa-shared-components 22.0.0-next.3 → 22.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activities-BxyZQp7R.js → activities-Bvo5Tcpi.js} +1 -1
- package/dist/{ai-CvQQ6hUw.js → ai-CAbOdJZ8.js} +1 -1
- package/dist/{alert-CFNc2ENq.js → alert-DBH5Lw4Q.js} +1 -1
- package/dist/{alert-BeP6nqRf.js → alert-WA0pKI_x.js} +1 -1
- package/dist/{alert-filled-COSmQYAa.js → alert-filled-FaMUUR6G.js} +1 -1
- package/dist/{alert-octagon-Cd-_T4ON.js → alert-octagon-BThdHdMx.js} +1 -1
- package/dist/{apps-CtY6nO4d.js → apps-BrHprahs.js} +1 -1
- package/dist/{archive-DmV6cQ50.js → archive-DBPHhVqZ.js} +1 -1
- package/dist/{arrow-down-Cfib5c-0.js → arrow-down-9mspAtJH.js} +1 -1
- package/dist/{arrow-left-CFSY8V--.js → arrow-left-hTN1YNGs.js} +1 -1
- package/dist/{arrow-nav-left-BRYPr4oj.js → arrow-nav-left-NM47R1BA.js} +1 -1
- package/dist/{arrow-nav-right-PqR7W08e.js → arrow-nav-right-DBI84Ukd.js} +1 -1
- package/dist/{arrow-right-ByFSLzJb.js → arrow-right-Dc7c9oto.js} +1 -1
- package/dist/{arrow-up-DfhQKYKi.js → arrow-up-CiiVaA-K.js} +1 -1
- package/dist/{arrowhead-left-BxBCmhZy.js → arrowhead-left-DAvzD9VP.js} +1 -1
- package/dist/{arrowhead-right-D6Hk6b6x.js → arrowhead-right-iQjcoNZb.js} +1 -1
- package/dist/{arrowhead-top-wkcSxZmc.js → arrowhead-top-DTp7fzfU.js} +1 -1
- package/dist/{atmo-CqanVC-e.js → atmo-BrG9pffw.js} +1 -1
- package/dist/{audio-BHaZEzct.js → audio-BnHB5z0H.js} +1 -1
- package/dist/{audio-DS8plcCU.js → audio-BqoT7-od.js} +1 -1
- package/dist/{bag-B28jMR7E.js → bag-eXRYZJ5d.js} +1 -1
- package/dist/{bell-k_sZgnpL.js → bell-BcqwMFZV.js} +1 -1
- package/dist/{bell-filled-7gfK8601.js → bell-filled-CCmYyi8Z.js} +1 -1
- package/dist/{book-CqUJ_JRz.js → book-DiER4Xal.js} +1 -1
- package/dist/{bookmark-D65iW--h.js → bookmark-CwFo741C.js} +1 -1
- package/dist/{bookmark-filled-5lCW1BfF.js → bookmark-filled-AlwB_za3.js} +1 -1
- package/dist/{box-BCDNtaq7.js → box-P6SzKKRE.js} +1 -1
- package/dist/{bulb-12wSYpgA.js → bulb-BZmG8P4A.js} +1 -1
- package/dist/{call-CW04DyHi.js → call-C4ZdCz85.js} +1 -1
- package/dist/{camera-CbeyxVU5.js → camera-DW62puKy.js} +1 -1
- package/dist/{check-BpPjjXqx.js → check-9wo51ATk.js} +1 -1
- package/dist/{checklist-CFCfO7IN.js → checklist-B9luxORW.js} +1 -1
- package/dist/{checkmark-DhUksPvT.js → checkmark-BP702pIx.js} +1 -1
- package/dist/{checkmark-double-BNGXAUiT.js → checkmark-double-C059sbOk.js} +1 -1
- package/dist/{chevron-down-BjZ6BFFp.js → chevron-down-BPdRPnuP.js} +1 -1
- package/dist/{chevron-left-Z-D_OY2t.js → chevron-left-DA6BCeyF.js} +1 -1
- package/dist/{chevron-right-D1GfZQB6.js → chevron-right-C1GSdP4O.js} +1 -1
- package/dist/{chevron-up-DWZ1F8w0.js → chevron-up-CQEWqhSb.js} +1 -1
- package/dist/{clipboard-CNCIToKK.js → clipboard-C_NHlsUb.js} +1 -1
- package/dist/{clock-CqWSNhFX.js → clock-neZro3_P.js} +1 -1
- package/dist/{close-oHIGT_JQ.js → close-C9n_rCkw.js} +1 -1
- package/dist/{cloud-save-CWTQ5IHS.js → cloud-save-JY1j-mAo.js} +1 -1
- package/dist/{code-BD5nOHqK.js → code-Zpa3O6Dn.js} +1 -1
- package/dist/{collapse-D6QeCZC7.js → collapse-DJWRlvmL.js} +1 -1
- package/dist/{color-palette-BpONORjj.js → color-palette-Cp5noKDc.js} +1 -1
- package/dist/{comment-D5RZxZWG.js → comment-C2qDfTCg.js} +1 -1
- package/dist/{comment-filled-Cl_qZ6Fz.js → comment-filled-BTJgoypE.js} +1 -1
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +35 -32
- package/dist/components/UiDialog/UiDialog.vue.d.ts +1 -0
- package/dist/components/UiListItem/UiListItem.vue.d.ts +2 -2
- package/dist/components/UiPopover/UiPopover.vue.d.ts +5 -1
- package/dist/{copy-BDnlScSS.js → copy-UeWQjnZS.js} +1 -1
- package/dist/{copy-link-BSfa58Tb.js → copy-link-DGyyBykG.js} +1 -1
- package/dist/{delete-dDyi0gau.js → delete-B4tAjAEP.js} +1 -1
- package/dist/{download-B-ZTsIBv.js → download-Cbbey3Xt.js} +1 -1
- package/dist/{dpa-id-DRnjTcHI.js → dpa-id-WofmYqQY.js} +1 -1
- package/dist/dpa-shared-components.js +2100 -2053
- package/dist/{edit-BbFkVyRd.js → edit-DjkrcJP-.js} +1 -1
- package/dist/{edit-add-CAPOsjts.js → edit-add-B_lAB6lo.js} +1 -1
- package/dist/{eil-CzEP-9Lo.js → eil-DkVC34Lp.js} +1 -1
- package/dist/{emoji-add-BB4fB4th.js → emoji-add-D_YEHkA_.js} +1 -1
- package/dist/{emoji-BjLqvypC.js → emoji-zfiF2uko.js} +1 -1
- package/dist/{envelope-DftzB5Ol.js → envelope-9IVXijl6.js} +1 -1
- package/dist/{event-FR1JMgj6.js → event-Cfxumw-I.js} +1 -1
- package/dist/{expand-DaVQ0gpz.js → expand-Br6A7VrH.js} +1 -1
- package/dist/{external-link-2Es0qWwd.js → external-link-Bp0c-YfO.js} +1 -1
- package/dist/{file-AHJ00f5M.js → file-ClbE8n4I.js} +1 -1
- package/dist/{file-pdf-CJDdjKS0.js → file-pdf-caXv18xm.js} +1 -1
- package/dist/{filter-CXjBFUUg.js → filter-Cq2XEw3l.js} +1 -1
- package/dist/{flag-CbX4PUMS.js → flag-T1AIv4IV.js} +1 -1
- package/dist/{flag-filled-VmJW-U0p.js → flag-filled-BZBPstZi.js} +1 -1
- package/dist/{flags-Buo1j-9g.js → flags-cjNp5ctY.js} +1 -1
- package/dist/{flash-Dlr5gL01.js → flash-MJdJ-tB9.js} +1 -1
- package/dist/{folder-DQwCjGZC.js → folder-L-kYlWI-.js} +1 -1
- package/dist/{folder-add-zPr2Gmtj.js → folder-add-BcUtPV2p.js} +1 -1
- package/dist/{folder-filled-D6pmcH0e.js → folder-filled-CL3WiS7M.js} +1 -1
- package/dist/{gallery-DwPWc5L2.js → gallery-01MqVCbs.js} +1 -1
- package/dist/{gallery-CfUbckcB.js → gallery-D63957fL.js} +1 -1
- package/dist/{graphic-DMZdoJT7.js → graphic-BET4N-Ym.js} +1 -1
- package/dist/{graphic-nXH5ifxc.js → graphic-BpeZpley.js} +1 -1
- package/dist/{graphics-Dp8pQzs-.js → graphics-CYTosMI0.js} +1 -1
- package/dist/{grid-1-DZUEMbtb.js → grid-1-Dd_GXV5I.js} +1 -1
- package/dist/{grid-2-BQ-9yylY.js → grid-2-O6hEMs7P.js} +1 -1
- package/dist/{grid-3-BGhZrrCJ.js → grid-3-Kk6KNP_U.js} +1 -1
- package/dist/{grid-4-DY9N435A.js → grid-4-DSJwHWUS.js} +1 -1
- package/dist/{grid-6-B0BR3wbB.js → grid-6-BE49yqiV.js} +1 -1
- package/dist/{grid-9-BWhM7qat.js → grid-9-CLSHbY93.js} +1 -1
- package/dist/{grid-masonry-9-DiiX1pQo.js → grid-masonry-9-KXh2ZVtt.js} +1 -1
- package/dist/{grid-masonry-1e9tYkSK.js → grid-masonry-jDkWqFPf.js} +1 -1
- package/dist/{help-CLfj4LQM.js → help-DOkv1RLw.js} +1 -1
- package/dist/{home-D6htLjOF.js → home-D0uqbu-I.js} +1 -1
- package/dist/{image-DnYnaoeu.js → image-DELKJAje.js} +1 -1
- package/dist/{image-focus-point-BJ7HhehR.js → image-focus-point-DBCuBJ6a.js} +1 -1
- package/dist/{impact-high-DuECIU0d.js → impact-high-C3BKUG7I.js} +1 -1
- package/dist/{impact-low-DMtzvmWi.js → impact-low-BgYzB929.js} +1 -1
- package/dist/{impact-medium-B5-WfnV2.js → impact-medium-IB_zZvAq.js} +1 -1
- package/dist/{impact-very-high-C1K1nCE9.js → impact-very-high-CSVkx_Lk.js} +1 -1
- package/dist/{impact-very-low-CXbiBK6E.js → impact-very-low-DVh9ZGv0.js} +1 -1
- package/dist/{info-Ca-64c_9.js → info-DY1LCTZM.js} +1 -1
- package/dist/{info-filled-PYbvwGmZ.js → info-filled-wA8TNuIY.js} +1 -1
- package/dist/{label-D8X5FrVe.js → label-CUYcUBlF.js} +1 -1
- package/dist/{label-filled-DjSc-Fk4.js → label-filled-CBEnYqwR.js} +1 -1
- package/dist/{language-OE6ZfER_.js → language-CWzbNjpP.js} +1 -1
- package/dist/{latest-D0dlub5f.js → latest-DVsUYHxS.js} +1 -1
- package/dist/{lightbulb-DKJrsADi.js → lightbulb-XwSQilIh.js} +1 -1
- package/dist/{list-BviTrZEl.js → list-DbykwfRA.js} +1 -1
- package/dist/{list-search-Ck6anukf.js → list-search-Dj4jZY3K.js} +1 -1
- package/dist/{lock-Dv7XHTQp.js → lock-DnV05zah.js} +1 -1
- package/dist/{lock-filled-Bi_mH2A-.js → lock-filled-cW6OXXef.js} +1 -1
- package/dist/{mail-BBU73oBg.js → mail-BcneuuIl.js} +1 -1
- package/dist/{map-ChyXZkb4.js → map-1yvffq9F.js} +1 -1
- package/dist/{map-filled-DG4BwVQo.js → map-filled-CQkoxsrX.js} +1 -1
- package/dist/{menu-Dx9cgqxe.js → menu-FljcRCEK.js} +1 -1
- package/dist/{minus-DkCYxSkQ.js → minus-BJWsuEud.js} +1 -1
- package/dist/{more-horizontal-c6TlnC21.js → more-horizontal-lC-445EF.js} +1 -1
- package/dist/{more-vertical-BUz_UWPT.js → more-vertical-DR-MEHQd.js} +1 -1
- package/dist/{move-C3IOZIl7.js → move-Bw6x5pez.js} +1 -1
- package/dist/{move-up-down-DMvukk4h.js → move-up-down-B9uIynkw.js} +1 -1
- package/dist/{navigation-BiEFOSmS.js → navigation-B2HbKa58.js} +1 -1
- package/dist/{note-SrqI5m8n.js → note-BOjEWWmP.js} +1 -1
- package/dist/{offline-UyYgVOeH.js → offline-CRUg9Kez.js} +1 -1
- package/dist/{package-CT6Qsufx.js → package-BpXfEOmv.js} +1 -1
- package/dist/{package-DlxyzZ6H.js → package-DhpGK_pI.js} +1 -1
- package/dist/{paper-plane-rpVAty7i.js → paper-plane-aEepIh1I.js} +1 -1
- package/dist/{pause-C6E6QfcV.js → pause-Ml9ITr8H.js} +1 -1
- package/dist/{pdf-B4gHF03O.js → pdf-Da1tJ5Hc.js} +1 -1
- package/dist/{pen-im8XsK0s.js → pen-BCtaAdok.js} +1 -1
- package/dist/{pen-check-CNrvx2ns.js → pen-check-ZZuT1W9y.js} +1 -1
- package/dist/{people-DzOP6pil.js → people-7gHfC0ry.js} +1 -1
- package/dist/{phone-B0pmRKLI.js → phone-BMPeOmqG.js} +1 -1
- package/dist/{picture-1NpQXh5F.js → picture-6XSKueje.js} +1 -1
- package/dist/{picture-CKfJP6Jt.js → picture-IdhoGdAy.js} +1 -1
- package/dist/{pin-BOW6sde5.js → pin-B3mHPTM4.js} +1 -1
- package/dist/{planning-DdILTFP4.js → planning-s97U_n6Z.js} +1 -1
- package/dist/{play-X3Ob-qza.js → play-Bk3fFmpa.js} +1 -1
- package/dist/{play-filled-DYyCOR9Y.js → play-filled-BR-RJd_N.js} +1 -1
- package/dist/{plus-Bh6PRV0l.js → plus-Dw3nTb_J.js} +1 -1
- package/dist/{print-BLPvvCA8.js → print-DPDfMQTz.js} +1 -1
- package/dist/{refresh-CU1dwwoY.js → refresh-1gzhEzRl.js} +1 -1
- package/dist/{reset-Dgbd_O_e.js → reset-Cqepci78.js} +1 -1
- package/dist/{responsive-BQ5xjhN4.js → responsive-HisoeUq7.js} +1 -1
- package/dist/{rubix-thema-OSZXu-Md.js → rubix-thema-D5jmA6bw.js} +1 -1
- package/dist/{save-CIg7q65b.js → save-DoP23FsL.js} +1 -1
- package/dist/{saved-search-CeLi3iw6.js → saved-search-BY5aeZXd.js} +1 -1
- package/dist/{saved-search-filled-BTrN8F4r.js → saved-search-filled-D6t8P4EP.js} +1 -1
- package/dist/{search-CQIKBYqi.js → search-Bb5cl_0r.js} +1 -1
- package/dist/{settings-BMFNH3LB.js → settings-CCxd6N9K.js} +1 -1
- package/dist/{share-DMoEV0Gq.js → share-Cpx2YjXm.js} +1 -1
- package/dist/{share-alternative-P6c3Vi7L.js → share-alternative-ZW-jTsIU.js} +1 -1
- package/dist/{sidebar-D2uDpQM0.js → sidebar-DY7SHRNO.js} +1 -1
- package/dist/{sidebar-filled-LiiR992T.js → sidebar-filled-gmJ2_ZY2.js} +1 -1
- package/dist/{slack-CP6YIaQf.js → slack-OnnXQ7Rc.js} +1 -1
- package/dist/{slider-config-B_eNooTe.js → slider-config-CPC1To1k.js} +1 -1
- package/dist/{spellcheck-B0Il_eZe.js → spellcheck-D3iOEOk5.js} +1 -1
- package/dist/{spinner-CRHdpyRR.js → spinner-DghFg6Uk.js} +1 -1
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +12 -12
- package/dist/src/components/UiBadge/UiBadge.spec.ts +3 -3
- package/dist/src/components/UiButton/UiButton.spec.ts +3 -1
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +2 -2
- package/dist/src/components/UiCard/UiCard.spec.ts +2 -2
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +4 -4
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +7 -3
- package/dist/src/components/UiCheckbox/UiCheckbox.vue +6 -2
- package/dist/src/components/UiChip/UiChip.spec.ts +3 -3
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +2 -2
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +5 -5
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +10 -10
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +48 -28
- package/dist/src/components/UiDialog/UiDialog.spec.ts +5 -5
- package/dist/src/components/UiDialog/UiDialog.stories.ts +1 -0
- package/dist/src/components/UiDialog/UiDialog.vue +49 -1
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +6 -6
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +6 -6
- package/dist/src/components/UiIcon/UiIcon.spec.ts +4 -4
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +6 -6
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +6 -6
- package/dist/src/components/UiInput/UiInput.stories.ts +4 -0
- package/dist/src/components/UiList/UiList.spec.ts +2 -2
- package/dist/src/components/UiListItem/UiListItem.spec.ts +8 -8
- package/dist/src/components/UiListItem/UiListItem.vue +3 -3
- package/dist/src/components/UiMenu/UiMenu.spec.ts +1 -1
- package/dist/src/components/UiMenu/UiMenu.stories.ts +81 -141
- package/dist/src/components/UiMenu/UiMenu.vue +92 -96
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +2 -2
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +2 -2
- package/dist/src/components/UiPopover/UiPopover.vue +23 -3
- package/dist/src/components/UiRadioButton/UiRadioButton.stories.ts +3 -3
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +4 -4
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +6 -6
- package/dist/src/components/UiSearchInput/UiSearchInput.spec.ts +4 -4
- package/dist/src/components/UiSection/UiSection.spec.ts +5 -5
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +3 -3
- package/dist/src/components/UiSelect/{UIiSelect.spec.ts → UiSelect.spec.ts} +16 -8
- package/dist/src/components/UiSelect/UiSelect.stories.ts +1 -1
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +2 -2
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +8 -8
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +3 -3
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +11 -11
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +8 -8
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +9 -9
- package/dist/{standard-view-CmlAxXrM.js → standard-view-DfvAb3iJ.js} +1 -1
- package/dist/{star-x38wQI5a.js → star-BdzEpiC-.js} +1 -1
- package/dist/{star-filled-V0iRfD5M.js → star-filled-ZgHiwVZ0.js} +1 -1
- package/dist/{stop-BKrExcb1.js → stop-ugLlg2YL.js} +1 -1
- package/dist/{story-B2rvDIJr.js → story-D7qk5t65.js} +1 -1
- package/dist/{story-6skLDsue.js → story-k_tWc66v.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{sync-DXiTJomf.js → sync-BEDhyvOB.js} +1 -1
- package/dist/{tasks-bFDeHCo2.js → tasks-CBoErOsR.js} +1 -1
- package/dist/{text-bDVoEwpJ.js → text-BGlrNBVf.js} +1 -1
- package/dist/{text-ClHl0Uhs.js → text-CK3z1Tdh.js} +1 -1
- package/dist/{thumbs-down-BAjh-Ctz.js → thumbs-down-C41UiCJp.js} +1 -1
- package/dist/{thumbs-up-double-CIPSNbd7.js → thumbs-up-double-Ciw7ATVE.js} +1 -1
- package/dist/{thumbs-up-DCwzHniR.js → thumbs-up-k3-ZlCZB.js} +1 -1
- package/dist/{topic-Cv-whi27.js → topic-CRJfSH7S.js} +1 -1
- package/dist/{union-BYS3V2vp.js → union-hTKJU_qy.js} +1 -1
- package/dist/{upload-Dvuj2qmk.js → upload-BBn5ur6w.js} +1 -1
- package/dist/{user-need-divert-me-D33Y5bma.js → user-need-divert-me-ChmAj7y-.js} +1 -1
- package/dist/{user-need-educate-me-BC53AIXw.js → user-need-educate-me-DE4GpKkh.js} +1 -1
- package/dist/{user-need-give-me-perspective-D17ApF3n.js → user-need-give-me-perspective-cgRfVC26.js} +1 -1
- package/dist/{user-need-help-me-BWdR9Tv7.js → user-need-help-me-CeEG1a-I.js} +1 -1
- package/dist/{user-need-touch-me-q1HCbpQ7.js → user-need-touch-me-DiUacvEH.js} +1 -1
- package/dist/{user-need-update-me-BItjScS5.js → user-need-update-me-Tv7ZqZG9.js} +1 -1
- package/dist/{video-BFPO-328.js → video-BV3VKnO_.js} +1 -1
- package/dist/{video-BRSUY0SQ.js → video-C1tVlag5.js} +1 -1
- package/dist/{video-overlay-DnN10S5T.js → video-overlay-D2YqsNV3.js} +1 -1
- package/dist/{view-C4Sx7i27.js → view-5sSg9uRD.js} +1 -1
- package/dist/{view-off-BtkqBEfJ.js → view-off-CxEDQRkG.js} +1 -1
- package/dist/{volume-up-_3rO2YWj.js → volume-up-DmBpcesR.js} +1 -1
- package/package.json +22 -24
- package/src/components/UiCheckbox/UiCheckbox.vue +6 -2
- package/src/components/UiDialog/UiDialog.vue +49 -1
- package/src/components/UiListItem/UiListItem.vue +3 -3
- package/src/components/UiMenu/UiMenu.vue +92 -96
- package/src/components/UiPopover/UiPopover.vue +23 -3
- /package/dist/{_plugin-vue_export-helper-BTgDAbhb.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentMountingOptions, mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSearchBar from "./UiSearchBar.vue";
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ function createWrapper(
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
describe("UiSearchBar", () => {
|
|
15
|
-
|
|
15
|
+
test("renders the placeholder", () => {
|
|
16
16
|
const placeholder = "Example query";
|
|
17
17
|
const wrapper = createWrapper({ props: { placeholder } });
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ describe("UiSearchBar", () => {
|
|
|
20
20
|
expect(textInput.element.placeholder).toBe(placeholder);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
test("renders the value", async () => {
|
|
24
24
|
const wrapper = createWrapper();
|
|
25
25
|
|
|
26
26
|
const searchQuery = "Ein Suchbegriff";
|
|
@@ -30,7 +30,7 @@ describe("UiSearchBar", () => {
|
|
|
30
30
|
expect(textInput.element.value).toBe(searchQuery);
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
test("emits focus event", async () => {
|
|
34
34
|
const wrapper = createWrapper();
|
|
35
35
|
|
|
36
36
|
const textInput = wrapper.find("input");
|
|
@@ -38,7 +38,7 @@ describe("UiSearchBar", () => {
|
|
|
38
38
|
expect(wrapper.emitted("focus")).toBeTruthy();
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
test("emits blur event", async () => {
|
|
42
42
|
const wrapper = createWrapper();
|
|
43
43
|
|
|
44
44
|
const textInput = wrapper.find("input");
|
|
@@ -46,7 +46,7 @@ describe("UiSearchBar", () => {
|
|
|
46
46
|
expect(wrapper.emitted("blur")).toBeTruthy();
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
test("renders chips and action slot", async () => {
|
|
50
50
|
const wrapper = createWrapper({
|
|
51
51
|
props: {
|
|
52
52
|
placeholder: "Suchen",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSearchInput from "./UiSearchInput.vue";
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ describe("UiSearchInput", () => {
|
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
test("displays and emits entries", async () => {
|
|
16
16
|
const searchQuery = "Suchbegriff";
|
|
17
17
|
const textInput = wrapper.find("input");
|
|
18
18
|
await textInput.setValue(searchQuery);
|
|
@@ -20,7 +20,7 @@ describe("UiSearchInput", () => {
|
|
|
20
20
|
expect(textInput.element.value).toBe(searchQuery);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
test("adds searchbar row when addRow button is clicked", async () => {
|
|
24
24
|
const searchQuery = "Suchbegriff";
|
|
25
25
|
const textInput = wrapper.find("input");
|
|
26
26
|
await textInput.setValue(searchQuery);
|
|
@@ -30,7 +30,7 @@ describe("UiSearchInput", () => {
|
|
|
30
30
|
expect(wrapper.findAll("input")).toHaveLength(2);
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
test("deletes second row when there is no text in the searchbar", async () => {
|
|
34
34
|
const searchQuery = "Suchbegriff";
|
|
35
35
|
const textInput = wrapper.find("input");
|
|
36
36
|
await textInput.setValue(searchQuery);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSection from "./UiSection.vue";
|
|
5
5
|
|
|
@@ -10,13 +10,13 @@ describe("UiSection", () => {
|
|
|
10
10
|
},
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
test("renders with slot content", () => {
|
|
14
14
|
const inner = wrapper.find('[data-testid="inner"]');
|
|
15
15
|
|
|
16
16
|
expect(inner.text()).toBe("Slot text");
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
test("renders with border classes", async () => {
|
|
20
20
|
await wrapper.setProps({
|
|
21
21
|
borderTop: true,
|
|
22
22
|
borderBottom: true,
|
|
@@ -25,7 +25,7 @@ describe("UiSection", () => {
|
|
|
25
25
|
expect(wrapper.classes("border-b")).toBe(true);
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
test("renders with padding classes", async () => {
|
|
29
29
|
await wrapper.setProps({
|
|
30
30
|
verticalPadding: "small",
|
|
31
31
|
});
|
|
@@ -36,7 +36,7 @@ describe("UiSection", () => {
|
|
|
36
36
|
expect(inner.classes("pb-12")).toBe(true);
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
test("renders with size classes", async () => {
|
|
40
40
|
await wrapper.setProps({
|
|
41
41
|
size: "small",
|
|
42
42
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSectionDivider from "./UiSectionDivider.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiSectionDivider", () => {
|
|
7
7
|
const wrapper = mount(UiSectionDivider);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
test("renders default size class", () => {
|
|
10
10
|
expect(wrapper.classes("h-4")).toBe(true);
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
test("renders small size class", async () => {
|
|
14
14
|
await wrapper.setProps({
|
|
15
15
|
size: "small",
|
|
16
16
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentMountingOptions, mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSelect from "./UiSelect.vue";
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ function createWrapper(
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
describe("UiSelect", () => {
|
|
13
|
-
|
|
13
|
+
test("renders attributes on correct element", () => {
|
|
14
14
|
const wrapper = createWrapper({
|
|
15
15
|
props: {
|
|
16
16
|
id: "id",
|
|
@@ -38,12 +38,16 @@ describe("UiSelect", () => {
|
|
|
38
38
|
expect(select.element.getAttribute("aria-errormessage")).toBe("message");
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
test("implements working v-model interface", async () => {
|
|
42
42
|
const wrapper = createWrapper({
|
|
43
43
|
slots: {
|
|
44
|
-
default: {
|
|
44
|
+
default: {
|
|
45
|
+
template: /*html*/ `
|
|
46
|
+
Options
|
|
47
|
+
`,
|
|
48
|
+
},
|
|
45
49
|
options: {
|
|
46
|
-
template: `
|
|
50
|
+
template: /*html*/ `
|
|
47
51
|
<option value="primary">Primary</option>
|
|
48
52
|
<option value="secondary">Secondary</option>
|
|
49
53
|
<option value="tertiary">Tertiary</option>
|
|
@@ -71,12 +75,16 @@ describe("UiSelect", () => {
|
|
|
71
75
|
expect(lastEvent).toEqual(["tertiary"]);
|
|
72
76
|
});
|
|
73
77
|
|
|
74
|
-
|
|
78
|
+
test("works without v-model", async () => {
|
|
75
79
|
const wrapper = createWrapper({
|
|
76
80
|
slots: {
|
|
77
|
-
default: {
|
|
81
|
+
default: {
|
|
82
|
+
template: /*html*/ `
|
|
83
|
+
Options
|
|
84
|
+
`,
|
|
85
|
+
},
|
|
78
86
|
options: {
|
|
79
|
-
template: `
|
|
87
|
+
template: /*html*/ `
|
|
80
88
|
<option value="">None</option>
|
|
81
89
|
<option value="primary">Primary</option>
|
|
82
90
|
<option value="secondary">Secondary</option>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSkeletonBox from "./UiSkeletonBox.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiSkeletonBox", () => {
|
|
7
7
|
const wrapper = mount(UiSkeletonBox);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
test("renders default", () => {
|
|
10
10
|
expect(wrapper.classes("inline-block")).toBe(true);
|
|
11
11
|
expect(wrapper.classes("animate-pulse")).toBe(true);
|
|
12
12
|
expect(wrapper.classes("rounded-sm")).toBe(true);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiIcon from "../UiIcon/UiIcon.vue";
|
|
5
5
|
|
|
6
6
|
import UiSnackbar from "./UiSnackbar.vue";
|
|
7
7
|
|
|
8
8
|
describe("UiSnackbar", () => {
|
|
9
|
-
|
|
9
|
+
test("displays a text message via the default slot", () => {
|
|
10
10
|
const wrapper = mount(UiSnackbar, {
|
|
11
11
|
slots: {
|
|
12
12
|
default: "Hello, from snackbar",
|
|
@@ -19,7 +19,7 @@ describe("UiSnackbar", () => {
|
|
|
19
19
|
expect(wrapper.text()).toBe("Hello, from snackbar");
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
test("Is not visible when props don't say so", () => {
|
|
23
23
|
const wrapper = mount(UiSnackbar, {
|
|
24
24
|
slots: {
|
|
25
25
|
default: "Hello, from snackbar",
|
|
@@ -32,7 +32,7 @@ describe("UiSnackbar", () => {
|
|
|
32
32
|
expect(wrapper.find("div").exists()).toBe(false);
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
test("displays an SVG icon via the icon slot", () => {
|
|
36
36
|
const wrapper = mount(UiSnackbar, {
|
|
37
37
|
slots: {
|
|
38
38
|
default: "Hello, from snackbar",
|
|
@@ -46,7 +46,7 @@ describe("UiSnackbar", () => {
|
|
|
46
46
|
expect(wrapper.findComponent(UiIcon)).toBeTruthy();
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
test("has an action button via the action slot", () => {
|
|
50
50
|
const wrapper = mount(UiSnackbar, {
|
|
51
51
|
slots: {
|
|
52
52
|
default: "Hello, from snackbar",
|
|
@@ -62,7 +62,7 @@ describe("UiSnackbar", () => {
|
|
|
62
62
|
expect(wrapper.emitted()["action-click"]).toBeTruthy();
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
test("snackbar type success has green background", () => {
|
|
66
66
|
const wrapper = mount(UiSnackbar, {
|
|
67
67
|
slots: {
|
|
68
68
|
default: "Hello, from success snackbar",
|
|
@@ -77,7 +77,7 @@ describe("UiSnackbar", () => {
|
|
|
77
77
|
expect(coloredDiv.classes("bg-accent-green")).toBe(true);
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
test("snackbar type error has red background", () => {
|
|
81
81
|
const wrapper = mount(UiSnackbar, {
|
|
82
82
|
slots: {
|
|
83
83
|
default: "Hello, from error snackbar",
|
|
@@ -92,7 +92,7 @@ describe("UiSnackbar", () => {
|
|
|
92
92
|
expect(coloredDiv.classes("bg-accent-red")).toBe(true);
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
test("snackbar type info has gray-900 background", () => {
|
|
96
96
|
const wrapper = mount(UiSnackbar, {
|
|
97
97
|
slots: {
|
|
98
98
|
default: "Hello, from info snackbar",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSpinner from "./UiSpinner.vue";
|
|
5
5
|
|
|
6
6
|
describe("Spinner", () => {
|
|
7
|
-
|
|
7
|
+
test("renders with default props", () => {
|
|
8
8
|
const wrapper = mount(UiSpinner);
|
|
9
9
|
|
|
10
10
|
// Wrapper div should have size-6 class (lg size)
|
|
@@ -29,7 +29,7 @@ describe("Spinner", () => {
|
|
|
29
29
|
expect(arcCircle.classes()).toContain("text-primary");
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
test("renders neutral with opacity color class when appearance is neutral", () => {
|
|
33
33
|
const wrapper = mount(UiSpinner, {
|
|
34
34
|
props: {
|
|
35
35
|
appearance: "neutral",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiTextButton from "./UiTextButton.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiTextButton", () => {
|
|
7
|
-
|
|
7
|
+
test("should render defaults", () => {
|
|
8
8
|
const wrapper = mount(UiTextButton);
|
|
9
9
|
expect(wrapper.classes("font-normal")).toBe(true);
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
test("should render semibold font-weight", () => {
|
|
13
13
|
const wrapper = mount(UiTextButton, {
|
|
14
14
|
props: {
|
|
15
15
|
weight: "semibold",
|
|
@@ -18,7 +18,7 @@ describe("UiTextButton", () => {
|
|
|
18
18
|
expect(wrapper.classes("font-semibold")).toBe(true);
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
test("should render xsmall font-size", () => {
|
|
22
22
|
const wrapper = mount(UiTextButton, {
|
|
23
23
|
props: {
|
|
24
24
|
size: "xsmall",
|
|
@@ -27,7 +27,7 @@ describe("UiTextButton", () => {
|
|
|
27
27
|
expect(wrapper.classes("text-xs")).toBe(true);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
test("should render small font-size", () => {
|
|
31
31
|
const wrapper = mount(UiTextButton, {
|
|
32
32
|
props: {
|
|
33
33
|
size: "small",
|
|
@@ -36,7 +36,7 @@ describe("UiTextButton", () => {
|
|
|
36
36
|
expect(wrapper.classes("text-sm")).toBe(true);
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
test("should render medium font-size", () => {
|
|
40
40
|
const wrapper = mount(UiTextButton, {
|
|
41
41
|
props: {
|
|
42
42
|
size: "medium",
|
|
@@ -45,7 +45,7 @@ describe("UiTextButton", () => {
|
|
|
45
45
|
expect(wrapper.classes("text-base")).toBe(true);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
test("should render blue text color", () => {
|
|
49
49
|
const wrapper = mount(UiTextButton, {
|
|
50
50
|
props: {
|
|
51
51
|
color: "blue",
|
|
@@ -54,7 +54,7 @@ describe("UiTextButton", () => {
|
|
|
54
54
|
expect(wrapper.classes("text-primary")).toBe(true);
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
test("should render gray text color", () => {
|
|
58
58
|
const wrapper = mount(UiTextButton, {
|
|
59
59
|
props: {
|
|
60
60
|
color: "gray",
|
|
@@ -63,7 +63,7 @@ describe("UiTextButton", () => {
|
|
|
63
63
|
expect(wrapper.classes("text-neutral-subtle")).toBe(true);
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
test("should render iconLeft", () => {
|
|
67
67
|
const iconLeft = "alert";
|
|
68
68
|
const wrapper = mount(UiTextButton, {
|
|
69
69
|
props: {
|
|
@@ -75,7 +75,7 @@ describe("UiTextButton", () => {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
test("should render iconRight", () => {
|
|
79
79
|
const iconRight = "alert";
|
|
80
80
|
const wrapper = mount(UiTextButton, {
|
|
81
81
|
props: {
|
|
@@ -87,7 +87,7 @@ describe("UiTextButton", () => {
|
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
test("should change gray text color when placement is oncanvas", () => {
|
|
91
91
|
const wrapper = mount(UiTextButton, {
|
|
92
92
|
props: {
|
|
93
93
|
color: "gray",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiToggleButton from "./UiToggleButton.vue";
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@ function mountToggle(props = {}, slotContent = "Label") {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
describe("UiToggleButton", () => {
|
|
14
|
-
|
|
14
|
+
test("renders with correct defaults when no props are provided", () => {
|
|
15
15
|
const wrapper = mountToggle();
|
|
16
16
|
|
|
17
17
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -22,13 +22,13 @@ describe("UiToggleButton", () => {
|
|
|
22
22
|
expect(input.attributes("id")).toBeTruthy();
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
test("renders slot content", () => {
|
|
26
26
|
const wrapper = mountToggle({}, "Slot Label");
|
|
27
27
|
|
|
28
28
|
expect(wrapper.text()).toContain("Slot Label");
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
test("emits update:modelValue when clicked", async () => {
|
|
32
32
|
const wrapper = mountToggle({ modelValue: false });
|
|
33
33
|
|
|
34
34
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -38,7 +38,7 @@ describe("UiToggleButton", () => {
|
|
|
38
38
|
expect(wrapper.emitted("update:modelValue")?.[0]).toEqual([true]);
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
test("emits update:modelValue false when toggled from true", async () => {
|
|
42
42
|
const wrapper = mountToggle({ modelValue: true });
|
|
43
43
|
|
|
44
44
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -48,7 +48,7 @@ describe("UiToggleButton", () => {
|
|
|
48
48
|
expect(wrapper.emitted("update:modelValue")?.[0]).toEqual([false]);
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
test("disables the input when disabled prop is set", () => {
|
|
52
52
|
const wrapper = mountToggle({ disabled: true });
|
|
53
53
|
|
|
54
54
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -56,7 +56,7 @@ describe("UiToggleButton", () => {
|
|
|
56
56
|
expect((input.element as HTMLInputElement).disabled).toBe(true);
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
test("does not emit update:modelValue when disabled", async () => {
|
|
60
60
|
const wrapper = mountToggle({ disabled: true, modelValue: false });
|
|
61
61
|
|
|
62
62
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -65,7 +65,7 @@ describe("UiToggleButton", () => {
|
|
|
65
65
|
expect(wrapper.emitted("update:modelValue")).toBeFalsy();
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
test("uses provided id on the input", () => {
|
|
69
69
|
const wrapper = mountToggle({ id: "custom-id" });
|
|
70
70
|
|
|
71
71
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiTooltip from "./UiTooltip.vue";
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ document.body.innerHTML = `
|
|
|
8
8
|
`;
|
|
9
9
|
|
|
10
10
|
describe("UiTooltip", () => {
|
|
11
|
-
|
|
11
|
+
test("shows correct content", () => {
|
|
12
12
|
const wrapper = mount(UiTooltip, {
|
|
13
13
|
props: {
|
|
14
14
|
fixed: false,
|
|
@@ -20,7 +20,7 @@ describe("UiTooltip", () => {
|
|
|
20
20
|
expect(wrapper.text()).toBe("tooltip content");
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
test("is not rendered without mouseover", () => {
|
|
24
24
|
const wrapper = mount(UiTooltip, {
|
|
25
25
|
props: {
|
|
26
26
|
fixed: false,
|
|
@@ -35,7 +35,7 @@ describe("UiTooltip", () => {
|
|
|
35
35
|
).toBeFalsy();
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
test("is rendered upon mouseover", async () => {
|
|
39
39
|
const wrapper = mount(UiTooltip, {
|
|
40
40
|
props: {
|
|
41
41
|
fixed: false,
|
|
@@ -57,7 +57,7 @@ describe("UiTooltip", () => {
|
|
|
57
57
|
);
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
test("is rendered in the correct position", async () => {
|
|
61
61
|
const wrapper = mount(UiTooltip, {
|
|
62
62
|
props: {
|
|
63
63
|
fixed: false,
|
|
@@ -75,7 +75,7 @@ describe("UiTooltip", () => {
|
|
|
75
75
|
).toBe("right");
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
test("is in a fixed position", () => {
|
|
79
79
|
const wrapper = mount(UiTooltip, {
|
|
80
80
|
props: {
|
|
81
81
|
fixed: true,
|
|
@@ -94,7 +94,7 @@ describe("UiTooltip", () => {
|
|
|
94
94
|
wrapper.unmount();
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
test("shows no tooltip content when hidden", async () => {
|
|
98
98
|
const wrapper = mount(UiTooltip, {
|
|
99
99
|
props: {
|
|
100
100
|
hidden: true,
|
|
@@ -114,7 +114,7 @@ describe("UiTooltip", () => {
|
|
|
114
114
|
expect(wrapper.find('[data-testid="tooltipElement"]').exists()).toBe(false);
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
test("applies no transition classes when animate is false", () => {
|
|
118
118
|
const wrapper = mount(UiTooltip, {
|
|
119
119
|
props: {
|
|
120
120
|
fixed: false,
|
|
@@ -132,7 +132,7 @@ describe("UiTooltip", () => {
|
|
|
132
132
|
expect(transition.props("leaveToClass")).toBeUndefined();
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
test("applies transition classes when animate is true", () => {
|
|
136
136
|
const wrapper = mount(UiTooltip, {
|
|
137
137
|
props: {
|
|
138
138
|
fixed: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/assets/icons/standard-view.vue
|
|
4
4
|
var i = {}, a = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/assets/icons/star.vue
|
|
4
4
|
var i = {}, a = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/assets/icons/star-filled.vue
|
|
4
4
|
var i = {}, a = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/assets/icons/stop.vue
|
|
4
4
|
var i = {}, a = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/assets/icons/story.vue
|
|
4
4
|
var i = {}, a = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/components/UiMediaTypeIcon/icons/story.vue
|
|
4
4
|
var i = {}, a = {
|