title: Cypress get button within subject
body: <p>I have a case where I need to test buttons that are generated through activity on the site (making a game creates a button on their homepage). These buttons should take the user to their game portal. </p>
  
  <p>The buttons are contained within .sidebar--button subject, they are listed from top to bottom.</p>
  
  <p>First I attempted to click the nth button in .sidebar--button by using:</p>
  
  <pre><code>    it('selects the 3rd game in the sidebar', () =&gt; {
      cy.get('.sidebar--button').eq(2).click()
      cy.wait(1000)
      cy.url()
          .should('include', 'portal')
  </code></pre>
  
  <p>This failed as I cannot use .eq to click an element.</p>
  
  <p>Then I tried to use .within to select a single generated button within the .sidebar--button using:</p>
  
  <pre><code>it('deletes the current game', () =&gt; {
      cy.get('.sidebar--button').should('have.length', 1)
      cy.get('.sidebar--button').within((".sidebar--button") =&gt; {
          cy.get('.button').click()
      })
      cy.wait(1000)
      cy.url()
          .should('include', 'portal')
  </code></pre>
  
  <p>This failed as well. </p>
  
  <p>How can I cy.get('nth button').click() with only the buttons contained within .sidebar--button ?</p>