Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable22] fix: cypress login with new session feature #2055

Merged
merged 2 commits into from
Jan 5, 2022

Commits on Jan 5, 2022

  1. fix: cypress login with new session feature

    Use the new session feature to create and reuse sessions:
    https://docs.cypress.io/api/commands/session
    
    The first time `login` with a given name is called
    the steps described in the login function are performed
    and cookies and localstorage are cached.
    
    The next time `login` is called with the same name
    cookies and localStorage are restored and used again.
    
    This allows us to keep fast test runs
    while still separating the tests more cleanly.
    
    The old logout command was broken because of the way
    we used `Cypress.Cookies.defaults({ preserve })` before:
    
    Cypress runs all the `cy.*` commands during initialization
    and builds a list of commands that are then executed during the tests.
    However `Cypress.Cookies.defaults` is evaluated when preparing the list
    not while performing the actual steps.
    
    Signed-off-by: Azul <[email protected]>
    azul committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    6939217 View commit details
    Browse the repository at this point in the history
  2. cypress: inspect the viewer in one test

    Open the test.md file once and then check all the things.
    
    Signed-off-by: Azul <[email protected]>
    azul committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    ef037fb View commit details
    Browse the repository at this point in the history