You have now written tests that find elements, click them, and check the result. Everything worked, but one thing about the code was never explained: Cypress does not run your commands the way ordinary JavaScript runs.
That difference explains several things you may have already wondered about, and it is where a common beginner mistake comes from.
Here is the surprise. This code looks like it finds an element: