Today I Learned - Rocky Kev

TIL about testing your android directly with Chrome Devtools

POSTED ON:

TAGS:

Web developers have a nice Chrome DevTools to do work in.
But native testing is ideal.
Fortunately, it's pretty to set up for Android Phones.
(Can't say the same for iOS)

  1. I plugged my phone directly into my Win10 computer.
  2. I turned on Developer Mode on my Phone.
  3. I went to chrome://inspect#devices.
  4. Boom - phone was synced to and any changes I made in Devtools appeared in my phone.

REF:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging


Related TILs

Tagged:

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.

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.

TIL writing a clean function

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