Access The Response Text Yielded By The Plugin cypress-recurse

Publié le: 05 juillet 2022
sur la chaîne: gleb bahmutov
950
20

If you use cypress-recurse plugin to ping the page before visiting it, you might need to access the text or json from the fetch's response object. This video shows how to do it. In summary:

recurse(
// use fetch
// yield { respones }
)
// the "recurse" yields whatever
// the first function yields, in our case
// it is the { response } object. Let's grab its text
.its('response')
.invoke('text')
.then(console.log)

Find the full source code at https://github.com/bahmutov/live-exam...


Sur cette page du site, vous pouvez voir la vidéo en ligne Access The Response Text Yielded By The Plugin cypress-recurse durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur gleb bahmutov 05 juillet 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 950 fois et il a aimé 20 téléspectateurs. Bon visionnage!