ax-vasquez / mcnuggies-blog

NextJS site & Sanity Studio code for mcnuggies.dev
http://www.mcnuggies.dev
1 stars 1 forks source link

Cypress - bug hunt v10 #92

Closed ax-vasquez closed 2 years ago

ax-vasquez commented 2 years ago

This PR was created in participation of an internal company bug hunt. The goals for this bug hunt are:

  1. Setting up Cypress 10 end-to-end in a new project
  2. Migrating an existing end-to-end project on an older Cypress version to Cypress 10
  3. Writing and running end-to-end tests in Cypress 10 open mode and run mode
  4. Working with Cypress 10 in different operating systems, containers, and environments
  5. Recording to the Cypress Dashboard with Cypress 10
  6. Using the Cypress 10 documentation to help with any of the above

Not all of these goals will be met by me alone; this is a company-wide effort. My focus is particularly with item 1, and nuances within it:

  1. [x] Can I set up a "fresh" project with Cypress V10?
    • Yes, but encountered issue where test type options didn't render; relaunching fixed the issue - tracked in UNIFY-1443
  2. [ ] Can I set up mock infrastructure as easy as before? No need at the moment; HTML is generated at build time, so the data has already been queried by the time the tests are run
    • In other words, the data is already there - this means:
      • Nothing to mock
      • Tests should be either "high level" (and ignore content completely), or built around specific data that's not expected to change
  3. [x] Are there issues with adding, removing or otherwise maintaining custom Cypress commands? - Nope! Works easily

I will add items to this list as I think of them - note that I will likely not reach all items within the 4 hour testing window. I'll keep digging into this since my project actually needs this, anyway

Notes