When manually adding id, test-id or classname in an HTML file, it's important to note that Cypress may have trouble finding the element. For example, I have included 'Classname' here just for demonstration purposes.
https://i.stack.imgur.com/5kX2k.png Cypress is encountering difficulties locating the elementhttps://i.stack.imgur.com/6Q7Ej.png
Using cy.get(".todo-list") to find the button based on the mentioned classname (as shown in the screenshot). https://i.stack.imgur.com/SaGTc.png