Vitest and $q.dialog #17826
Unanswered
jeff-wood-readyup
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Having trouble testing a component that uses the global $q.dialog method. I believe this has to do with how the dialog is mounted.
I have a layout which includes a sign out button, when clicked this sign out button pops up a confirmation dialog (are you sure you want to sign out? Yes/No) and since this popup is simple I am not using a custom component but rather the global dialog method.
However when writing a test I am unable to see the html for the dialog or find the component using get/find/etc.
My html output from the mount is:
and my test code is as follows:
I know it is finding the signout button and triggering the click event, but I am unable to find the dialog html code to then trigger the confirmation with the button.
Beta Was this translation helpful? Give feedback.
All reactions