diff --git a/cypress/e2e/cart/add-to-cart.cy.ts b/cypress/e2e/cart/add-to-cart.cy.ts index 16aeb90..3e0202a 100644 --- a/cypress/e2e/cart/add-to-cart.cy.ts +++ b/cypress/e2e/cart/add-to-cart.cy.ts @@ -23,10 +23,9 @@ describe('Cart', () => { const po = new InventoryPage() po.addToCart(3) // the POM method stores the product name in the alias - cy.get('@itemName') + cy.get('@itemName') .should('be.a', 'string') - // @ts-ignore - .then((productName: string) => { + .then((productName) => { po.goToCart() // confirm the item is in the cart cy.contains('.inventory_item_name', productName)