title: cy.getBy*** is not a function
body: <p>I'm trying to run Cypress during my Azure release pipeline. I install all the packages I install locally but when I run the Cypress tests I get several errors:</p>
  <blockquote>
  <p>TypeError: cy.visit(...).getByText is not a function</p>
  <p>TypeError: cy.getByLabelText is not a function</p>
  <p>TypeError: cy.getByPlaceholderText is not a function</p>
  </blockquote>
  <p>I've added the following packages to my <code>package.json</code> devDependencies section:</p>
  <pre><code>&quot;@testing-library/cypress&quot;: &quot;^4.0.4&quot;,
  &quot;@testing-library/react&quot;: &quot;^8.0.4&quot;,
  &quot;@testing-library/dom&quot;: &quot;latest&quot;,
  </code></pre>
  <p>Any ideas why Cypress is returning these TypeErrors?</p>
  <p>This is an example of a written test:</p>
  <pre><code>it(&quot;can request to join private team&quot;, () =&gt; {
    const privateTeamId = &quot;fe1fa897-2e90-4ecb-91f9-0c9bb33ef63a&quot;;
    cy.get(`[id=${privateTeamId}]`)
      .click()
      .getByText(&quot;Request membership&quot;)
      .click()
      .getByText(&quot;Membership request sent&quot;);
  });
  </code></pre>