Skip to content

Commit

Permalink
fix the typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 22, 2023
1 parent c36ec48 commit 52c1076
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cypress/e2e/cart/add-to-cart.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('@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)
Expand Down

0 comments on commit 52c1076

Please sign in to comment.