title: Click an exact match text in Cypress
body: <p>In Cypress, <code>.contains</code> command yields all matching elements, so for clicking in a dropdown item with a text on it, <code>.contains</code> works fine. But I'm facing the problem I need to click in a dropdown item which text is 'Navigation Label': the problem comes as there's another option, in the same dropdown, called 'New Navigation Label', and it's being press instead, as it's appearing first.</p>
  
  <p>Is there a way to click in an element that exactly matches the text you want?</p>
  
  <pre><code>Given('I click on the {string} drop down option', option =&gt; {
    cy.get(`[data-test="dropdown"]`)
      .find('.item')
      .contains(option)
      .click();
  });
  </code></pre>
  
  <p>I partially solve the problem using a <code>.last()</code>, but I find this solution quite vague as I try to keep my steps as reusable as possible, and this is just a patch to make it work in this specific problem.</p>
  
  <p>Note that having a data-test for each specific item in the dropdown is not possible, as items are rendered directly from semantic-ui.</p>