Quickly Create A User And Log in Using Dependent Data Sessions

Publicado em: 05 Outubro 2021
no 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


Nesta página do site você pode assistir ao vídeo on-line Quickly Create A User And Log in Using Dependent Data Sessions duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário gleb bahmutov 05 Outubro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 670 vezes e gostou 12 espectadores. Boa visualização!