{"_id":"cypress-wait-for-stable-dom","_rev":"5-e13204f3ce8299f876ea40b0a777e7f1","name":"cypress-wait-for-stable-dom","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"cypress-wait-for-stable-dom","version":"0.0.1","description":"Cypress command to wait until DOM has finished changing","main":"src","types":"src","scripts":{"test":"cypress run","cy:open":"cypress open","cy:run":"cypress run"},"repository":{"type":"git","url":"git+https://github.com/narinluangrath/cypress-wait-for-stable-dom.git"},"keywords":["cypress","cypress-custom-command","cypress-wait-for-stable-dom"],"author":{"name":"Narin Luangrath","email":"narin.luangrath@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/narinluangrath/cypress-wait-for-stable-dom/issues"},"homepage":"https://github.com/narinluangrath/cypress-wait-for-stable-dom#readme","devDependencies":{"cypress":"^9.2.0"},"gitHead":"ffa28221eba11fc84004ceeb9c2082aaf314e33d","_id":"cypress-wait-for-stable-dom@0.0.1","_nodeVersion":"14.16.0","_npmVersion":"7.9.0","dist":{"integrity":"sha512-wsV6s0gyqZ3g+aRhVKWeYjawbuy6ttnoyMP1Xa6F0vfkgqfy3s+goqU1ajzUU6Nq/vfK03XamGmbtWlOHUZ69Q==","shasum":"e53d0e799064798a8b2034d6456772e65f6f17eb","tarball":"https://registry.npmjs.org/cypress-wait-for-stable-dom/-/cypress-wait-for-stable-dom-0.0.1.tgz","fileCount":5,"unpackedSize":5583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzn5xCRA9TVsSAnZWagAAnYwP/3ysrGZVZoCxZ5l3BgkD\np78ZfKG1WKuYcWHOABKZ9wFgUAYGIzIsNA/K5at/1xSInI+kEJGKPpvpAcvh\neuNb+GPRk4MFW1o7gVrMTxCqSYKR5yi5tcW6l5+C0bHglwxVhi1FQGLLWsly\ns/XFVpmF2649CwTXy4vyJZKWze02cAZb9joDWrPlaTtaCdJUZ6P44mj2xvrj\npeezpm89cHsU8rgQGZ1rkctCZFIL4sNblAEJ3+qJ7hdD9z/TPlxHi0dqEOTY\n9GsErHwTlMuLfnuhqwoHk7XvvfGVnxnEnpm5TDQupvwhnfTvJNlWMoGL5bbN\nlnZlFGFjjhiIjwwfYOM27wa0megpLHQ5a1QV0iFocM7IMKAeOXc2Rkkf7Brh\nHTdhVl+hGlHA/8fsmrrivuBTqaGoW/dEOQtYXIO9Ltp+oj2oF7dQdw+PIq/h\n/Am5zix8BYAYvqHPGYuS1HAZbn7wsxLNyYyWXDzWtvzpRH1REYjJGKryWyJm\nos0qknDmwCVuvbkgag7GdHgmIFOL+kBchDUidCg5jzBd4An3hMIwCnXXF6Xx\nBk4WHjzna4ZOQsJY3K+Bks8tIgU7sDuHiy/fgdQpJ78Lc2efZl9fQeTNhLnf\nn0TxzCYyr9T9ZI1SXvzbSFIG1mutyEztf3+A+8ogp1CWrl8J6iKExokSZTNM\nVNwm\r\n=GUfl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEw8INnNnH2uRvrtAPoWHePvprkYinwL7us+oYw7ghzJAiBq4EkuhXKqBzhOxBSSdycUie665duujovRvY4+nMtAdg=="}]},"_npmUser":{"name":"narinluangrath","email":"narin.luangrath@gmail.com"},"directories":{},"maintainers":[{"name":"narinluangrath","email":"narin.luangrath@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-wait-for-stable-dom_0.0.1_1640922737336_0.574490279596767"},"_hasShrinkwrap":false},"0.0.2":{"name":"cypress-wait-for-stable-dom","version":"0.0.2","description":"Cypress command to wait until DOM has finished changing","main":"src","types":"src","scripts":{"test":"cypress run","cy:open":"cypress open","cy:run":"cypress run"},"repository":{"type":"git","url":"git+https://github.com/narinluangrath/cypress-wait-for-stable-dom.git"},"keywords":["cypress","cypress-custom-command","cypress-wait-for-stable-dom"],"author":{"name":"Narin Luangrath","email":"narin.luangrath@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/narinluangrath/cypress-wait-for-stable-dom/issues"},"homepage":"https://github.com/narinluangrath/cypress-wait-for-stable-dom#readme","devDependencies":{"cypress":"^9.2.0"},"gitHead":"6fe98a8a69305d56233dd398b75dc36bba8a966b","_id":"cypress-wait-for-stable-dom@0.0.2","_nodeVersion":"17.5.0","_npmVersion":"8.4.1","dist":{"integrity":"sha512-AYhj0zk1Rn7kK06bnxtDiLFfpQ40sPI+QTgzA1KxRbjgY9ZzA2qNywtYKJwFOClv/ehzKZtnjJP0fLyE122+6g==","shasum":"c7da7b4e1ea59708e4fba5cd1ac6628383dcb1c8","tarball":"https://registry.npmjs.org/cypress-wait-for-stable-dom/-/cypress-wait-for-stable-dom-0.0.2.tgz","fileCount":5,"unpackedSize":5653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiErYWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2BA/7BImO+67mkXnIa/VLoufb8xwVp/MPYdCYIhTVRtzmAKBbeI9A\r\nxMD9WcaBZXBYJpcarAKmph7v/WIH+9og9YxIfjHPPFPYuqv3Fmy/WQF4XO56\r\n19LzhZrkhzuzMJILsHNoBxXaB+RNXSOFQcT5uJI0J0grmvSa4G2DdeRe7U4U\r\nHRHxpx6sdE/rwUv7W30a4VcaM4z0uW7nozGHI1h7ocpCAPjRG5fv6EAffeEB\r\n6taSh2PYr/c38gPxp9gb9CP4eAMsfUMuYMaxU7a9tONEqJ9LQUsO9z4l1nix\r\noQIa67gajJrEkKbrzavJ85Hqr2G+jNe8ZtLNtryYPVfa59eaF5PHAwRt//9D\r\n/WCcI9n0LCU+prNf5ih6Dj06vl3ubV9vYr+YpMbUlxHlZJTqETZdcuSEM2qM\r\nTVJcYl33dDgXh2fsi3tlFqaq/7JA6W2wnKHOatu2BH+g2AGIywaIWpVqhthV\r\nqJQg5I4KsajtIhDT0YN4q7bbLMNd4OyOJUawPEsy69i4SlwTCw9pa0NgAWj4\r\nH/VRc6rHRTT3wzit3e6ALc5WfKXqJb/DaVFxbmJmmAlRWN91jiMG1qQnI6dm\r\nF6mvmQefJo/NczGLl5YO10oLWw2mi3zjSgE7Y9/bnmFAvcR9OzL/tPBMHL7v\r\nGqQ0L+GdRj13wXAcUwf04+41uiFPmI2tivc=\r\n=4Wcy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4dCMLuB+s3vlPosc9Hidyh7pDybz0wtPjGJWkKoyuZAiEAjn/i0wgfYzG2QMwnc0qn4Btr64nRiD4fjYQMErqhRNs="}]},"_npmUser":{"name":"narinluangrath","email":"narin.luangrath@gmail.com"},"directories":{},"maintainers":[{"name":"narinluangrath","email":"narin.luangrath@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-wait-for-stable-dom_0.0.2_1645393429976_0.3817352313425737"},"_hasShrinkwrap":false},"0.0.3":{"name":"cypress-wait-for-stable-dom","version":"0.0.3","description":"Cypress command to wait until DOM has finished changing","main":"src","types":"src","scripts":{"test":"cypress run","cy:open":"cypress open","cy:run":"cypress run"},"repository":{"type":"git","url":"git+https://github.com/narinluangrath/cypress-wait-for-stable-dom.git"},"keywords":["cypress","cypress-custom-command","cypress-wait-for-stable-dom"],"author":{"name":"Narin Luangrath","email":"narin.luangrath@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/narinluangrath/cypress-wait-for-stable-dom/issues"},"homepage":"https://github.com/narinluangrath/cypress-wait-for-stable-dom#readme","devDependencies":{"cypress":"^9.2.0"},"gitHead":"3ddc81c35967430ff005f31b8d5dc8d86537c9ce","_id":"cypress-wait-for-stable-dom@0.0.3","_nodeVersion":"14.17.0","_npmVersion":"8.7.0","dist":{"integrity":"sha512-QOB8f8x1+Io7mR4uqhchIX2BFWCGfS2ABZplPxVRIUiHHs0r5w4MgwPJLAXl0ccB3Odyt4gbyntTJxxyrFgTIA==","shasum":"0823dc2ba00f49a1b803cb9cd3dea62f0fe07afa","tarball":"https://registry.npmjs.org/cypress-wait-for-stable-dom/-/cypress-wait-for-stable-dom-0.0.3.tgz","fileCount":6,"unpackedSize":6816,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkOhbkprP/g84bjXstzxP1d9ZGRIpXu9dDxUHINVSplAIhAMqxrw/UIFGSkv03i1G81WxufxqMcamOsbvAUV5XBCH7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJirYhwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJTQ/+IhXl7lBFRSYPM7Q8gb6JW031tsxHnhbLc42c2sDRIENdXze4\r\nQHxVVTzDpE8AoZJuRLpYWltzmmemg/+Jg2NfAtdwpaeoHwZEjf7d9lcJlUPt\r\neu2BnwhjY7TuUpRMGuk8kJMK5xshNLwDn1/WyUyEdVBtcl6SOWRvT9YM7KO4\r\nX1nzDcKGMC0XiA2/eUR5elOr7LqE0UcDohdqrqoBpOxYfuL+JcQt+38E8m9e\r\n9IvSVv1vKZx1qjuEUmbw324egVayp97M9x3Qxn8KY6pJZoowiYJlEWkaeaFv\r\nuIb0aCGFJtEv3PjqUkO11fHVGsWchLDbSs+VoXWtNIp16aFILmvPjJt3e5Zd\r\nyIXG0O4fGq+ULS76uw/pcUdPQHIyCqepwhoFzNCGtpKltsoGocVmSSymg3DU\r\nwQLh0KhpZDzTADwWUQbpdaIxb+jOsX5ZodZrFaVhixeCPNs0btSgnvn9vKDp\r\n5sDZ0wnI3wmr4KFSt50bfDEC04ChtfWgw2RpRSH1plxennO+SGykE+00Viwj\r\njTf5qHbyQXp6v35IK6VEGAkmJerlk/9mxrRiIfQE+Zux8IubI1rTD5vncld4\r\nz6Px/NjaarSggm+xkgrynGgW05UZjA3vQB/UDkVkLDIv7BUJJ1XdNTCC5hzB\r\nocfo40TdCG5L5MGTNopVymaXW8pdXMAyQHQ=\r\n=bkfe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"narinluangrath","email":"narin.luangrath@gmail.com"},"directories":{},"maintainers":[{"name":"narinluangrath","email":"narin.luangrath@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-wait-for-stable-dom_0.0.3_1655539824116_0.6059052422214419"},"_hasShrinkwrap":false},"0.0.4":{"name":"cypress-wait-for-stable-dom","version":"0.0.4","description":"Cypress command to wait until DOM has finished changing","main":"src","types":"src","scripts":{"test":"cypress run","cy:open":"cypress open","cy:run":"cypress run"},"repository":{"type":"git","url":"git+https://github.com/narinluangrath/cypress-wait-for-stable-dom.git"},"keywords":["cypress","cypress-custom-command","cypress-wait-for-stable-dom"],"author":{"name":"Narin Luangrath","email":"narin.luangrath@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/narinluangrath/cypress-wait-for-stable-dom/issues"},"homepage":"https://github.com/narinluangrath/cypress-wait-for-stable-dom#readme","devDependencies":{"cypress":"^9.2.0"},"gitHead":"cab5839829f8dfff420d68f02cfc0881ff18e8ad","_id":"cypress-wait-for-stable-dom@0.0.4","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-8+ufdsw69hclfUvGvgBDq69K1ausG53QWQWoA3i6olG/f2FMYuap/fEuzMsWHq68/Ojy7undNTLpnDHQze3Fjg==","shasum":"02926047563f016477957f33a7e3c418485c2908","tarball":"https://registry.npmjs.org/cypress-wait-for-stable-dom/-/cypress-wait-for-stable-dom-0.0.4.tgz","fileCount":6,"unpackedSize":6982,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1kUxPyC6PGeolzcTj+2TwfdQ21phIj/TovAKNzm0uWAiEAq1bLiZNXZH/2ELSR9E6mnoNCrX5z2gmsxJGAFMKSxc0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPfyBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAnQ//QYuQjQaM1inD4jUF4KpcoQK/FhljXqCeJxt1QcWFJbTgs5DR\r\nL1LGjH91viBP+qRx/CMg3SOLU4FQUnQ8OnT6IAUAXvy40u7XSWPq8u2NzulN\r\nHRR5H9Cu3jOugzXWw+XYHGenRdqenCm/D25dJDziqUvD/ZcHaBVWcb6+VrFW\r\nq5kb+FbcDP9D0v443qqBNIJ9GAsQIub0g90ZgGEMtjT+cplpR5PhYNYxcqEU\r\nZoHTJZb+ABVUrQ1Sq52YHz4i9S9Ac4s/Ru6wWRtUm4RgOV24b4XEEwAH0HV6\r\nJ/O6VbtGhVVIMDeAm4Y4pPa17bfCVWSrvbgd2W8900VOt+yTKYGmQ5KkkSBM\r\njSfxTynXm58mxgw+YykvCXSRjMFH3Q2ihL2CaaRPdjTDjDSs+03eKz+MJcYl\r\nLCeL3CXrR25MRScobAdRQtNMf3XhYW66BiNGlfyo8aq6KzERWoVj7tXc2ugQ\r\nEDM2eGZjXvF3JpLsBpcDqqMs/2n1bf1EDLZFKvXofqtNt9KCibRvkUGLGjJi\r\nJSmpQ0CRChDT0QTKVDgWKqDF5Fm95WaSIysS6/IP2uunSec1/Li/izjPb+K0\r\nCnGYFmHuVhVbtrrl/xlnRmONuvjYyRTRwz/r0oak35m+GMB1UOeGGza/ioKA\r\nrhQoj+u5UtQPG+wGJsnpyyMLJqfHVY4jNCY=\r\n=OnZG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"narinluangrath","email":"narin.luangrath@gmail.com"},"directories":{},"maintainers":[{"name":"narinluangrath","email":"narin.luangrath@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-wait-for-stable-dom_0.0.4_1665006721554_0.4956529306952844"},"_hasShrinkwrap":false},"0.1.0":{"name":"cypress-wait-for-stable-dom","version":"0.1.0","description":"Cypress command to wait until DOM has finished changing","main":"src","types":"src","scripts":{"test":"cypress run","cy:open":"cypress open","cy:run":"cypress run"},"repository":{"type":"git","url":"git+https://github.com/narinluangrath/cypress-wait-for-stable-dom.git"},"keywords":["cypress","cypress-custom-command","cypress-wait-for-stable-dom"],"author":{"name":"Narin Luangrath","email":"narin.luangrath@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/narinluangrath/cypress-wait-for-stable-dom/issues"},"homepage":"https://github.com/narinluangrath/cypress-wait-for-stable-dom#readme","devDependencies":{"cypress":"^9.2.0"},"gitHead":"7622b2abbcd5da5241e73a8ef894349f6de0624e","_id":"cypress-wait-for-stable-dom@0.1.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-iVJc6CDzlu1xUnTcZph+zbkOlImaDelpvRv4G+3naugvjkF6b9EFpDmRCC/16xL1pqpkFq4rFyfhuNw4C3PQjw==","shasum":"8e16f9f61c67d798cfc61c6369279806da17afb7","tarball":"https://registry.npmjs.org/cypress-wait-for-stable-dom/-/cypress-wait-for-stable-dom-0.1.0.tgz","fileCount":6,"unpackedSize":7545,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVgsSA6r8n57lDFcgFETHURT4lnqIqJK3Hg3PT4d5GpAiAf6nodLPkGFD37sM7am84qhHNN+tD+Tau+oJv/7CKSeg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSy8tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq14BAAnHnTnucorW7LDnGs3ZgdbXup7r03dzHTfERrDj39ptx03AM3\r\nxQxF6X8QWydVQmGuRVArT1VCxbbXnQoSqz7vj+WZqCVm4yPQFw+JGpoH6pE4\r\nAjsCeExAjoqvZ0oHHdRiA/82omDd7GCDXJi9nxt2R/3QkRlE+MqNMn58NhTN\r\nK7l4v1a0DPm7ilx+5d5s8nId+FDONijx5zKd9UFgpn4Pz9o1iBcOJ0rYRA0M\r\nhMBcmowflQX5Hq7CgIN36SjiPGjzkPii149Z+Se6mECmiGDLHIX3Wkpo8psR\r\nR78o+HulHUkDR+fuBsXos+rTjP7faKGrVNAfdaylwCwVCR8tiTAxX53xfPnr\r\nh1TWynyr5Adp6OE5aF2ChrJEbrkRxvuBEm057i3BVKHgd66Bk+42MO+WngEW\r\ndxjHgxzrek/TILrHYKxejF6dfMjtjU2Zh9lz6mG0MV34nqD6FzskUIZhgdhL\r\nKYRaprTfoK9ACHmPiYeolBkfNZ7k4Ahj5raqIh2OpWhJ1OtxxhW5Z/WuOasg\r\nMEVFiWBetwEQq8KfOP8xvtNYIu6e3MOqXyPFqJW5KadAdgo35Qsl5kZM8ttA\r\nlHqFPI0RyhEoBHr3L4rdvxQv+lPZG3E0tKFu78DRXjQsGLzhC3ZCVxvWycfg\r\nwutIHO31QYshEtxEXwh2ARluv9157vpw2WY=\r\n=M0kK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"narinluangrath","email":"narin.luangrath@gmail.com"},"directories":{},"maintainers":[{"name":"narinluangrath","email":"narin.luangrath@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-wait-for-stable-dom_0.1.0_1665871660859_0.14130105348579747"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-31T03:52:17.335Z","0.0.1":"2021-12-31T03:52:17.462Z","modified":"2022-10-15T22:07:41.131Z","0.0.2":"2022-02-20T21:43:50.129Z","0.0.3":"2022-06-18T08:10:24.284Z","0.0.4":"2022-10-05T21:52:01.710Z","0.1.0":"2022-10-15T22:07:41.057Z"},"maintainers":[{"name":"narinluangrath","email":"narin.luangrath@gmail.com"}],"description":"Cypress command to wait until DOM has finished changing","homepage":"https://github.com/narinluangrath/cypress-wait-for-stable-dom#readme","keywords":["cypress","cypress-custom-command","cypress-wait-for-stable-dom"],"repository":{"type":"git","url":"git+https://github.com/narinluangrath/cypress-wait-for-stable-dom.git"},"author":{"name":"Narin Luangrath","email":"narin.luangrath@gmail.com"},"bugs":{"url":"https://github.com/narinluangrath/cypress-wait-for-stable-dom/issues"},"license":"MIT","readme":"# cypress-wait-for-stable-dom\n\n> Wait until the DOM is stable before continuing with test. Useful for visual regression testing.\n\n\n\nhttps://user-images.githubusercontent.com/13155517/147802185-2371a02c-a96c-4000-92d6-08c9fb0d2b90.mp4\n\n\n\nUses [Mutation Observer] to detect DOM changes.\n\nThis repo was bootstraped from [bahmutov/cypress-get-by-label] and has logic based on the same author's (Gleb Bahmutov) [article].\n## Install\n\n```\nnpm i -D cypress-wait-for-stable-dom\n# or\nyarn add -D cypress-wait-for-stable-dom\n```\n\n## Use\n\nInclude from your Cypress support file or individual spec\n\n```js\nconst { registerCommand } = require('cypress-wait-for-stable-dom')\nregisterCommand()\n\n// or\nimport { registerCommand } from 'cypress-wait-for-stable-dom'\nregisterCommand()\n```\n\nThen use the command `cy.waitForStableDOM()`\n\n```js\n// Proceed with test if DOM is stable for 1 second\n// Throw timeout error if DOM is unstable for 10 seconds\ncy.waitForStableDOM({ pollInterval: 1000, timeout: 10000 })\n```\n\nWhen used as a [parent command] (like above), it will check for changes in the entire `document`. To only check a particular part of the DOM, use it as a [child command].\n\n```js\n// Only listen for changes to #myDomElement\ncy.get('#myDomElement')\n  .waitForStableDOM({ pollInterval: 1000, timeout: 10000 })\n```\n\nIf you'd like to customize the [options] passed to mutation observer, you can provide an optional `mutationObserver` property.\n\n```js\nconst mutationObserver = {\n  // Only listen to CSS changes\n  attributeFilter: [ \"style\", \"class\" ],\n  subtree: true,\n  childList: true,\n  attributes: true,\n  attributeOldValue: true,\n}\n\ncy.waitForStableDOM({ pollInterval: 1000, timeout: 10000, mutationObserver })\n```\n\nThe argument you provide to `cy.waitForStableDOM` will be deep merged with the following default object\n\n```js\nconst defaultOptions = {\n  pollInterval: 1000,\n  timeout: 10000,\n  mutationObserver: {\n    subtree: true,\n    childList: true,\n    attributes: true,\n    attributeOldValue: true,\n    characterData: true,\n    characterDataOldValue: true,\n  },\n};\n```\n\nYou can change what the default object is by specifying it as the argument to `registerCommand`\n\n```js\nconst { registerCommand } = require('cypress-wait-for-stable-dom')\nregisterCommand({ pollInterval: 300, timeout: 2000 })\n\n// or\nimport { registerCommand } from 'cypress-wait-for-stable-dom'\nregisterCommand({ pollInterval: 300, timeout: 2000 })\n```\n## Types\n\nTo get IntelliSense working with the custom command `cy.waitForStableDOM` include in your specs\n\n```js\n/// <reference types=\"cypress-wait-for-stable-dom\" />\n```\n\n[Mutation Observer]: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver\n[bahmutov/cypress-get-by-label]: https://github.com/bahmutov/cypress-get-by-label\n[article]: https://glebbahmutov.com/blog/cypress-recurse\n[parent command]: https://docs.cypress.io/api/cypress-api/custom-commands#Parent-Commands\n[child command]: https://docs.cypress.io/api/cypress-api/custom-commands#Child-Commands\n[options]: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe#parameters\n","readmeFilename":"README.md"}