Verify cy.first(), cy.last(), and cy.eq() commands on a list of items
Preconditions (2)
Step 1: Open the web page with the list of items.
Step 2: Use cy.get() to select all elements with class 'item' inside the 'item-list'.
Step 3: Use cy.first() to get the first item and verify its text is 'Item 1'.
Step 4: Use cy.last() to get the last item and verify its text is 'Item 5'.
Step 5: Use cy.eq(2) to get the third item (index 2) and verify its text is 'Item 3'.
✅ Expected Result: The first item text is 'Item 1', the last item text is 'Item 5', and the third item text is 'Item 3'. All assertions pass.