This example exhibits a "Card" component, which is made of a <button> element containing an image, and overlayed with a translucent <label> element binded to the <button> containing the button text.
Exercise`
Write a test that fulfils the following requirements:
-
Performs a click on exactly the
"button#visit-chicago-btn", not the ".card" element that wraps it, and not the "label" that is over the button.
-
No use of Javascript clicks.
-
If the click is successful, you'll see
""button#visit-chicago-btn" clicked." in the logs below.