Today I Learned - Rocky Kev

Tagged “testing”

  1. TIL Scoping with Cypress

    So you wanted to find a specific element called `heading`. But you have a BUNCH of elements called `heading`. By using `within()` helper, you can force it to only look inside `main` elements.

  2. TIL MSW for mocking

    MSW is a API mocking tool. Mock by intercepting requests on the network level. Seamlessly reuse the same mock definition for testing, development, and debugging.

  3. TIL writing a clean function

    Write an assert at the beginning of the function. Then, write down all the conditions that must be met.

  4. TIL about Cypress Custom Commands

    Today I learned adding custom commands to Cypress to abstract common patterns, using the Cypress.Commands.add()

  5. TIL ELI5 for Smoke Testing

    It's about doing some basic surface level tests. If any of them are goofy, then something is wrong.

  6. TIL Avoiding dependencies in your helper functions

    Impure functions for helpers? What is this... 1999?

  7. TIL to refresh your Cypress test

    A good solution to clearly separate the tests and stop any application callbacks is to visit a 'neutral' blank page.

  8. TIL the definition of various testing types - part 1

    This is probably a part 1 of many, since there's so many different test types out there.

  9. TIL about testing your android directly with Chrome Devtools

    Web developers have a nice Chrome DevTools to do work in. How about Mobile dev

See all tags.