From 50fbcfc29af253873a207de603b2a931a84997c4 Mon Sep 17 00:00:00 2001 From: Alec Gibson <12036746+alecgibson@users.noreply.github.com> Date: Wed, 5 Jul 2023 10:20:21 +0100 Subject: [PATCH] docs: add warning about `isVisible()` This change updates the documentation to reflect that `isVisible()` will only work correctly [when attached to the DOM][1] because of an upstream [`jsdom` issue][2]. [1]: https://github.com/vuejs/test-utils/issues/2016 [2]: https://github.com/jsdom/jsdom/issues/3502 --- docs/api/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api/index.md b/docs/api/index.md index 1e63d406b..40c449abf 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -1433,6 +1433,10 @@ isVisible(): boolean **Details:** +::: warning +`isVisible()` only works correctly if the wrapper is attached to the DOM using [`attachTo`](#attachto) +::: + ```js const Component = { template: `
`