title: How to compare text values of two lists of elements in cypress?
body: <p>I have code like this:</p>
  <pre><code>let firstUserPrices
  
  cy.get('.fw-price').each($value =&gt; {
      firstUserPrices = $value.text()
  })
  
  let secondUserPrices
  cy.get('.fw-price').each($value =&gt; {
      secondUserPrices = $value.text()
      expect(firstUserPrices, 'PRICES').to.equal(secondUserPrices)
  })
  </code></pre>
  <p>cy.get('.fw-price') has 10 elements and I want to compare all of it one by one. But what i get is 10 times same value with firstUserPrices(it's last value form list) what am I doing wrong here?</p>