Quickly Create A User And Log in Using Dependent Data Sessions

Publicado el: 05 octubre 2021
en el canal de: gleb bahmutov
670
12

Let's say you need to create a user and log in. Do you recreate the user before each test? No, you use cy.dataSession from the cypress-data-session plugin to only create the user if needed. How do you log in? You use another cy.dataSession to execute the commands, and cache the session cookie. And the final step: if the user data session is invalidated, and the user is recreated, then the cookie data session is automatically invalidated using the "dependsOn" parameter linking the second data session to the first one. See the full source code in https://github.com/bahmutov/chat.io


En esta página del sitio puede ver el video en línea Quickly Create A User And Log in Using Dependent Data Sessions de Duración hora minuto segunda en buena calidad , que subió el usuario gleb bahmutov 05 octubre 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 670 veces y le gustó 12 a los espectadores. Disfruta viendo!