Skip to content

Cypress 12.0 Features #15

@alexfinnarn

Description

@alexfinnarn

While setting up Cypress for this repo, the cypress open command now has helpful release notes displayed before you get to the test runner screens.

Screen Shot 2022-12-20 at 4 44 25 PM

I really like this update and how it makes it easier to follow the main changes. From my perspective, I thought two updates are worth making examples of:

  • cy.origin() - I once was trying to test Salesforce with Cypress and that login process goes to another domain to authenticate which of course breaks the Cypress test. I wonder if this can be used for MiniOrange 2FA (used on WECMS) or other CA projects.
  • "clear the page, cookies, localStorage, and sessionStorage before each test" - This could screw up some tests if people are not aware before updating Cypress. I think I've relied on authentication carrying over to tests within a spec file, but now using cy.session() would be the way to go.

Feel free to add other features that would be good to capture in examples and docs. I haven't tried the component testing out so I'm not sure what's going on with non-e2e Cypress testing features.

https://docs.cypress.io/guides/references/changelog#12-0-0

Dang...they are already on 12.2.0...I can't keep up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions