Verify button text inside a specific parent element using cy.find()
Preconditions (2)
Step 1: Visit the web page URL 'https://example.com/testpage'.
Step 2: Locate the container element by id 'container'.
Step 3: Within the container, find the button element with class 'submit-btn'.
Step 4: Verify that the button text is exactly 'Submit'.
✅ Expected Result: The button inside the container is found and its text is 'Submit'. The test passes.